AWS SDK for C++  0.12.9
AWS SDK for C++
DeliveryChannel.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace ConfigService
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  DeliveryChannel& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
51  inline const Aws::String& GetName() const{ return m_name; }
52 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
65  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
66 
72  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 
79  inline DeliveryChannel& WithName(const Aws::String& value) { SetName(value); return *this;}
80 
86  inline DeliveryChannel& WithName(Aws::String&& value) { SetName(value); return *this;}
87 
93  inline DeliveryChannel& WithName(const char* value) { SetName(value); return *this;}
94 
99  inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
100 
105  inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
106 
111  inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
112 
117  inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
118 
123  inline DeliveryChannel& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
124 
129  inline DeliveryChannel& WithS3BucketName(Aws::String&& value) { SetS3BucketName(value); return *this;}
130 
135  inline DeliveryChannel& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
136 
140  inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
141 
145  inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
146 
150  inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
151 
155  inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); }
156 
160  inline DeliveryChannel& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
161 
165  inline DeliveryChannel& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(value); return *this;}
166 
170  inline DeliveryChannel& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
171 
176  inline const Aws::String& GetSnsTopicARN() const{ return m_snsTopicARN; }
177 
182  inline void SetSnsTopicARN(const Aws::String& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = value; }
183 
188  inline void SetSnsTopicARN(Aws::String&& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = value; }
189 
194  inline void SetSnsTopicARN(const char* value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN.assign(value); }
195 
200  inline DeliveryChannel& WithSnsTopicARN(const Aws::String& value) { SetSnsTopicARN(value); return *this;}
201 
206  inline DeliveryChannel& WithSnsTopicARN(Aws::String&& value) { SetSnsTopicARN(value); return *this;}
207 
212  inline DeliveryChannel& WithSnsTopicARN(const char* value) { SetSnsTopicARN(value); return *this;}
213 
214 
215  inline const ConfigSnapshotDeliveryProperties& GetConfigSnapshotDeliveryProperties() const{ return m_configSnapshotDeliveryProperties; }
216 
217 
218  inline void SetConfigSnapshotDeliveryProperties(const ConfigSnapshotDeliveryProperties& value) { m_configSnapshotDeliveryPropertiesHasBeenSet = true; m_configSnapshotDeliveryProperties = value; }
219 
220 
221  inline void SetConfigSnapshotDeliveryProperties(ConfigSnapshotDeliveryProperties&& value) { m_configSnapshotDeliveryPropertiesHasBeenSet = true; m_configSnapshotDeliveryProperties = value; }
222 
223 
224  inline DeliveryChannel& WithConfigSnapshotDeliveryProperties(const ConfigSnapshotDeliveryProperties& value) { SetConfigSnapshotDeliveryProperties(value); return *this;}
225 
226 
227  inline DeliveryChannel& WithConfigSnapshotDeliveryProperties(ConfigSnapshotDeliveryProperties&& value) { SetConfigSnapshotDeliveryProperties(value); return *this;}
228 
229  private:
230  Aws::String m_name;
231  bool m_nameHasBeenSet;
232  Aws::String m_s3BucketName;
233  bool m_s3BucketNameHasBeenSet;
234  Aws::String m_s3KeyPrefix;
235  bool m_s3KeyPrefixHasBeenSet;
236  Aws::String m_snsTopicARN;
237  bool m_snsTopicARNHasBeenSet;
238  ConfigSnapshotDeliveryProperties m_configSnapshotDeliveryProperties;
239  bool m_configSnapshotDeliveryPropertiesHasBeenSet;
240  };
241 
242 } // namespace Model
243 } // namespace ConfigService
244 } // namespace Aws
DeliveryChannel & WithConfigSnapshotDeliveryProperties(const ConfigSnapshotDeliveryProperties &value)
DeliveryChannel & WithSnsTopicARN(const Aws::String &value)
DeliveryChannel & WithS3BucketName(const Aws::String &value)
void SetSnsTopicARN(const Aws::String &value)
void SetConfigSnapshotDeliveryProperties(ConfigSnapshotDeliveryProperties &&value)
const Aws::String & GetName() const
void SetS3BucketName(const Aws::String &value)
DeliveryChannel & WithS3BucketName(const char *value)
const Aws::String & GetSnsTopicARN() const
DeliveryChannel & WithConfigSnapshotDeliveryProperties(ConfigSnapshotDeliveryProperties &&value)
DeliveryChannel & WithName(const Aws::String &value)
DeliveryChannel & WithSnsTopicARN(Aws::String &&value)
const Aws::String & GetS3BucketName() const
void SetS3KeyPrefix(const Aws::String &value)
DeliveryChannel & WithSnsTopicARN(const char *value)
DeliveryChannel & WithS3BucketName(Aws::String &&value)
DeliveryChannel & WithS3KeyPrefix(const char *value)
const ConfigSnapshotDeliveryProperties & GetConfigSnapshotDeliveryProperties() const
const Aws::String & GetS3KeyPrefix() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeliveryChannel & WithName(const char *value)
#define AWS_CONFIGSERVICE_API
void SetName(const Aws::String &value)
void SetConfigSnapshotDeliveryProperties(const ConfigSnapshotDeliveryProperties &value)
DeliveryChannel & WithS3KeyPrefix(const Aws::String &value)
DeliveryChannel & WithS3KeyPrefix(Aws::String &&value)
JSON (JavaScript Object Notation).
DeliveryChannel & WithName(Aws::String &&value)