/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.sns.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *

* Input for Subscribe action. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SubscribeRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The ARN of the topic you want to subscribe to. *

*/ private String topicArn; /** *

* The protocol that you want to use. Supported protocols include: *

* */ private String protocol; /** *

* The endpoint that you want to receive notifications. Endpoints vary by protocol: *

* */ private String endpoint; /** *

* A map of attributes with their corresponding values. *

*

* The following lists the names, descriptions, and values of the special request parameters that the * Subscribe action uses: *

* *

* The following attribute applies only to Amazon Kinesis Data Firehose delivery stream subscriptions: *

* */ private com.amazonaws.internal.SdkInternalMap attributes; /** *

* Sets whether the response from the Subscribe request includes the subscription ARN, even if the * subscription is not yet confirmed. *

*

* If you set this parameter to true, the response includes the ARN in all cases, even if the * subscription is not yet confirmed. In addition to the ARN for confirmed subscriptions, the response also includes * the pending subscription ARN value for subscriptions that aren't yet confirmed. A subscription * becomes confirmed when the subscriber calls the ConfirmSubscription action with a confirmation * token. *

*

*

* The default value is false. *

*/ private Boolean returnSubscriptionArn; /** * Default constructor for SubscribeRequest object. Callers should use the setter or fluent setter (with...) methods * to initialize the object after creating it. */ public SubscribeRequest() { } /** * Constructs a new SubscribeRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param topicArn * The ARN of the topic you want to subscribe to. * @param protocol * The protocol that you want to use. Supported protocols include:

*