@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutSinkPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
PutSinkPolicyResult() |
Modifier and Type | Method and Description |
---|---|
PutSinkPolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getPolicy()
The policy that you specified.
|
String |
getSinkArn()
The ARN of the sink.
|
String |
getSinkId()
The random ID string that Amazon Web Services generated as part of the sink ARN.
|
int |
hashCode() |
void |
setPolicy(String policy)
The policy that you specified.
|
void |
setSinkArn(String sinkArn)
The ARN of the sink.
|
void |
setSinkId(String sinkId)
The random ID string that Amazon Web Services generated as part of the sink ARN.
|
String |
toString()
Returns a string representation of this object.
|
PutSinkPolicyResult |
withPolicy(String policy)
The policy that you specified.
|
PutSinkPolicyResult |
withSinkArn(String sinkArn)
The ARN of the sink.
|
PutSinkPolicyResult |
withSinkId(String sinkId)
The random ID string that Amazon Web Services generated as part of the sink ARN.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicy(String policy)
The policy that you specified.
policy
- The policy that you specified.public String getPolicy()
The policy that you specified.
public PutSinkPolicyResult withPolicy(String policy)
The policy that you specified.
policy
- The policy that you specified.public void setSinkArn(String sinkArn)
The ARN of the sink.
sinkArn
- The ARN of the sink.public String getSinkArn()
The ARN of the sink.
public PutSinkPolicyResult withSinkArn(String sinkArn)
The ARN of the sink.
sinkArn
- The ARN of the sink.public void setSinkId(String sinkId)
The random ID string that Amazon Web Services generated as part of the sink ARN.
sinkId
- The random ID string that Amazon Web Services generated as part of the sink ARN.public String getSinkId()
The random ID string that Amazon Web Services generated as part of the sink ARN.
public PutSinkPolicyResult withSinkId(String sinkId)
The random ID string that Amazon Web Services generated as part of the sink ARN.
sinkId
- The random ID string that Amazon Web Services generated as part of the sink ARN.public String toString()
toString
in class Object
Object.toString()
public PutSinkPolicyResult clone()