AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
EnabledControlSummary.h
1
6#pragma once
7#include <aws/controltower/ControlTower_EXPORTS.h>
8#include <aws/controltower/model/DriftStatusSummary.h>
9#include <aws/controltower/model/EnablementStatusSummary.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ControlTower {
22namespace Model {
23
31 public:
32 AWS_CONTROLTOWER_API EnabledControlSummary() = default;
33 AWS_CONTROLTOWER_API EnabledControlSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetControlIdentifier() const { return m_controlIdentifier; }
60 inline bool ControlIdentifierHasBeenSet() const { return m_controlIdentifierHasBeenSet; }
61 template <typename ControlIdentifierT = Aws::String>
62 void SetControlIdentifier(ControlIdentifierT&& value) {
63 m_controlIdentifierHasBeenSet = true;
64 m_controlIdentifier = std::forward<ControlIdentifierT>(value);
65 }
66 template <typename ControlIdentifierT = Aws::String>
67 EnabledControlSummary& WithControlIdentifier(ControlIdentifierT&& value) {
68 SetControlIdentifier(std::forward<ControlIdentifierT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
78 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
79 template <typename TargetIdentifierT = Aws::String>
80 void SetTargetIdentifier(TargetIdentifierT&& value) {
81 m_targetIdentifierHasBeenSet = true;
82 m_targetIdentifier = std::forward<TargetIdentifierT>(value);
83 }
84 template <typename TargetIdentifierT = Aws::String>
85 EnabledControlSummary& WithTargetIdentifier(TargetIdentifierT&& value) {
86 SetTargetIdentifier(std::forward<TargetIdentifierT>(value));
87 return *this;
88 }
90
92
95 inline const EnablementStatusSummary& GetStatusSummary() const { return m_statusSummary; }
96 inline bool StatusSummaryHasBeenSet() const { return m_statusSummaryHasBeenSet; }
97 template <typename StatusSummaryT = EnablementStatusSummary>
98 void SetStatusSummary(StatusSummaryT&& value) {
99 m_statusSummaryHasBeenSet = true;
100 m_statusSummary = std::forward<StatusSummaryT>(value);
101 }
102 template <typename StatusSummaryT = EnablementStatusSummary>
103 EnabledControlSummary& WithStatusSummary(StatusSummaryT&& value) {
104 SetStatusSummary(std::forward<StatusSummaryT>(value));
105 return *this;
106 }
108
110
113 inline const DriftStatusSummary& GetDriftStatusSummary() const { return m_driftStatusSummary; }
114 inline bool DriftStatusSummaryHasBeenSet() const { return m_driftStatusSummaryHasBeenSet; }
115 template <typename DriftStatusSummaryT = DriftStatusSummary>
116 void SetDriftStatusSummary(DriftStatusSummaryT&& value) {
117 m_driftStatusSummaryHasBeenSet = true;
118 m_driftStatusSummary = std::forward<DriftStatusSummaryT>(value);
119 }
120 template <typename DriftStatusSummaryT = DriftStatusSummary>
121 EnabledControlSummary& WithDriftStatusSummary(DriftStatusSummaryT&& value) {
122 SetDriftStatusSummary(std::forward<DriftStatusSummaryT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetParentIdentifier() const { return m_parentIdentifier; }
133 inline bool ParentIdentifierHasBeenSet() const { return m_parentIdentifierHasBeenSet; }
134 template <typename ParentIdentifierT = Aws::String>
135 void SetParentIdentifier(ParentIdentifierT&& value) {
136 m_parentIdentifierHasBeenSet = true;
137 m_parentIdentifier = std::forward<ParentIdentifierT>(value);
138 }
139 template <typename ParentIdentifierT = Aws::String>
140 EnabledControlSummary& WithParentIdentifier(ParentIdentifierT&& value) {
141 SetParentIdentifier(std::forward<ParentIdentifierT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_arn;
147
148 Aws::String m_controlIdentifier;
149
150 Aws::String m_targetIdentifier;
151
152 EnablementStatusSummary m_statusSummary;
153
154 DriftStatusSummary m_driftStatusSummary;
155
156 Aws::String m_parentIdentifier;
157 bool m_arnHasBeenSet = false;
158 bool m_controlIdentifierHasBeenSet = false;
159 bool m_targetIdentifierHasBeenSet = false;
160 bool m_statusSummaryHasBeenSet = false;
161 bool m_driftStatusSummaryHasBeenSet = false;
162 bool m_parentIdentifierHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace ControlTower
167} // namespace Aws
EnabledControlSummary & WithStatusSummary(StatusSummaryT &&value)
void SetControlIdentifier(ControlIdentifierT &&value)
EnabledControlSummary & WithArn(ArnT &&value)
EnabledControlSummary & WithControlIdentifier(ControlIdentifierT &&value)
EnabledControlSummary & WithTargetIdentifier(TargetIdentifierT &&value)
const EnablementStatusSummary & GetStatusSummary() const
AWS_CONTROLTOWER_API EnabledControlSummary(Aws::Utils::Json::JsonView jsonValue)
EnabledControlSummary & WithDriftStatusSummary(DriftStatusSummaryT &&value)
const DriftStatusSummary & GetDriftStatusSummary() const
EnabledControlSummary & WithParentIdentifier(ParentIdentifierT &&value)
void SetDriftStatusSummary(DriftStatusSummaryT &&value)
AWS_CONTROLTOWER_API EnabledControlSummary()=default
AWS_CONTROLTOWER_API EnabledControlSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue