Class ConfirmSubscriptionRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<ConfirmSubscriptionRequest.Builder,ConfirmSubscriptionRequest>

@Generated("software.amazon.awssdk:codegen") public final class ConfirmSubscriptionRequest extends SnsRequest implements ToCopyableBuilder<ConfirmSubscriptionRequest.Builder,ConfirmSubscriptionRequest>

Input for ConfirmSubscription action.

  • Method Details

    • topicArn

      public final String topicArn()

      The ARN of the topic for which you wish to confirm a subscription.

      Returns:
      The ARN of the topic for which you wish to confirm a subscription.
    • token

      public final String token()

      Short-lived token sent to an endpoint during the Subscribe action.

      Returns:
      Short-lived token sent to an endpoint during the Subscribe action.
    • authenticateOnUnsubscribe

      public final String authenticateOnUnsubscribe()

      Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is true and the request has an Amazon Web Services signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires Amazon Web Services authentication.

      Returns:
      Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is true and the request has an Amazon Web Services signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires Amazon Web Services authentication.
    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<ConfirmSubscriptionRequest.Builder,ConfirmSubscriptionRequest>
      Specified by:
      toBuilder in class SnsRequest
    • builder

      public static ConfirmSubscriptionRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ConfirmSubscriptionRequest.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsRequest
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Overrides:
      getValueForField in class SdkRequest
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo