@Generated(value="software.amazon.awssdk:codegen") public final class Subscription extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Subscription.Builder,Subscription>
A wrapper type for the attributes of an Amazon SNS subscription.
Modifier and Type | Class and Description |
---|---|
static interface |
Subscription.Builder |
Modifier and Type | Method and Description |
---|---|
static Subscription.Builder |
builder() |
String |
endpoint()
The subscription's endpoint (format depends on the protocol).
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
owner()
The subscription's owner.
|
String |
protocol()
The subscription's protocol.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Subscription.Builder> |
serializableBuilderClass() |
String |
subscriptionArn()
The subscription's ARN.
|
Subscription.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
topicArn()
The ARN of the subscription's topic.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String subscriptionArn()
The subscription's ARN.
public final String owner()
The subscription's owner.
public final String protocol()
The subscription's protocol.
public final String endpoint()
The subscription's endpoint (format depends on the protocol).
public final String topicArn()
The ARN of the subscription's topic.
public Subscription.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Subscription.Builder,Subscription>
public static Subscription.Builder builder()
public static Class<? extends Subscription.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()