AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Container.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/SecurityContext.h>
11#include <aws/guardduty/model/VolumeMount.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
24
30class Container {
31 public:
32 AWS_GUARDDUTY_API Container() = default;
33 AWS_GUARDDUTY_API Container(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Container& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetContainerRuntime() const { return m_containerRuntime; }
43 inline bool ContainerRuntimeHasBeenSet() const { return m_containerRuntimeHasBeenSet; }
44 template <typename ContainerRuntimeT = Aws::String>
45 void SetContainerRuntime(ContainerRuntimeT&& value) {
46 m_containerRuntimeHasBeenSet = true;
47 m_containerRuntime = std::forward<ContainerRuntimeT>(value);
48 }
49 template <typename ContainerRuntimeT = Aws::String>
50 Container& WithContainerRuntime(ContainerRuntimeT&& value) {
51 SetContainerRuntime(std::forward<ContainerRuntimeT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
68 Container& WithId(IdT&& value) {
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
86 Container& WithName(NameT&& value) {
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetImage() const { return m_image; }
97 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
98 template <typename ImageT = Aws::String>
99 void SetImage(ImageT&& value) {
100 m_imageHasBeenSet = true;
101 m_image = std::forward<ImageT>(value);
102 }
103 template <typename ImageT = Aws::String>
104 Container& WithImage(ImageT&& value) {
105 SetImage(std::forward<ImageT>(value));
106 return *this;
107 }
109
111
117 inline const Aws::String& GetImagePrefix() const { return m_imagePrefix; }
118 inline bool ImagePrefixHasBeenSet() const { return m_imagePrefixHasBeenSet; }
119 template <typename ImagePrefixT = Aws::String>
120 void SetImagePrefix(ImagePrefixT&& value) {
121 m_imagePrefixHasBeenSet = true;
122 m_imagePrefix = std::forward<ImagePrefixT>(value);
123 }
124 template <typename ImagePrefixT = Aws::String>
125 Container& WithImagePrefix(ImagePrefixT&& value) {
126 SetImagePrefix(std::forward<ImagePrefixT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Vector<VolumeMount>& GetVolumeMounts() const { return m_volumeMounts; }
136 inline bool VolumeMountsHasBeenSet() const { return m_volumeMountsHasBeenSet; }
137 template <typename VolumeMountsT = Aws::Vector<VolumeMount>>
138 void SetVolumeMounts(VolumeMountsT&& value) {
139 m_volumeMountsHasBeenSet = true;
140 m_volumeMounts = std::forward<VolumeMountsT>(value);
141 }
142 template <typename VolumeMountsT = Aws::Vector<VolumeMount>>
143 Container& WithVolumeMounts(VolumeMountsT&& value) {
144 SetVolumeMounts(std::forward<VolumeMountsT>(value));
145 return *this;
146 }
147 template <typename VolumeMountsT = VolumeMount>
148 Container& AddVolumeMounts(VolumeMountsT&& value) {
149 m_volumeMountsHasBeenSet = true;
150 m_volumeMounts.emplace_back(std::forward<VolumeMountsT>(value));
151 return *this;
152 }
154
156
159 inline const SecurityContext& GetSecurityContext() const { return m_securityContext; }
160 inline bool SecurityContextHasBeenSet() const { return m_securityContextHasBeenSet; }
161 template <typename SecurityContextT = SecurityContext>
162 void SetSecurityContext(SecurityContextT&& value) {
163 m_securityContextHasBeenSet = true;
164 m_securityContext = std::forward<SecurityContextT>(value);
165 }
166 template <typename SecurityContextT = SecurityContext>
167 Container& WithSecurityContext(SecurityContextT&& value) {
168 SetSecurityContext(std::forward<SecurityContextT>(value));
169 return *this;
170 }
172 private:
173 Aws::String m_containerRuntime;
174
175 Aws::String m_id;
176
177 Aws::String m_name;
178
179 Aws::String m_image;
180
181 Aws::String m_imagePrefix;
182
183 Aws::Vector<VolumeMount> m_volumeMounts;
184
185 SecurityContext m_securityContext;
186 bool m_containerRuntimeHasBeenSet = false;
187 bool m_idHasBeenSet = false;
188 bool m_nameHasBeenSet = false;
189 bool m_imageHasBeenSet = false;
190 bool m_imagePrefixHasBeenSet = false;
191 bool m_volumeMountsHasBeenSet = false;
192 bool m_securityContextHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace GuardDuty
197} // namespace Aws
Container & WithImage(ImageT &&value)
Definition Container.h:104
void SetContainerRuntime(ContainerRuntimeT &&value)
Definition Container.h:45
void SetName(NameT &&value)
Definition Container.h:81
AWS_GUARDDUTY_API Container()=default
const Aws::String & GetName() const
Definition Container.h:78
void SetSecurityContext(SecurityContextT &&value)
Definition Container.h:162
const Aws::String & GetImage() const
Definition Container.h:96
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Container & WithId(IdT &&value)
Definition Container.h:68
Container & AddVolumeMounts(VolumeMountsT &&value)
Definition Container.h:148
const Aws::String & GetId() const
Definition Container.h:60
Container & WithSecurityContext(SecurityContextT &&value)
Definition Container.h:167
AWS_GUARDDUTY_API Container & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContainerRuntime() const
Definition Container.h:42
Container & WithVolumeMounts(VolumeMountsT &&value)
Definition Container.h:143
Container & WithName(NameT &&value)
Definition Container.h:86
void SetImage(ImageT &&value)
Definition Container.h:99
void SetImagePrefix(ImagePrefixT &&value)
Definition Container.h:120
Container & WithContainerRuntime(ContainerRuntimeT &&value)
Definition Container.h:50
const SecurityContext & GetSecurityContext() const
Definition Container.h:159
Container & WithImagePrefix(ImagePrefixT &&value)
Definition Container.h:125
bool ContainerRuntimeHasBeenSet() const
Definition Container.h:43
const Aws::String & GetImagePrefix() const
Definition Container.h:117
AWS_GUARDDUTY_API Container(Aws::Utils::Json::JsonView jsonValue)
void SetVolumeMounts(VolumeMountsT &&value)
Definition Container.h:138
const Aws::Vector< VolumeMount > & GetVolumeMounts() const
Definition Container.h:135
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue