AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ContainerDetails.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/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/VolumeMount.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
30 public:
31 AWS_SECURITYHUB_API ContainerDetails() = default;
32 AWS_SECURITYHUB_API ContainerDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API ContainerDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetContainerRuntime() const { return m_containerRuntime; }
41 inline bool ContainerRuntimeHasBeenSet() const { return m_containerRuntimeHasBeenSet; }
42 template <typename ContainerRuntimeT = Aws::String>
43 void SetContainerRuntime(ContainerRuntimeT&& value) {
44 m_containerRuntimeHasBeenSet = true;
45 m_containerRuntime = std::forward<ContainerRuntimeT>(value);
46 }
47 template <typename ContainerRuntimeT = Aws::String>
48 ContainerDetails& WithContainerRuntime(ContainerRuntimeT&& value) {
49 SetContainerRuntime(std::forward<ContainerRuntimeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 ContainerDetails& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetImageId() const { return m_imageId; }
77 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
78 template <typename ImageIdT = Aws::String>
79 void SetImageId(ImageIdT&& value) {
80 m_imageIdHasBeenSet = true;
81 m_imageId = std::forward<ImageIdT>(value);
82 }
83 template <typename ImageIdT = Aws::String>
84 ContainerDetails& WithImageId(ImageIdT&& value) {
85 SetImageId(std::forward<ImageIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetImageName() const { return m_imageName; }
95 inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
96 template <typename ImageNameT = Aws::String>
97 void SetImageName(ImageNameT&& value) {
98 m_imageNameHasBeenSet = true;
99 m_imageName = std::forward<ImageNameT>(value);
100 }
101 template <typename ImageNameT = Aws::String>
102 ContainerDetails& WithImageName(ImageNameT&& value) {
103 SetImageName(std::forward<ImageNameT>(value));
104 return *this;
105 }
107
109
114 inline const Aws::String& GetLaunchedAt() const { return m_launchedAt; }
115 inline bool LaunchedAtHasBeenSet() const { return m_launchedAtHasBeenSet; }
116 template <typename LaunchedAtT = Aws::String>
117 void SetLaunchedAt(LaunchedAtT&& value) {
118 m_launchedAtHasBeenSet = true;
119 m_launchedAt = std::forward<LaunchedAtT>(value);
120 }
121 template <typename LaunchedAtT = Aws::String>
122 ContainerDetails& WithLaunchedAt(LaunchedAtT&& value) {
123 SetLaunchedAt(std::forward<LaunchedAtT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Vector<VolumeMount>& GetVolumeMounts() const { return m_volumeMounts; }
133 inline bool VolumeMountsHasBeenSet() const { return m_volumeMountsHasBeenSet; }
134 template <typename VolumeMountsT = Aws::Vector<VolumeMount>>
135 void SetVolumeMounts(VolumeMountsT&& value) {
136 m_volumeMountsHasBeenSet = true;
137 m_volumeMounts = std::forward<VolumeMountsT>(value);
138 }
139 template <typename VolumeMountsT = Aws::Vector<VolumeMount>>
140 ContainerDetails& WithVolumeMounts(VolumeMountsT&& value) {
141 SetVolumeMounts(std::forward<VolumeMountsT>(value));
142 return *this;
143 }
144 template <typename VolumeMountsT = VolumeMount>
145 ContainerDetails& AddVolumeMounts(VolumeMountsT&& value) {
146 m_volumeMountsHasBeenSet = true;
147 m_volumeMounts.emplace_back(std::forward<VolumeMountsT>(value));
148 return *this;
149 }
151
153
157 inline bool GetPrivileged() const { return m_privileged; }
158 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
159 inline void SetPrivileged(bool value) {
160 m_privilegedHasBeenSet = true;
161 m_privileged = value;
162 }
163 inline ContainerDetails& WithPrivileged(bool value) {
164 SetPrivileged(value);
165 return *this;
166 }
168 private:
169 Aws::String m_containerRuntime;
170
171 Aws::String m_name;
172
173 Aws::String m_imageId;
174
175 Aws::String m_imageName;
176
177 Aws::String m_launchedAt;
178
179 Aws::Vector<VolumeMount> m_volumeMounts;
180
181 bool m_privileged{false};
182 bool m_containerRuntimeHasBeenSet = false;
183 bool m_nameHasBeenSet = false;
184 bool m_imageIdHasBeenSet = false;
185 bool m_imageNameHasBeenSet = false;
186 bool m_launchedAtHasBeenSet = false;
187 bool m_volumeMountsHasBeenSet = false;
188 bool m_privilegedHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace SecurityHub
193} // namespace Aws
const Aws::String & GetLaunchedAt() const
AWS_SECURITYHUB_API ContainerDetails()=default
void SetContainerRuntime(ContainerRuntimeT &&value)
ContainerDetails & WithName(NameT &&value)
ContainerDetails & WithImageId(ImageIdT &&value)
ContainerDetails & WithImageName(ImageNameT &&value)
AWS_SECURITYHUB_API ContainerDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< VolumeMount > & GetVolumeMounts() const
const Aws::String & GetContainerRuntime() const
ContainerDetails & WithLaunchedAt(LaunchedAtT &&value)
const Aws::String & GetImageName() const
ContainerDetails & WithPrivileged(bool value)
ContainerDetails & AddVolumeMounts(VolumeMountsT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerDetails & WithVolumeMounts(VolumeMountsT &&value)
void SetVolumeMounts(VolumeMountsT &&value)
AWS_SECURITYHUB_API ContainerDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerDetails & WithContainerRuntime(ContainerRuntimeT &&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