@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Policy |
getPolicy()
The details of the Firewall Manager policy to be created.
|
List<Tag> |
getTagList()
The tags to add to the Amazon Web Services resource.
|
int |
hashCode() |
void |
setPolicy(Policy policy)
The details of the Firewall Manager policy to be created.
|
void |
setTagList(Collection<Tag> tagList)
The tags to add to the Amazon Web Services resource.
|
String |
toString()
Returns a string representation of this object.
|
PutPolicyRequest |
withPolicy(Policy policy)
The details of the Firewall Manager policy to be created.
|
PutPolicyRequest |
withTagList(Collection<Tag> tagList)
The tags to add to the Amazon Web Services resource.
|
PutPolicyRequest |
withTagList(Tag... tagList)
The tags to add to the Amazon Web Services resource.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setPolicy(Policy policy)
The details of the Firewall Manager policy to be created.
policy
- The details of the Firewall Manager policy to be created.public Policy getPolicy()
The details of the Firewall Manager policy to be created.
public PutPolicyRequest withPolicy(Policy policy)
The details of the Firewall Manager policy to be created.
policy
- The details of the Firewall Manager policy to be created.public List<Tag> getTagList()
The tags to add to the Amazon Web Services resource.
public void setTagList(Collection<Tag> tagList)
The tags to add to the Amazon Web Services resource.
tagList
- The tags to add to the Amazon Web Services resource.public PutPolicyRequest withTagList(Tag... tagList)
The tags to add to the Amazon Web Services resource.
NOTE: This method appends the values to the existing list (if any). Use
setTagList(java.util.Collection)
or withTagList(java.util.Collection)
if you want to override
the existing values.
tagList
- The tags to add to the Amazon Web Services resource.public PutPolicyRequest withTagList(Collection<Tag> tagList)
The tags to add to the Amazon Web Services resource.
tagList
- The tags to add to the Amazon Web Services resource.public String toString()
toString
in class Object
Object.toString()
public PutPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()