Class Subscription
- java.lang.Object
-
- software.amazon.awssdk.services.sns.model.Subscription
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Subscription.Builder,Subscription>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Subscription.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Subscription.Builder
builder()
String
endpoint()
The subscription's endpoint (format depends on the protocol).boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<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()
String
topicArn()
The ARN of the subscription's topic.String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
subscriptionArn
public final String subscriptionArn()
The subscription's ARN.
- Returns:
- The subscription's ARN.
-
owner
public final String owner()
The subscription's owner.
- Returns:
- The subscription's owner.
-
protocol
public final String protocol()
The subscription's protocol.
- Returns:
- The subscription's protocol.
-
endpoint
public final String endpoint()
The subscription's endpoint (format depends on the protocol).
- Returns:
- The subscription's endpoint (format depends on the protocol).
-
topicArn
public final String topicArn()
The ARN of the subscription's topic.
- Returns:
- The ARN of the subscription's topic.
-
toBuilder
public Subscription.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<Subscription.Builder,Subscription>
-
builder
public static Subscription.Builder builder()
-
serializableBuilderClass
public static Class<? extends Subscription.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-