AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CheckSummary.h
1
6#pragma once
7#include <aws/trustedadvisor/TrustedAdvisor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/trustedadvisor/model/RecommendationSource.h>
12#include <aws/trustedadvisor/model/RecommendationPillar.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace TrustedAdvisor
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_TRUSTEDADVISOR_API CheckSummary() = default;
39 AWS_TRUSTEDADVISOR_API CheckSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TRUSTEDADVISOR_API CheckSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template<typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
52 template<typename ArnT = Aws::String>
53 CheckSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetAwsServices() const { return m_awsServices; }
61 inline bool AwsServicesHasBeenSet() const { return m_awsServicesHasBeenSet; }
62 template<typename AwsServicesT = Aws::Vector<Aws::String>>
63 void SetAwsServices(AwsServicesT&& value) { m_awsServicesHasBeenSet = true; m_awsServices = std::forward<AwsServicesT>(value); }
64 template<typename AwsServicesT = Aws::Vector<Aws::String>>
65 CheckSummary& WithAwsServices(AwsServicesT&& value) { SetAwsServices(std::forward<AwsServicesT>(value)); return *this;}
66 template<typename AwsServicesT = Aws::String>
67 CheckSummary& AddAwsServices(AwsServicesT&& value) { m_awsServicesHasBeenSet = true; m_awsServices.emplace_back(std::forward<AwsServicesT>(value)); return *this; }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 CheckSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
86 inline const Aws::String& GetId() const { return m_id; }
87 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
88 template<typename IdT = Aws::String>
89 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
90 template<typename IdT = Aws::String>
91 CheckSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
93
95
98 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
99 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
100 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
101 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
102 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
103 CheckSummary& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
104 template<typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
105 CheckSummary& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
106 m_metadataHasBeenSet = true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value)); return *this;
107 }
109
111
114 inline const Aws::String& GetName() const { return m_name; }
115 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
116 template<typename NameT = Aws::String>
117 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
118 template<typename NameT = Aws::String>
119 CheckSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
121
123
126 inline const Aws::Vector<RecommendationPillar>& GetPillars() const { return m_pillars; }
127 inline bool PillarsHasBeenSet() const { return m_pillarsHasBeenSet; }
128 template<typename PillarsT = Aws::Vector<RecommendationPillar>>
129 void SetPillars(PillarsT&& value) { m_pillarsHasBeenSet = true; m_pillars = std::forward<PillarsT>(value); }
130 template<typename PillarsT = Aws::Vector<RecommendationPillar>>
131 CheckSummary& WithPillars(PillarsT&& value) { SetPillars(std::forward<PillarsT>(value)); return *this;}
132 inline CheckSummary& AddPillars(RecommendationPillar value) { m_pillarsHasBeenSet = true; m_pillars.push_back(value); return *this; }
134
136
139 inline RecommendationSource GetSource() const { return m_source; }
140 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
141 inline void SetSource(RecommendationSource value) { m_sourceHasBeenSet = true; m_source = value; }
142 inline CheckSummary& WithSource(RecommendationSource value) { SetSource(value); return *this;}
144 private:
145
146 Aws::String m_arn;
147 bool m_arnHasBeenSet = false;
148
149 Aws::Vector<Aws::String> m_awsServices;
150 bool m_awsServicesHasBeenSet = false;
151
152 Aws::String m_description;
153 bool m_descriptionHasBeenSet = false;
154
155 Aws::String m_id;
156 bool m_idHasBeenSet = false;
157
159 bool m_metadataHasBeenSet = false;
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
165 bool m_pillarsHasBeenSet = false;
166
168 bool m_sourceHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace TrustedAdvisor
173} // namespace Aws
CheckSummary & AddAwsServices(AwsServicesT &&value)
const Aws::String & GetName() const
AWS_TRUSTEDADVISOR_API CheckSummary()=default
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
AWS_TRUSTEDADVISOR_API CheckSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RecommendationPillar > & GetPillars() const
AWS_TRUSTEDADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const
CheckSummary & WithDescription(DescriptionT &&value)
CheckSummary & WithPillars(PillarsT &&value)
void SetDescription(DescriptionT &&value)
CheckSummary & WithId(IdT &&value)
CheckSummary & AddPillars(RecommendationPillar value)
CheckSummary & WithMetadata(MetadataT &&value)
const Aws::Vector< Aws::String > & GetAwsServices() const
CheckSummary & WithSource(RecommendationSource value)
CheckSummary & WithArn(ArnT &&value)
RecommendationSource GetSource() const
const Aws::String & GetDescription() const
CheckSummary & WithAwsServices(AwsServicesT &&value)
AWS_TRUSTEDADVISOR_API CheckSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
void SetAwsServices(AwsServicesT &&value)
const Aws::String & GetId() const
void SetSource(RecommendationSource value)
CheckSummary & WithName(NameT &&value)
CheckSummary & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue