AWS SDK for C++  0.12.9
AWS SDK for C++
Scope.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 
43  {
44  public:
45  Scope();
46  Scope(const Aws::Utils::Json::JsonValue& jsonValue);
47  Scope& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
55  inline const Aws::Vector<Aws::String>& GetComplianceResourceTypes() const{ return m_complianceResourceTypes; }
56 
62  inline void SetComplianceResourceTypes(const Aws::Vector<Aws::String>& value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes = value; }
63 
69  inline void SetComplianceResourceTypes(Aws::Vector<Aws::String>&& value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes = value; }
70 
76  inline Scope& WithComplianceResourceTypes(const Aws::Vector<Aws::String>& value) { SetComplianceResourceTypes(value); return *this;}
77 
83  inline Scope& WithComplianceResourceTypes(Aws::Vector<Aws::String>&& value) { SetComplianceResourceTypes(value); return *this;}
84 
90  inline Scope& AddComplianceResourceTypes(const Aws::String& value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes.push_back(value); return *this; }
91 
97  inline Scope& AddComplianceResourceTypes(Aws::String&& value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes.push_back(value); return *this; }
98 
104  inline Scope& AddComplianceResourceTypes(const char* value) { m_complianceResourceTypesHasBeenSet = true; m_complianceResourceTypes.push_back(value); return *this; }
105 
110  inline const Aws::String& GetTagKey() const{ return m_tagKey; }
111 
116  inline void SetTagKey(const Aws::String& value) { m_tagKeyHasBeenSet = true; m_tagKey = value; }
117 
122  inline void SetTagKey(Aws::String&& value) { m_tagKeyHasBeenSet = true; m_tagKey = value; }
123 
128  inline void SetTagKey(const char* value) { m_tagKeyHasBeenSet = true; m_tagKey.assign(value); }
129 
134  inline Scope& WithTagKey(const Aws::String& value) { SetTagKey(value); return *this;}
135 
140  inline Scope& WithTagKey(Aws::String&& value) { SetTagKey(value); return *this;}
141 
146  inline Scope& WithTagKey(const char* value) { SetTagKey(value); return *this;}
147 
153  inline const Aws::String& GetTagValue() const{ return m_tagValue; }
154 
160  inline void SetTagValue(const Aws::String& value) { m_tagValueHasBeenSet = true; m_tagValue = value; }
161 
167  inline void SetTagValue(Aws::String&& value) { m_tagValueHasBeenSet = true; m_tagValue = value; }
168 
174  inline void SetTagValue(const char* value) { m_tagValueHasBeenSet = true; m_tagValue.assign(value); }
175 
181  inline Scope& WithTagValue(const Aws::String& value) { SetTagValue(value); return *this;}
182 
188  inline Scope& WithTagValue(Aws::String&& value) { SetTagValue(value); return *this;}
189 
195  inline Scope& WithTagValue(const char* value) { SetTagValue(value); return *this;}
196 
202  inline const Aws::String& GetComplianceResourceId() const{ return m_complianceResourceId; }
203 
209  inline void SetComplianceResourceId(const Aws::String& value) { m_complianceResourceIdHasBeenSet = true; m_complianceResourceId = value; }
210 
216  inline void SetComplianceResourceId(Aws::String&& value) { m_complianceResourceIdHasBeenSet = true; m_complianceResourceId = value; }
217 
223  inline void SetComplianceResourceId(const char* value) { m_complianceResourceIdHasBeenSet = true; m_complianceResourceId.assign(value); }
224 
230  inline Scope& WithComplianceResourceId(const Aws::String& value) { SetComplianceResourceId(value); return *this;}
231 
237  inline Scope& WithComplianceResourceId(Aws::String&& value) { SetComplianceResourceId(value); return *this;}
238 
244  inline Scope& WithComplianceResourceId(const char* value) { SetComplianceResourceId(value); return *this;}
245 
246  private:
247  Aws::Vector<Aws::String> m_complianceResourceTypes;
248  bool m_complianceResourceTypesHasBeenSet;
249  Aws::String m_tagKey;
250  bool m_tagKeyHasBeenSet;
251  Aws::String m_tagValue;
252  bool m_tagValueHasBeenSet;
253  Aws::String m_complianceResourceId;
254  bool m_complianceResourceIdHasBeenSet;
255  };
256 
257 } // namespace Model
258 } // namespace ConfigService
259 } // namespace Aws
Scope & WithComplianceResourceTypes(Aws::Vector< Aws::String > &&value)
Definition: Scope.h:83
Scope & WithTagValue(const char *value)
Definition: Scope.h:195
void SetComplianceResourceTypes(Aws::Vector< Aws::String > &&value)
Definition: Scope.h:69
Scope & WithComplianceResourceId(Aws::String &&value)
Definition: Scope.h:237
const Aws::String & GetTagKey() const
Definition: Scope.h:110
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Scope & AddComplianceResourceTypes(const char *value)
Definition: Scope.h:104
void SetTagValue(const Aws::String &value)
Definition: Scope.h:160
void SetTagValue(const char *value)
Definition: Scope.h:174
Scope & AddComplianceResourceTypes(Aws::String &&value)
Definition: Scope.h:97
void SetTagKey(const char *value)
Definition: Scope.h:128
void SetComplianceResourceId(const Aws::String &value)
Definition: Scope.h:209
Scope & WithTagValue(const Aws::String &value)
Definition: Scope.h:181
Scope & WithTagValue(Aws::String &&value)
Definition: Scope.h:188
Scope & WithTagKey(Aws::String &&value)
Definition: Scope.h:140
void SetTagValue(Aws::String &&value)
Definition: Scope.h:167
void SetTagKey(Aws::String &&value)
Definition: Scope.h:122
void SetComplianceResourceId(Aws::String &&value)
Definition: Scope.h:216
Scope & WithComplianceResourceId(const Aws::String &value)
Definition: Scope.h:230
void SetTagKey(const Aws::String &value)
Definition: Scope.h:116
const Aws::Vector< Aws::String > & GetComplianceResourceTypes() const
Definition: Scope.h:55
void SetComplianceResourceTypes(const Aws::Vector< Aws::String > &value)
Definition: Scope.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Scope & WithTagKey(const char *value)
Definition: Scope.h:146
#define AWS_CONFIGSERVICE_API
const Aws::String & GetComplianceResourceId() const
Definition: Scope.h:202
Scope & WithComplianceResourceId(const char *value)
Definition: Scope.h:244
Scope & AddComplianceResourceTypes(const Aws::String &value)
Definition: Scope.h:90
const Aws::String & GetTagValue() const
Definition: Scope.h:153
Scope & WithComplianceResourceTypes(const Aws::Vector< Aws::String > &value)
Definition: Scope.h:76
Scope & WithTagKey(const Aws::String &value)
Definition: Scope.h:134
void SetComplianceResourceId(const char *value)
Definition: Scope.h:223
JSON (JavaScript Object Notation).