AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
AccountVpcEncryptionControl.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/AccountVpcEncryptionControlExclusions.h>
11#include <aws/ec2/model/AccountVpcEncryptionControlMode.h>
12#include <aws/ec2/model/AccountVpcEncryptionControlState.h>
13#include <aws/ec2/model/ManagedBy.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2 {
24namespace Model {
25
36 public:
37 AWS_EC2_API AccountVpcEncryptionControl() = default;
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
45
49 inline AccountVpcEncryptionControlState GetState() const { return m_state; }
50 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
52 m_stateHasBeenSet = true;
53 m_state = value;
54 }
56 SetState(value);
57 return *this;
58 }
60
62
66 inline AccountVpcEncryptionControlMode GetMode() const { return m_mode; }
67 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
69 m_modeHasBeenSet = true;
70 m_mode = value;
71 }
73 SetMode(value);
74 return *this;
75 }
77
79
83 inline const AccountVpcEncryptionControlExclusions& GetExclusions() const { return m_exclusions; }
84 inline bool ExclusionsHasBeenSet() const { return m_exclusionsHasBeenSet; }
85 template <typename ExclusionsT = AccountVpcEncryptionControlExclusions>
86 void SetExclusions(ExclusionsT&& value) {
87 m_exclusionsHasBeenSet = true;
88 m_exclusions = std::forward<ExclusionsT>(value);
89 }
90 template <typename ExclusionsT = AccountVpcEncryptionControlExclusions>
92 SetExclusions(std::forward<ExclusionsT>(value));
93 return *this;
94 }
96
98
102 inline ManagedBy GetManagedBy() const { return m_managedBy; }
103 inline bool ManagedByHasBeenSet() const { return m_managedByHasBeenSet; }
104 inline void SetManagedBy(ManagedBy value) {
105 m_managedByHasBeenSet = true;
106 m_managedBy = value;
107 }
109 SetManagedBy(value);
110 return *this;
111 }
113
115
119 inline const Aws::Utils::DateTime& GetLastUpdateTimestamp() const { return m_lastUpdateTimestamp; }
120 inline bool LastUpdateTimestampHasBeenSet() const { return m_lastUpdateTimestampHasBeenSet; }
121 template <typename LastUpdateTimestampT = Aws::Utils::DateTime>
122 void SetLastUpdateTimestamp(LastUpdateTimestampT&& value) {
123 m_lastUpdateTimestampHasBeenSet = true;
124 m_lastUpdateTimestamp = std::forward<LastUpdateTimestampT>(value);
125 }
126 template <typename LastUpdateTimestampT = Aws::Utils::DateTime>
128 SetLastUpdateTimestamp(std::forward<LastUpdateTimestampT>(value));
129 return *this;
130 }
132 private:
134
136
137 AccountVpcEncryptionControlExclusions m_exclusions;
138
139 ManagedBy m_managedBy{ManagedBy::NOT_SET};
140
141 Aws::Utils::DateTime m_lastUpdateTimestamp{};
142 bool m_stateHasBeenSet = false;
143 bool m_modeHasBeenSet = false;
144 bool m_exclusionsHasBeenSet = false;
145 bool m_managedByHasBeenSet = false;
146 bool m_lastUpdateTimestampHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace EC2
151} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AccountVpcEncryptionControl & WithMode(AccountVpcEncryptionControlMode value)
AWS_EC2_API AccountVpcEncryptionControl & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AccountVpcEncryptionControl & WithManagedBy(ManagedBy value)
const Aws::Utils::DateTime & GetLastUpdateTimestamp() const
AccountVpcEncryptionControl & WithLastUpdateTimestamp(LastUpdateTimestampT &&value)
AccountVpcEncryptionControlMode GetMode() const
void SetLastUpdateTimestamp(LastUpdateTimestampT &&value)
const AccountVpcEncryptionControlExclusions & GetExclusions() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetState(AccountVpcEncryptionControlState value)
AccountVpcEncryptionControlState GetState() const
AWS_EC2_API AccountVpcEncryptionControl(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMode(AccountVpcEncryptionControlMode value)
AccountVpcEncryptionControl & WithState(AccountVpcEncryptionControlState value)
AWS_EC2_API AccountVpcEncryptionControl()=default
AccountVpcEncryptionControl & WithExclusions(ExclusionsT &&value)
std::basic_ostream< char, std::char_traits< char > > OStream