@Generated(value="software.amazon.awssdk:codegen") public final class TopicConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TopicConfiguration.Builder,TopicConfiguration>
A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events.
Modifier and Type | Class and Description |
---|---|
static interface |
TopicConfiguration.Builder |
Modifier and Type | Method and Description |
---|---|
static TopicConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<Event> |
events()
The Amazon S3 bucket event about which to send notifications.
|
List<String> |
eventsAsStrings()
The Amazon S3 bucket event about which to send notifications.
|
NotificationConfigurationFilter |
filter()
Returns the value of the Filter property for this object.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasEvents()
Returns true if the Events property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
int |
hashCode() |
String |
id()
Returns the value of the Id property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TopicConfiguration.Builder> |
serializableBuilderClass() |
TopicConfiguration.Builder |
toBuilder() |
String |
topicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects
events of the specified type.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String id()
public final String topicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type.
public final List<Event> events()
The Amazon S3 bucket event about which to send notifications. For more information, see Supported Event Types in the Amazon S3 User Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasEvents()
to see if a value was sent in this field.
public final boolean hasEvents()
public final List<String> eventsAsStrings()
The Amazon S3 bucket event about which to send notifications. For more information, see Supported Event Types in the Amazon S3 User Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasEvents()
to see if a value was sent in this field.
public final NotificationConfigurationFilter filter()
public TopicConfiguration.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<TopicConfiguration.Builder,TopicConfiguration>
public static TopicConfiguration.Builder builder()
public static Class<? extends TopicConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.