/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

A wrapper type for the topic's Amazon Resource Name (ARN).

See * Also:

AWS * API Reference

*/ class AWS_SECURITYHUB_API AwsSnsTopicDetails { public: AwsSnsTopicDetails(); AwsSnsTopicDetails(Aws::Utils::Json::JsonView jsonValue); AwsSnsTopicDetails& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom * CMK.

*/ inline const Aws::String& GetKmsMasterKeyId() const{ return m_kmsMasterKeyId; } /** *

The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom * CMK.

*/ inline bool KmsMasterKeyIdHasBeenSet() const { return m_kmsMasterKeyIdHasBeenSet; } /** *

The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom * CMK.

*/ inline void SetKmsMasterKeyId(const Aws::String& value) { m_kmsMasterKeyIdHasBeenSet = true; m_kmsMasterKeyId = value; } /** *

The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom * CMK.

*/ inline void SetKmsMasterKeyId(Aws::String&& value) { m_kmsMasterKeyIdHasBeenSet = true; m_kmsMasterKeyId = std::move(value); } /** *

The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom * CMK.

*/ inline void SetKmsMasterKeyId(const char* value) { m_kmsMasterKeyIdHasBeenSet = true; m_kmsMasterKeyId.assign(value); } /** *

The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom * CMK.

*/ inline AwsSnsTopicDetails& WithKmsMasterKeyId(const Aws::String& value) { SetKmsMasterKeyId(value); return *this;} /** *

The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom * CMK.

*/ inline AwsSnsTopicDetails& WithKmsMasterKeyId(Aws::String&& value) { SetKmsMasterKeyId(std::move(value)); return *this;} /** *

The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom * CMK.

*/ inline AwsSnsTopicDetails& WithKmsMasterKeyId(const char* value) { SetKmsMasterKeyId(value); return *this;} /** *

Subscription is an embedded property that describes the subscription * endpoints of an Amazon SNS topic.

*/ inline const Aws::Vector& GetSubscription() const{ return m_subscription; } /** *

Subscription is an embedded property that describes the subscription * endpoints of an Amazon SNS topic.

*/ inline bool SubscriptionHasBeenSet() const { return m_subscriptionHasBeenSet; } /** *

Subscription is an embedded property that describes the subscription * endpoints of an Amazon SNS topic.

*/ inline void SetSubscription(const Aws::Vector& value) { m_subscriptionHasBeenSet = true; m_subscription = value; } /** *

Subscription is an embedded property that describes the subscription * endpoints of an Amazon SNS topic.

*/ inline void SetSubscription(Aws::Vector&& value) { m_subscriptionHasBeenSet = true; m_subscription = std::move(value); } /** *

Subscription is an embedded property that describes the subscription * endpoints of an Amazon SNS topic.

*/ inline AwsSnsTopicDetails& WithSubscription(const Aws::Vector& value) { SetSubscription(value); return *this;} /** *

Subscription is an embedded property that describes the subscription * endpoints of an Amazon SNS topic.

*/ inline AwsSnsTopicDetails& WithSubscription(Aws::Vector&& value) { SetSubscription(std::move(value)); return *this;} /** *

Subscription is an embedded property that describes the subscription * endpoints of an Amazon SNS topic.

*/ inline AwsSnsTopicDetails& AddSubscription(const AwsSnsTopicSubscription& value) { m_subscriptionHasBeenSet = true; m_subscription.push_back(value); return *this; } /** *

Subscription is an embedded property that describes the subscription * endpoints of an Amazon SNS topic.

*/ inline AwsSnsTopicDetails& AddSubscription(AwsSnsTopicSubscription&& value) { m_subscriptionHasBeenSet = true; m_subscription.push_back(std::move(value)); return *this; } /** *

The name of the topic.

*/ inline const Aws::String& GetTopicName() const{ return m_topicName; } /** *

The name of the topic.

*/ inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; } /** *

The name of the topic.

*/ inline void SetTopicName(const Aws::String& value) { m_topicNameHasBeenSet = true; m_topicName = value; } /** *

The name of the topic.

*/ inline void SetTopicName(Aws::String&& value) { m_topicNameHasBeenSet = true; m_topicName = std::move(value); } /** *

The name of the topic.

*/ inline void SetTopicName(const char* value) { m_topicNameHasBeenSet = true; m_topicName.assign(value); } /** *

The name of the topic.

*/ inline AwsSnsTopicDetails& WithTopicName(const Aws::String& value) { SetTopicName(value); return *this;} /** *

The name of the topic.

*/ inline AwsSnsTopicDetails& WithTopicName(Aws::String&& value) { SetTopicName(std::move(value)); return *this;} /** *

The name of the topic.

*/ inline AwsSnsTopicDetails& WithTopicName(const char* value) { SetTopicName(value); return *this;} /** *

The subscription's owner.

*/ inline const Aws::String& GetOwner() const{ return m_owner; } /** *

The subscription's owner.

*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *

The subscription's owner.

*/ inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *

The subscription's owner.

*/ inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *

The subscription's owner.

*/ inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); } /** *

The subscription's owner.

*/ inline AwsSnsTopicDetails& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *

The subscription's owner.

*/ inline AwsSnsTopicDetails& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *

The subscription's owner.

*/ inline AwsSnsTopicDetails& WithOwner(const char* value) { SetOwner(value); return *this;} private: Aws::String m_kmsMasterKeyId; bool m_kmsMasterKeyIdHasBeenSet; Aws::Vector m_subscription; bool m_subscriptionHasBeenSet; Aws::String m_topicName; bool m_topicNameHasBeenSet; Aws::String m_owner; bool m_ownerHasBeenSet; }; } // namespace Model } // namespace SecurityHub } // namespace Aws