public class PutDestinationPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
accessPolicy
An IAM policy document that authorizes cross-account users to deliver
their log events to associated destination.
|
private java.lang.String |
destinationName
A name for an existing destination.
|
NOOP
Constructor and Description |
---|
PutDestinationPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutDestinationPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccessPolicy()
An IAM policy document that authorizes cross-account users to deliver
their log events to associated destination.
|
java.lang.String |
getDestinationName()
A name for an existing destination.
|
int |
hashCode() |
void |
setAccessPolicy(java.lang.String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver
their log events to associated destination.
|
void |
setDestinationName(java.lang.String destinationName)
A name for an existing destination.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutDestinationPolicyRequest |
withAccessPolicy(java.lang.String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver
their log events to associated destination.
|
PutDestinationPolicyRequest |
withDestinationName(java.lang.String destinationName)
A name for an existing destination.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String destinationName
A name for an existing destination.
private java.lang.String accessPolicy
An IAM policy document that authorizes cross-account users to deliver their log events to associated destination.
public void setDestinationName(java.lang.String destinationName)
A name for an existing destination.
destinationName
- A name for an existing destination.public java.lang.String getDestinationName()
A name for an existing destination.
public PutDestinationPolicyRequest withDestinationName(java.lang.String destinationName)
A name for an existing destination.
destinationName
- A name for an existing destination.public void setAccessPolicy(java.lang.String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver their log events to associated destination.
accessPolicy
- An IAM policy document that authorizes cross-account users to
deliver their log events to associated destination.public java.lang.String getAccessPolicy()
An IAM policy document that authorizes cross-account users to deliver their log events to associated destination.
public PutDestinationPolicyRequest withAccessPolicy(java.lang.String accessPolicy)
An IAM policy document that authorizes cross-account users to deliver their log events to associated destination.
accessPolicy
- An IAM policy document that authorizes cross-account users to
deliver their log events to associated destination.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutDestinationPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()