AWS SDK for C++  0.12.9
AWS SDK for C++
TrustedAdvisorCheckDescription.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 Support
30 {
31 namespace Model
32 {
33 
38  {
39  public:
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetId() const{ return m_id; }
49 
53  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 
58  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
59 
63  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 
68  inline TrustedAdvisorCheckDescription& WithId(const Aws::String& value) { SetId(value); return *this;}
69 
73  inline TrustedAdvisorCheckDescription& WithId(Aws::String&& value) { SetId(value); return *this;}
74 
78  inline TrustedAdvisorCheckDescription& WithId(const char* value) { SetId(value); return *this;}
79 
83  inline const Aws::String& GetName() const{ return m_name; }
84 
88  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
89 
93  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
94 
98  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
99 
103  inline TrustedAdvisorCheckDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
104 
108  inline TrustedAdvisorCheckDescription& WithName(Aws::String&& value) { SetName(value); return *this;}
109 
113  inline TrustedAdvisorCheckDescription& WithName(const char* value) { SetName(value); return *this;}
114 
119  inline const Aws::String& GetDescription() const{ return m_description; }
120 
125  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
126 
131  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
132 
137  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
138 
143  inline TrustedAdvisorCheckDescription& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
144 
149  inline TrustedAdvisorCheckDescription& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
150 
155  inline TrustedAdvisorCheckDescription& WithDescription(const char* value) { SetDescription(value); return *this;}
156 
160  inline const Aws::String& GetCategory() const{ return m_category; }
161 
165  inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
166 
170  inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = value; }
171 
175  inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
176 
180  inline TrustedAdvisorCheckDescription& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
181 
185  inline TrustedAdvisorCheckDescription& WithCategory(Aws::String&& value) { SetCategory(value); return *this;}
186 
190  inline TrustedAdvisorCheckDescription& WithCategory(const char* value) { SetCategory(value); return *this;}
191 
199  inline const Aws::Vector<Aws::String>& GetMetadata() const{ return m_metadata; }
200 
208  inline void SetMetadata(const Aws::Vector<Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
209 
217  inline void SetMetadata(Aws::Vector<Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = value; }
218 
226  inline TrustedAdvisorCheckDescription& WithMetadata(const Aws::Vector<Aws::String>& value) { SetMetadata(value); return *this;}
227 
235  inline TrustedAdvisorCheckDescription& WithMetadata(Aws::Vector<Aws::String>&& value) { SetMetadata(value); return *this;}
236 
244  inline TrustedAdvisorCheckDescription& AddMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
245 
253  inline TrustedAdvisorCheckDescription& AddMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
254 
262  inline TrustedAdvisorCheckDescription& AddMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
263 
264  private:
265  Aws::String m_id;
266  bool m_idHasBeenSet;
267  Aws::String m_name;
268  bool m_nameHasBeenSet;
269  Aws::String m_description;
270  bool m_descriptionHasBeenSet;
271  Aws::String m_category;
272  bool m_categoryHasBeenSet;
273  Aws::Vector<Aws::String> m_metadata;
274  bool m_metadataHasBeenSet;
275  };
276 
277 } // namespace Model
278 } // namespace Support
279 } // namespace Aws
TrustedAdvisorCheckDescription & WithDescription(const char *value)
TrustedAdvisorCheckDescription & WithCategory(const char *value)
TrustedAdvisorCheckDescription & WithCategory(Aws::String &&value)
TrustedAdvisorCheckDescription & WithDescription(const Aws::String &value)
TrustedAdvisorCheckDescription & WithName(const char *value)
const Aws::Vector< Aws::String > & GetMetadata() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
TrustedAdvisorCheckDescription & WithId(Aws::String &&value)
TrustedAdvisorCheckDescription & WithMetadata(const Aws::Vector< Aws::String > &value)
TrustedAdvisorCheckDescription & AddMetadata(const Aws::String &value)
TrustedAdvisorCheckDescription & WithCategory(const Aws::String &value)
TrustedAdvisorCheckDescription & WithName(const Aws::String &value)
TrustedAdvisorCheckDescription & WithId(const char *value)
void SetMetadata(const Aws::Vector< Aws::String > &value)
TrustedAdvisorCheckDescription & AddMetadata(Aws::String &&value)
#define AWS_SUPPORT_API
TrustedAdvisorCheckDescription & AddMetadata(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TrustedAdvisorCheckDescription & WithName(Aws::String &&value)
TrustedAdvisorCheckDescription & WithMetadata(Aws::Vector< Aws::String > &&value)
JSON (JavaScript Object Notation).
TrustedAdvisorCheckDescription & WithDescription(Aws::String &&value)
TrustedAdvisorCheckDescription & WithId(const Aws::String &value)