AWS SDK for C++  0.12.9
AWS SDK for C++
ConfigurationRecorder.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  ConfigurationRecorder& 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 ConfigurationRecorder& WithName(const Aws::String& value) { SetName(value); return *this;}
80 
86  inline ConfigurationRecorder& WithName(Aws::String&& value) { SetName(value); return *this;}
87 
93  inline ConfigurationRecorder& WithName(const char* value) { SetName(value); return *this;}
94 
99  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
100 
105  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
106 
111  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
112 
117  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
118 
123  inline ConfigurationRecorder& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
124 
129  inline ConfigurationRecorder& WithRoleARN(Aws::String&& value) { SetRoleARN(value); return *this;}
130 
135  inline ConfigurationRecorder& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
136 
141  inline const RecordingGroup& GetRecordingGroup() const{ return m_recordingGroup; }
142 
147  inline void SetRecordingGroup(const RecordingGroup& value) { m_recordingGroupHasBeenSet = true; m_recordingGroup = value; }
148 
153  inline void SetRecordingGroup(RecordingGroup&& value) { m_recordingGroupHasBeenSet = true; m_recordingGroup = value; }
154 
159  inline ConfigurationRecorder& WithRecordingGroup(const RecordingGroup& value) { SetRecordingGroup(value); return *this;}
160 
165  inline ConfigurationRecorder& WithRecordingGroup(RecordingGroup&& value) { SetRecordingGroup(value); return *this;}
166 
167  private:
168  Aws::String m_name;
169  bool m_nameHasBeenSet;
170  Aws::String m_roleARN;
171  bool m_roleARNHasBeenSet;
172  RecordingGroup m_recordingGroup;
173  bool m_recordingGroupHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace ConfigService
178 } // namespace Aws
ConfigurationRecorder & WithRoleARN(const Aws::String &value)
ConfigurationRecorder & WithRecordingGroup(RecordingGroup &&value)
ConfigurationRecorder & WithRoleARN(Aws::String &&value)
ConfigurationRecorder & WithName(Aws::String &&value)
void SetRecordingGroup(const RecordingGroup &value)
ConfigurationRecorder & WithName(const char *value)
ConfigurationRecorder & WithRoleARN(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CONFIGSERVICE_API
ConfigurationRecorder & WithRecordingGroup(const RecordingGroup &value)
ConfigurationRecorder & WithName(const Aws::String &value)
JSON (JavaScript Object Notation).