/* * Copyright 2010-2014 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. */ /* * Do not modify this file. This file is generated from the sns-2010-03-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SimpleNotificationService.Model { /// /// Container for the parameters to the ConfirmSubscription operation. /// Verifies an endpoint owner's intent to receive messages by validating the token sent /// to the endpoint by an earlier Subscribe action. If the token is valid, /// the action creates a new subscription and returns its Amazon Resource Name (ARN). /// This call requires an AWS signature only when the AuthenticateOnUnsubscribe /// flag is set to "true". /// public partial class ConfirmSubscriptionRequest : AmazonSimpleNotificationServiceRequest { private string _authenticateOnUnsubscribe; private string _token; private string _topicArn; /// /// Empty constructor used to set properties independently even when a simple constructor is available /// public ConfirmSubscriptionRequest() { } /// /// Instantiates ConfirmSubscriptionRequest with the parameterized properties /// /// The ARN of the topic for which you wish to confirm a subscription. /// Short-lived token sent to an endpoint during the Subscribe action. public ConfirmSubscriptionRequest(string topicArn, string token) { _topicArn = topicArn; _token = token; } /// /// Instantiates ConfirmSubscriptionRequest with the parameterized properties /// /// The ARN of the topic for which you wish to confirm a subscription. /// Short-lived token sent to an endpoint during the Subscribe action. /// Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is true and the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication. public ConfirmSubscriptionRequest(string topicArn, string token, string authenticateOnUnsubscribe) { _topicArn = topicArn; _token = token; _authenticateOnUnsubscribe = authenticateOnUnsubscribe; } /// /// Gets and sets the property AuthenticateOnUnsubscribe. /// /// Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter /// is true and the request has an AWS signature, then only the topic owner /// and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires /// AWS authentication. /// /// public string AuthenticateOnUnsubscribe { get { return this._authenticateOnUnsubscribe; } set { this._authenticateOnUnsubscribe = value; } } // Check to see if AuthenticateOnUnsubscribe property is set internal bool IsSetAuthenticateOnUnsubscribe() { return this._authenticateOnUnsubscribe != null; } /// /// Gets and sets the property Token. /// /// Short-lived token sent to an endpoint during the Subscribe action. /// /// [AWSProperty(Required=true)] public string Token { get { return this._token; } set { this._token = value; } } // Check to see if Token property is set internal bool IsSetToken() { return this._token != null; } /// /// Gets and sets the property TopicArn. /// /// The ARN of the topic for which you wish to confirm a subscription. /// /// [AWSProperty(Required=true)] public string TopicArn { get { return this._topicArn; } set { this._topicArn = value; } } // Check to see if TopicArn property is set internal bool IsSetTopicArn() { return this._topicArn != null; } } }