AWS SDK for C++  0.14.3
AWS SDK for C++
Destination.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace CloudWatchLogs
29 {
30 namespace Model
31 {
32 
38  {
39  public:
40  Destination();
41  Destination(const Aws::Utils::Json::JsonValue& jsonValue);
42  Destination& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetDestinationName() const{ return m_destinationName; }
49 
53  inline void SetDestinationName(const Aws::String& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; }
54 
58  inline void SetDestinationName(Aws::String&& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; }
59 
63  inline void SetDestinationName(const char* value) { m_destinationNameHasBeenSet = true; m_destinationName.assign(value); }
64 
68  inline Destination& WithDestinationName(const Aws::String& value) { SetDestinationName(value); return *this;}
69 
73  inline Destination& WithDestinationName(Aws::String&& value) { SetDestinationName(value); return *this;}
74 
78  inline Destination& WithDestinationName(const char* value) { SetDestinationName(value); return *this;}
79 
84  inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
85 
90  inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
91 
96  inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
97 
102  inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
103 
108  inline Destination& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
109 
114  inline Destination& WithTargetArn(Aws::String&& value) { SetTargetArn(value); return *this;}
115 
120  inline Destination& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
121 
125  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
126 
130  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
131 
135  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
136 
140  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
141 
145  inline Destination& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
146 
150  inline Destination& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
151 
155  inline Destination& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
156 
161  inline const Aws::String& GetAccessPolicy() const{ return m_accessPolicy; }
162 
167  inline void SetAccessPolicy(const Aws::String& value) { m_accessPolicyHasBeenSet = true; m_accessPolicy = value; }
168 
173  inline void SetAccessPolicy(Aws::String&& value) { m_accessPolicyHasBeenSet = true; m_accessPolicy = value; }
174 
179  inline void SetAccessPolicy(const char* value) { m_accessPolicyHasBeenSet = true; m_accessPolicy.assign(value); }
180 
185  inline Destination& WithAccessPolicy(const Aws::String& value) { SetAccessPolicy(value); return *this;}
186 
191  inline Destination& WithAccessPolicy(Aws::String&& value) { SetAccessPolicy(value); return *this;}
192 
197  inline Destination& WithAccessPolicy(const char* value) { SetAccessPolicy(value); return *this;}
198 
202  inline const Aws::String& GetArn() const{ return m_arn; }
203 
207  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
208 
212  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
213 
217  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
218 
222  inline Destination& WithArn(const Aws::String& value) { SetArn(value); return *this;}
223 
227  inline Destination& WithArn(Aws::String&& value) { SetArn(value); return *this;}
228 
232  inline Destination& WithArn(const char* value) { SetArn(value); return *this;}
233 
238  inline long long GetCreationTime() const{ return m_creationTime; }
239 
244  inline void SetCreationTime(long long value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
245 
250  inline Destination& WithCreationTime(long long value) { SetCreationTime(value); return *this;}
251 
252  private:
253  Aws::String m_destinationName;
254  bool m_destinationNameHasBeenSet;
255  Aws::String m_targetArn;
256  bool m_targetArnHasBeenSet;
257  Aws::String m_roleArn;
258  bool m_roleArnHasBeenSet;
259  Aws::String m_accessPolicy;
260  bool m_accessPolicyHasBeenSet;
261  Aws::String m_arn;
262  bool m_arnHasBeenSet;
263  long long m_creationTime;
264  bool m_creationTimeHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace CloudWatchLogs
269 } // namespace Aws
void SetAccessPolicy(Aws::String &&value)
Definition: Destination.h:173
void SetAccessPolicy(const Aws::String &value)
Definition: Destination.h:167
const Aws::String & GetDestinationName() const
Definition: Destination.h:48
void SetCreationTime(long long value)
Definition: Destination.h:244
const Aws::String & GetAccessPolicy() const
Definition: Destination.h:161
void SetDestinationName(const char *value)
Definition: Destination.h:63
const Aws::String & GetTargetArn() const
Definition: Destination.h:84
Destination & WithArn(const Aws::String &value)
Definition: Destination.h:222
void SetArn(const Aws::String &value)
Definition: Destination.h:207
Destination & WithDestinationName(Aws::String &&value)
Definition: Destination.h:73
void SetDestinationName(Aws::String &&value)
Definition: Destination.h:58
Destination & WithCreationTime(long long value)
Definition: Destination.h:250
void SetTargetArn(Aws::String &&value)
Definition: Destination.h:96
Destination & WithDestinationName(const char *value)
Definition: Destination.h:78
const Aws::String & GetArn() const
Definition: Destination.h:202
Destination & WithArn(const char *value)
Definition: Destination.h:232
#define AWS_CLOUDWATCHLOGS_API
Destination & WithTargetArn(const char *value)
Definition: Destination.h:120
Destination & WithTargetArn(Aws::String &&value)
Definition: Destination.h:114
Destination & WithAccessPolicy(const char *value)
Definition: Destination.h:197
Destination & WithAccessPolicy(Aws::String &&value)
Definition: Destination.h:191
Destination & WithDestinationName(const Aws::String &value)
Definition: Destination.h:68
Destination & WithAccessPolicy(const Aws::String &value)
Definition: Destination.h:185
void SetRoleArn(const Aws::String &value)
Definition: Destination.h:130
void SetArn(Aws::String &&value)
Definition: Destination.h:212
void SetRoleArn(const char *value)
Definition: Destination.h:140
const Aws::String & GetRoleArn() const
Definition: Destination.h:125
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Destination & WithRoleArn(Aws::String &&value)
Definition: Destination.h:150
Destination & WithArn(Aws::String &&value)
Definition: Destination.h:227
void SetTargetArn(const Aws::String &value)
Definition: Destination.h:90
void SetRoleArn(Aws::String &&value)
Definition: Destination.h:135
void SetDestinationName(const Aws::String &value)
Definition: Destination.h:53
Destination & WithTargetArn(const Aws::String &value)
Definition: Destination.h:108
Destination & WithRoleArn(const char *value)
Definition: Destination.h:155
void SetTargetArn(const char *value)
Definition: Destination.h:102
JSON (JavaScript Object Notation).
Destination & WithRoleArn(const Aws::String &value)
Definition: Destination.h:145
void SetAccessPolicy(const char *value)
Definition: Destination.h:179