@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SnsTopicConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The proposed access control configuration for an Amazon SNS topic. You can propose a configuration for a new Amazon SNS topic or an existing Amazon SNS topic that you own by specifying the policy. If the configuration is for an existing Amazon SNS topic and you do not specify the Amazon SNS policy, then the access preview uses the existing Amazon SNS policy for the topic. If the access preview is for a new resource and you do not specify the policy, then the access preview assumes an Amazon SNS topic without a policy. To propose deletion of an existing Amazon SNS topic policy, you can specify an empty string for the Amazon SNS policy. For more information, see Topic.
Constructor and Description |
---|
SnsTopicConfiguration() |
Modifier and Type | Method and Description |
---|---|
SnsTopicConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getTopicPolicy()
The JSON policy text that defines who can access an Amazon SNS topic.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTopicPolicy(String topicPolicy)
The JSON policy text that defines who can access an Amazon SNS topic.
|
String |
toString()
Returns a string representation of this object.
|
SnsTopicConfiguration |
withTopicPolicy(String topicPolicy)
The JSON policy text that defines who can access an Amazon SNS topic.
|
public void setTopicPolicy(String topicPolicy)
The JSON policy text that defines who can access an Amazon SNS topic. For more information, see Example cases for Amazon SNS access control in the Amazon SNS Developer Guide.
topicPolicy
- The JSON policy text that defines who can access an Amazon SNS topic. For more information, see Example cases for Amazon
SNS access control in the Amazon SNS Developer Guide.public String getTopicPolicy()
The JSON policy text that defines who can access an Amazon SNS topic. For more information, see Example cases for Amazon SNS access control in the Amazon SNS Developer Guide.
public SnsTopicConfiguration withTopicPolicy(String topicPolicy)
The JSON policy text that defines who can access an Amazon SNS topic. For more information, see Example cases for Amazon SNS access control in the Amazon SNS Developer Guide.
topicPolicy
- The JSON policy text that defines who can access an Amazon SNS topic. For more information, see Example cases for Amazon
SNS access control in the Amazon SNS Developer Guide.public String toString()
toString
in class Object
Object.toString()
public SnsTopicConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.