AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrustedAdvisorResourceDetail.h
1
6#pragma once
7#include <aws/support/Support_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Support
23{
24namespace Model
25{
26
34 {
35 public:
39 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetStatus() const{ return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
49 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
50 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
51 inline TrustedAdvisorResourceDetail& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
52 inline TrustedAdvisorResourceDetail& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
53 inline TrustedAdvisorResourceDetail& WithStatus(const char* value) { SetStatus(value); return *this;}
55
57
61 inline const Aws::String& GetRegion() const{ return m_region; }
62 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
63 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
64 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
65 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
66 inline TrustedAdvisorResourceDetail& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
67 inline TrustedAdvisorResourceDetail& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
68 inline TrustedAdvisorResourceDetail& WithRegion(const char* value) { SetRegion(value); return *this;}
70
72
75 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
76 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
77 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
78 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
79 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
80 inline TrustedAdvisorResourceDetail& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
81 inline TrustedAdvisorResourceDetail& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
82 inline TrustedAdvisorResourceDetail& WithResourceId(const char* value) { SetResourceId(value); return *this;}
84
86
90 inline bool GetIsSuppressed() const{ return m_isSuppressed; }
91 inline bool IsSuppressedHasBeenSet() const { return m_isSuppressedHasBeenSet; }
92 inline void SetIsSuppressed(bool value) { m_isSuppressedHasBeenSet = true; m_isSuppressed = value; }
93 inline TrustedAdvisorResourceDetail& WithIsSuppressed(bool value) { SetIsSuppressed(value); return *this;}
95
97
105 inline const Aws::Vector<Aws::String>& GetMetadata() const{ return m_metadata; }
106 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
107 inline void SetMetadata(const Aws::Vector<Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
108 inline void SetMetadata(Aws::Vector<Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
110 inline TrustedAdvisorResourceDetail& WithMetadata(Aws::Vector<Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
111 inline TrustedAdvisorResourceDetail& AddMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
112 inline TrustedAdvisorResourceDetail& AddMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.push_back(std::move(value)); return *this; }
113 inline TrustedAdvisorResourceDetail& AddMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
115 private:
116
117 Aws::String m_status;
118 bool m_statusHasBeenSet = false;
119
120 Aws::String m_region;
121 bool m_regionHasBeenSet = false;
122
123 Aws::String m_resourceId;
124 bool m_resourceIdHasBeenSet = false;
125
126 bool m_isSuppressed;
127 bool m_isSuppressedHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_metadata;
130 bool m_metadataHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Support
135} // namespace Aws
TrustedAdvisorResourceDetail & AddMetadata(Aws::String &&value)
AWS_SUPPORT_API TrustedAdvisorResourceDetail(Aws::Utils::Json::JsonView jsonValue)
TrustedAdvisorResourceDetail & WithMetadata(Aws::Vector< Aws::String > &&value)
TrustedAdvisorResourceDetail & WithStatus(Aws::String &&value)
TrustedAdvisorResourceDetail & WithRegion(const char *value)
const Aws::Vector< Aws::String > & GetMetadata() const
TrustedAdvisorResourceDetail & AddMetadata(const Aws::String &value)
TrustedAdvisorResourceDetail & WithResourceId(const Aws::String &value)
TrustedAdvisorResourceDetail & WithStatus(const Aws::String &value)
void SetMetadata(const Aws::Vector< Aws::String > &value)
TrustedAdvisorResourceDetail & WithResourceId(const char *value)
TrustedAdvisorResourceDetail & WithMetadata(const Aws::Vector< Aws::String > &value)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
TrustedAdvisorResourceDetail & WithStatus(const char *value)
TrustedAdvisorResourceDetail & WithRegion(Aws::String &&value)
TrustedAdvisorResourceDetail & WithResourceId(Aws::String &&value)
AWS_SUPPORT_API TrustedAdvisorResourceDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
TrustedAdvisorResourceDetail & WithRegion(const Aws::String &value)
TrustedAdvisorResourceDetail & AddMetadata(const char *value)
TrustedAdvisorResourceDetail & WithIsSuppressed(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue