@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutResourcePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutResourcePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutResourcePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getPolicy()
Details of the resource policy.
|
String |
getResourceARN()
The Amazon Resource Name (ARN) of the data stream or consumer.
|
int |
hashCode() |
void |
setPolicy(String policy)
Details of the resource policy.
|
void |
setResourceARN(String resourceARN)
The Amazon Resource Name (ARN) of the data stream or consumer.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withPolicy(String policy)
Details of the resource policy.
|
PutResourcePolicyRequest |
withResourceARN(String resourceARN)
The Amazon Resource Name (ARN) of the data stream or consumer.
|
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 setResourceARN(String resourceARN)
The Amazon Resource Name (ARN) of the data stream or consumer.
resourceARN
- The Amazon Resource Name (ARN) of the data stream or consumer.public String getResourceARN()
The Amazon Resource Name (ARN) of the data stream or consumer.
public PutResourcePolicyRequest withResourceARN(String resourceARN)
The Amazon Resource Name (ARN) of the data stream or consumer.
resourceARN
- The Amazon Resource Name (ARN) of the data stream or consumer.public void setPolicy(String policy)
Details of the resource policy. It must include the identity of the principal and the actions allowed on this resource. This is formatted as a JSON string.
policy
- Details of the resource policy. It must include the identity of the principal and the actions allowed on
this resource. This is formatted as a JSON string.public String getPolicy()
Details of the resource policy. It must include the identity of the principal and the actions allowed on this resource. This is formatted as a JSON string.
public PutResourcePolicyRequest withPolicy(String policy)
Details of the resource policy. It must include the identity of the principal and the actions allowed on this resource. This is formatted as a JSON string.
policy
- Details of the resource policy. It must include the identity of the principal and the actions allowed on
this resource. This is formatted as a JSON string.public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()