135 lines
4.3 KiB
C
135 lines
4.3 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/sns/SNS_EXPORTS.h>
|
|||
|
|
#include <aws/sns/SNSRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace SNS
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Input for RemovePermission action.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/RemovePermissionInput">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_SNS_API RemovePermissionRequest : public SNSRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
RemovePermissionRequest();
|
|||
|
|
|
|||
|
|
// Service request name is the Operation name which will send this request out,
|
|||
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|||
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|||
|
|
// so we can not get operation's name from response.
|
|||
|
|
inline virtual const char* GetServiceRequestName() const override { return "RemovePermission"; }
|
|||
|
|
|
|||
|
|
Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
protected:
|
|||
|
|
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the topic whose access control policy you wish to modify.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the topic whose access control policy you wish to modify.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the topic whose access control policy you wish to modify.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the topic whose access control policy you wish to modify.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the topic whose access control policy you wish to modify.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the topic whose access control policy you wish to modify.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemovePermissionRequest& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the topic whose access control policy you wish to modify.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemovePermissionRequest& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the topic whose access control policy you wish to modify.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemovePermissionRequest& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique label of the statement you want to remove.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetLabel() const{ return m_label; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique label of the statement you want to remove.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique label of the statement you want to remove.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique label of the statement you want to remove.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique label of the statement you want to remove.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique label of the statement you want to remove.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemovePermissionRequest& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique label of the statement you want to remove.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemovePermissionRequest& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique label of the statement you want to remove.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemovePermissionRequest& WithLabel(const char* value) { SetLabel(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_topicArn;
|
|||
|
|
bool m_topicArnHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_label;
|
|||
|
|
bool m_labelHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace SNS
|
|||
|
|
} // namespace Aws
|