AWS SDK for C++  0.14.3
AWS SDK for C++
TrustedAdvisorResourceDetail.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 
39  {
40  public:
43  TrustedAdvisorResourceDetail& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetStatus() const{ return m_status; }
50 
54  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
55 
59  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
60 
64  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
65 
69  inline TrustedAdvisorResourceDetail& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
70 
74  inline TrustedAdvisorResourceDetail& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
75 
79  inline TrustedAdvisorResourceDetail& WithStatus(const char* value) { SetStatus(value); return *this;}
80 
84  inline const Aws::String& GetRegion() const{ return m_region; }
85 
89  inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
90 
94  inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = value; }
95 
99  inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
100 
104  inline TrustedAdvisorResourceDetail& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
105 
109  inline TrustedAdvisorResourceDetail& WithRegion(Aws::String&& value) { SetRegion(value); return *this;}
110 
114  inline TrustedAdvisorResourceDetail& WithRegion(const char* value) { SetRegion(value); return *this;}
115 
119  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
120 
124  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
125 
129  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
130 
134  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
135 
139  inline TrustedAdvisorResourceDetail& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
140 
144  inline TrustedAdvisorResourceDetail& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
145 
149  inline TrustedAdvisorResourceDetail& WithResourceId(const char* value) { SetResourceId(value); return *this;}
150 
155  inline bool GetIsSuppressed() const{ return m_isSuppressed; }
156 
161  inline void SetIsSuppressed(bool value) { m_isSuppressedHasBeenSet = true; m_isSuppressed = value; }
162 
167  inline TrustedAdvisorResourceDetail& WithIsSuppressed(bool value) { SetIsSuppressed(value); return *this;}
168 
177  inline const Aws::Vector<Aws::String>& GetMetadata() const{ return m_metadata; }
178 
187  inline void SetMetadata(const Aws::Vector<Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
188 
197  inline void SetMetadata(Aws::Vector<Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = value; }
198 
207  inline TrustedAdvisorResourceDetail& WithMetadata(const Aws::Vector<Aws::String>& value) { SetMetadata(value); return *this;}
208 
217  inline TrustedAdvisorResourceDetail& WithMetadata(Aws::Vector<Aws::String>&& value) { SetMetadata(value); return *this;}
218 
227  inline TrustedAdvisorResourceDetail& AddMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
228 
237  inline TrustedAdvisorResourceDetail& AddMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
238 
247  inline TrustedAdvisorResourceDetail& AddMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
248 
249  private:
250  Aws::String m_status;
251  bool m_statusHasBeenSet;
252  Aws::String m_region;
253  bool m_regionHasBeenSet;
254  Aws::String m_resourceId;
255  bool m_resourceIdHasBeenSet;
256  bool m_isSuppressed;
257  bool m_isSuppressedHasBeenSet;
258  Aws::Vector<Aws::String> m_metadata;
259  bool m_metadataHasBeenSet;
260  };
261 
262 } // namespace Model
263 } // namespace Support
264 } // namespace Aws
TrustedAdvisorResourceDetail & WithMetadata(const Aws::Vector< Aws::String > &value)
TrustedAdvisorResourceDetail & AddMetadata(const char *value)
TrustedAdvisorResourceDetail & WithStatus(const char *value)
TrustedAdvisorResourceDetail & WithIsSuppressed(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
TrustedAdvisorResourceDetail & WithResourceId(const Aws::String &value)
TrustedAdvisorResourceDetail & WithResourceId(Aws::String &&value)
TrustedAdvisorResourceDetail & WithStatus(const Aws::String &value)
TrustedAdvisorResourceDetail & AddMetadata(const Aws::String &value)
TrustedAdvisorResourceDetail & WithRegion(const Aws::String &value)
const Aws::Vector< Aws::String > & GetMetadata() const
TrustedAdvisorResourceDetail & WithRegion(const char *value)
void SetMetadata(const Aws::Vector< Aws::String > &value)
TrustedAdvisorResourceDetail & AddMetadata(Aws::String &&value)
#define AWS_SUPPORT_API
TrustedAdvisorResourceDetail & WithStatus(Aws::String &&value)
TrustedAdvisorResourceDetail & WithRegion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TrustedAdvisorResourceDetail & WithResourceId(const char *value)
JSON (JavaScript Object Notation).
void SetMetadata(Aws::Vector< Aws::String > &&value)
TrustedAdvisorResourceDetail & WithMetadata(Aws::Vector< Aws::String > &&value)