AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnabledControlDetails.h
1
6#pragma once
7#include <aws/controltower/ControlTower_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/controltower/model/DriftStatusSummary.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/controltower/model/EnablementStatusSummary.h>
12#include <aws/controltower/model/EnabledControlParameterSummary.h>
13#include <aws/controltower/model/Region.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ControlTower
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CONTROLTOWER_API EnabledControlDetails();
40 AWS_CONTROLTOWER_API EnabledControlDetails(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const{ return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline EnabledControlDetails& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline EnabledControlDetails& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline EnabledControlDetails& WithArn(const char* value) { SetArn(value); return *this;}
58
60
66 inline const Aws::String& GetControlIdentifier() const{ return m_controlIdentifier; }
67 inline bool ControlIdentifierHasBeenSet() const { return m_controlIdentifierHasBeenSet; }
68 inline void SetControlIdentifier(const Aws::String& value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier = value; }
69 inline void SetControlIdentifier(Aws::String&& value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier = std::move(value); }
70 inline void SetControlIdentifier(const char* value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier.assign(value); }
71 inline EnabledControlDetails& WithControlIdentifier(const Aws::String& value) { SetControlIdentifier(value); return *this;}
72 inline EnabledControlDetails& WithControlIdentifier(Aws::String&& value) { SetControlIdentifier(std::move(value)); return *this;}
73 inline EnabledControlDetails& WithControlIdentifier(const char* value) { SetControlIdentifier(value); return *this;}
75
77
80 inline const DriftStatusSummary& GetDriftStatusSummary() const{ return m_driftStatusSummary; }
81 inline bool DriftStatusSummaryHasBeenSet() const { return m_driftStatusSummaryHasBeenSet; }
82 inline void SetDriftStatusSummary(const DriftStatusSummary& value) { m_driftStatusSummaryHasBeenSet = true; m_driftStatusSummary = value; }
83 inline void SetDriftStatusSummary(DriftStatusSummary&& value) { m_driftStatusSummaryHasBeenSet = true; m_driftStatusSummary = std::move(value); }
85 inline EnabledControlDetails& WithDriftStatusSummary(DriftStatusSummary&& value) { SetDriftStatusSummary(std::move(value)); return *this;}
87
89
92 inline const Aws::Vector<EnabledControlParameterSummary>& GetParameters() const{ return m_parameters; }
93 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
94 inline void SetParameters(const Aws::Vector<EnabledControlParameterSummary>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
95 inline void SetParameters(Aws::Vector<EnabledControlParameterSummary>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
98 inline EnabledControlDetails& AddParameters(const EnabledControlParameterSummary& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
99 inline EnabledControlDetails& AddParameters(EnabledControlParameterSummary&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
101
103
106 inline const EnablementStatusSummary& GetStatusSummary() const{ return m_statusSummary; }
107 inline bool StatusSummaryHasBeenSet() const { return m_statusSummaryHasBeenSet; }
108 inline void SetStatusSummary(const EnablementStatusSummary& value) { m_statusSummaryHasBeenSet = true; m_statusSummary = value; }
109 inline void SetStatusSummary(EnablementStatusSummary&& value) { m_statusSummaryHasBeenSet = true; m_statusSummary = std::move(value); }
111 inline EnabledControlDetails& WithStatusSummary(EnablementStatusSummary&& value) { SetStatusSummary(std::move(value)); return *this;}
113
115
121 inline const Aws::String& GetTargetIdentifier() const{ return m_targetIdentifier; }
122 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
123 inline void SetTargetIdentifier(const Aws::String& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = value; }
124 inline void SetTargetIdentifier(Aws::String&& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = std::move(value); }
125 inline void SetTargetIdentifier(const char* value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier.assign(value); }
126 inline EnabledControlDetails& WithTargetIdentifier(const Aws::String& value) { SetTargetIdentifier(value); return *this;}
127 inline EnabledControlDetails& WithTargetIdentifier(Aws::String&& value) { SetTargetIdentifier(std::move(value)); return *this;}
128 inline EnabledControlDetails& WithTargetIdentifier(const char* value) { SetTargetIdentifier(value); return *this;}
130
132
135 inline const Aws::Vector<Region>& GetTargetRegions() const{ return m_targetRegions; }
136 inline bool TargetRegionsHasBeenSet() const { return m_targetRegionsHasBeenSet; }
137 inline void SetTargetRegions(const Aws::Vector<Region>& value) { m_targetRegionsHasBeenSet = true; m_targetRegions = value; }
138 inline void SetTargetRegions(Aws::Vector<Region>&& value) { m_targetRegionsHasBeenSet = true; m_targetRegions = std::move(value); }
140 inline EnabledControlDetails& WithTargetRegions(Aws::Vector<Region>&& value) { SetTargetRegions(std::move(value)); return *this;}
141 inline EnabledControlDetails& AddTargetRegions(const Region& value) { m_targetRegionsHasBeenSet = true; m_targetRegions.push_back(value); return *this; }
142 inline EnabledControlDetails& AddTargetRegions(Region&& value) { m_targetRegionsHasBeenSet = true; m_targetRegions.push_back(std::move(value)); return *this; }
144 private:
145
146 Aws::String m_arn;
147 bool m_arnHasBeenSet = false;
148
149 Aws::String m_controlIdentifier;
150 bool m_controlIdentifierHasBeenSet = false;
151
152 DriftStatusSummary m_driftStatusSummary;
153 bool m_driftStatusSummaryHasBeenSet = false;
154
156 bool m_parametersHasBeenSet = false;
157
158 EnablementStatusSummary m_statusSummary;
159 bool m_statusSummaryHasBeenSet = false;
160
161 Aws::String m_targetIdentifier;
162 bool m_targetIdentifierHasBeenSet = false;
163
164 Aws::Vector<Region> m_targetRegions;
165 bool m_targetRegionsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace ControlTower
170} // namespace Aws
EnabledControlDetails & WithArn(Aws::String &&value)
EnabledControlDetails & WithControlIdentifier(const char *value)
AWS_CONTROLTOWER_API EnabledControlDetails(Aws::Utils::Json::JsonView jsonValue)
void SetStatusSummary(const EnablementStatusSummary &value)
void SetStatusSummary(EnablementStatusSummary &&value)
void SetTargetRegions(Aws::Vector< Region > &&value)
void SetDriftStatusSummary(const DriftStatusSummary &value)
EnabledControlDetails & WithParameters(Aws::Vector< EnabledControlParameterSummary > &&value)
EnabledControlDetails & WithStatusSummary(EnablementStatusSummary &&value)
EnabledControlDetails & WithControlIdentifier(const Aws::String &value)
EnabledControlDetails & WithParameters(const Aws::Vector< EnabledControlParameterSummary > &value)
const Aws::Vector< EnabledControlParameterSummary > & GetParameters() const
void SetDriftStatusSummary(DriftStatusSummary &&value)
EnabledControlDetails & WithStatusSummary(const EnablementStatusSummary &value)
EnabledControlDetails & WithArn(const char *value)
void SetParameters(Aws::Vector< EnabledControlParameterSummary > &&value)
EnabledControlDetails & WithArn(const Aws::String &value)
EnabledControlDetails & WithTargetIdentifier(Aws::String &&value)
EnabledControlDetails & WithTargetIdentifier(const char *value)
EnabledControlDetails & WithDriftStatusSummary(DriftStatusSummary &&value)
EnabledControlDetails & WithTargetRegions(const Aws::Vector< Region > &value)
const EnablementStatusSummary & GetStatusSummary() const
const DriftStatusSummary & GetDriftStatusSummary() const
EnabledControlDetails & WithControlIdentifier(Aws::String &&value)
AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const
EnabledControlDetails & AddParameters(EnabledControlParameterSummary &&value)
EnabledControlDetails & AddTargetRegions(Region &&value)
void SetParameters(const Aws::Vector< EnabledControlParameterSummary > &value)
EnabledControlDetails & AddParameters(const EnabledControlParameterSummary &value)
EnabledControlDetails & WithTargetIdentifier(const Aws::String &value)
EnabledControlDetails & WithTargetRegions(Aws::Vector< Region > &&value)
EnabledControlDetails & WithDriftStatusSummary(const DriftStatusSummary &value)
AWS_CONTROLTOWER_API EnabledControlDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetRegions(const Aws::Vector< Region > &value)
const Aws::Vector< Region > & GetTargetRegions() const
EnabledControlDetails & AddTargetRegions(const Region &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