@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetSinkPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetSinkPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetSinkPolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getPolicy()
The policy that you specified, in JSON format.
|
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, in JSON format.
|
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.
|
GetSinkPolicyResult |
withPolicy(String policy)
The policy that you specified, in JSON format.
|
GetSinkPolicyResult |
withSinkArn(String sinkArn)
The ARN of the sink.
|
GetSinkPolicyResult |
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, in JSON format.
policy
- The policy that you specified, in JSON format.public String getPolicy()
The policy that you specified, in JSON format.
public GetSinkPolicyResult withPolicy(String policy)
The policy that you specified, in JSON format.
policy
- The policy that you specified, in JSON format.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 GetSinkPolicyResult 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 GetSinkPolicyResult 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 GetSinkPolicyResult clone()