@Generated(value="software.amazon.awssdk:codegen") public class Subscription extends Object implements StructuredPojo, ToCopyableBuilder<Subscription.Builder,Subscription>
Describes a subscription.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Subscription.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Subscription.Builder |
builder() |
String |
endPoint()
The endpoint of the subscription.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
SubscriptionProtocolType |
protocol()
The protocol of the subscription.
|
String |
protocolAsString()
The protocol of the subscription.
|
static Class<? extends Subscription.Builder> |
serializableBuilderClass() |
String |
subscriptionId()
The ID of the subscription.
|
Subscription.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic String subscriptionId()
The ID of the subscription.
public String endPoint()
The endpoint of the subscription.
public SubscriptionProtocolType protocol()
The protocol of the subscription.
If the service returns an enum value that is not available in the current SDK version, protocol will
return SubscriptionProtocolType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from protocolAsString().
SubscriptionProtocolTypepublic String protocolAsString()
The protocol of the subscription.
If the service returns an enum value that is not available in the current SDK version, protocol will
return SubscriptionProtocolType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from protocolAsString().
SubscriptionProtocolTypepublic Subscription.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<Subscription.Builder,Subscription>public static Subscription.Builder builder()
public static Class<? extends Subscription.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.