AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DeliveryChannel.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/ConfigSnapshotDeliveryProperties.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConfigService {
21namespace Model {
22
30 public:
31 AWS_CONFIGSERVICE_API DeliveryChannel() = default;
32 AWS_CONFIGSERVICE_API DeliveryChannel(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONFIGSERVICE_API DeliveryChannel& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 DeliveryChannel& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
67 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
68 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
69 template <typename S3BucketNameT = Aws::String>
70 void SetS3BucketName(S3BucketNameT&& value) {
71 m_s3BucketNameHasBeenSet = true;
72 m_s3BucketName = std::forward<S3BucketNameT>(value);
73 }
74 template <typename S3BucketNameT = Aws::String>
75 DeliveryChannel& WithS3BucketName(S3BucketNameT&& value) {
76 SetS3BucketName(std::forward<S3BucketNameT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
86 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
87 template <typename S3KeyPrefixT = Aws::String>
88 void SetS3KeyPrefix(S3KeyPrefixT&& value) {
89 m_s3KeyPrefixHasBeenSet = true;
90 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
91 }
92 template <typename S3KeyPrefixT = Aws::String>
93 DeliveryChannel& WithS3KeyPrefix(S3KeyPrefixT&& value) {
94 SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::String& GetS3KmsKeyArn() const { return m_s3KmsKeyArn; }
106 inline bool S3KmsKeyArnHasBeenSet() const { return m_s3KmsKeyArnHasBeenSet; }
107 template <typename S3KmsKeyArnT = Aws::String>
108 void SetS3KmsKeyArn(S3KmsKeyArnT&& value) {
109 m_s3KmsKeyArnHasBeenSet = true;
110 m_s3KmsKeyArn = std::forward<S3KmsKeyArnT>(value);
111 }
112 template <typename S3KmsKeyArnT = Aws::String>
113 DeliveryChannel& WithS3KmsKeyArn(S3KmsKeyArnT&& value) {
114 SetS3KmsKeyArn(std::forward<S3KmsKeyArnT>(value));
115 return *this;
116 }
118
120
128 inline const Aws::String& GetSnsTopicARN() const { return m_snsTopicARN; }
129 inline bool SnsTopicARNHasBeenSet() const { return m_snsTopicARNHasBeenSet; }
130 template <typename SnsTopicARNT = Aws::String>
131 void SetSnsTopicARN(SnsTopicARNT&& value) {
132 m_snsTopicARNHasBeenSet = true;
133 m_snsTopicARN = std::forward<SnsTopicARNT>(value);
134 }
135 template <typename SnsTopicARNT = Aws::String>
136 DeliveryChannel& WithSnsTopicARN(SnsTopicARNT&& value) {
137 SetSnsTopicARN(std::forward<SnsTopicARNT>(value));
138 return *this;
139 }
141
143
147 inline const ConfigSnapshotDeliveryProperties& GetConfigSnapshotDeliveryProperties() const { return m_configSnapshotDeliveryProperties; }
148 inline bool ConfigSnapshotDeliveryPropertiesHasBeenSet() const { return m_configSnapshotDeliveryPropertiesHasBeenSet; }
149 template <typename ConfigSnapshotDeliveryPropertiesT = ConfigSnapshotDeliveryProperties>
150 void SetConfigSnapshotDeliveryProperties(ConfigSnapshotDeliveryPropertiesT&& value) {
151 m_configSnapshotDeliveryPropertiesHasBeenSet = true;
152 m_configSnapshotDeliveryProperties = std::forward<ConfigSnapshotDeliveryPropertiesT>(value);
153 }
154 template <typename ConfigSnapshotDeliveryPropertiesT = ConfigSnapshotDeliveryProperties>
155 DeliveryChannel& WithConfigSnapshotDeliveryProperties(ConfigSnapshotDeliveryPropertiesT&& value) {
156 SetConfigSnapshotDeliveryProperties(std::forward<ConfigSnapshotDeliveryPropertiesT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_name;
162
163 Aws::String m_s3BucketName;
164
165 Aws::String m_s3KeyPrefix;
166
167 Aws::String m_s3KmsKeyArn;
168
169 Aws::String m_snsTopicARN;
170
171 ConfigSnapshotDeliveryProperties m_configSnapshotDeliveryProperties;
172 bool m_nameHasBeenSet = false;
173 bool m_s3BucketNameHasBeenSet = false;
174 bool m_s3KeyPrefixHasBeenSet = false;
175 bool m_s3KmsKeyArnHasBeenSet = false;
176 bool m_snsTopicARNHasBeenSet = false;
177 bool m_configSnapshotDeliveryPropertiesHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace ConfigService
182} // namespace Aws
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
DeliveryChannel & WithS3KeyPrefix(S3KeyPrefixT &&value)
const Aws::String & GetS3BucketName() const
void SetConfigSnapshotDeliveryProperties(ConfigSnapshotDeliveryPropertiesT &&value)
DeliveryChannel & WithConfigSnapshotDeliveryProperties(ConfigSnapshotDeliveryPropertiesT &&value)
DeliveryChannel & WithS3BucketName(S3BucketNameT &&value)
AWS_CONFIGSERVICE_API DeliveryChannel & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetS3KmsKeyArn() const
const Aws::String & GetS3KeyPrefix() const
AWS_CONFIGSERVICE_API DeliveryChannel(Aws::Utils::Json::JsonView jsonValue)
void SetS3KeyPrefix(S3KeyPrefixT &&value)
const ConfigSnapshotDeliveryProperties & GetConfigSnapshotDeliveryProperties() const
DeliveryChannel & WithS3KmsKeyArn(S3KmsKeyArnT &&value)
DeliveryChannel & WithName(NameT &&value)
DeliveryChannel & WithSnsTopicARN(SnsTopicARNT &&value)
void SetS3BucketName(S3BucketNameT &&value)
AWS_CONFIGSERVICE_API DeliveryChannel()=default
const Aws::String & GetSnsTopicARN() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue