AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/VolumeMount.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SECURITYHUB_API ContainerDetails();
37 AWS_SECURITYHUB_API ContainerDetails(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API ContainerDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetContainerRuntime() const{ return m_containerRuntime; }
47 inline bool ContainerRuntimeHasBeenSet() const { return m_containerRuntimeHasBeenSet; }
48 inline void SetContainerRuntime(const Aws::String& value) { m_containerRuntimeHasBeenSet = true; m_containerRuntime = value; }
49 inline void SetContainerRuntime(Aws::String&& value) { m_containerRuntimeHasBeenSet = true; m_containerRuntime = std::move(value); }
50 inline void SetContainerRuntime(const char* value) { m_containerRuntimeHasBeenSet = true; m_containerRuntime.assign(value); }
51 inline ContainerDetails& WithContainerRuntime(const Aws::String& value) { SetContainerRuntime(value); return *this;}
52 inline ContainerDetails& WithContainerRuntime(Aws::String&& value) { SetContainerRuntime(std::move(value)); return *this;}
53 inline ContainerDetails& WithContainerRuntime(const char* value) { SetContainerRuntime(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline ContainerDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline ContainerDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline ContainerDetails& WithName(const char* value) { SetName(value); return *this;}
69
71
74 inline const Aws::String& GetImageId() const{ return m_imageId; }
75 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
76 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
77 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
78 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
79 inline ContainerDetails& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
80 inline ContainerDetails& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
81 inline ContainerDetails& WithImageId(const char* value) { SetImageId(value); return *this;}
83
85
88 inline const Aws::String& GetImageName() const{ return m_imageName; }
89 inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
90 inline void SetImageName(const Aws::String& value) { m_imageNameHasBeenSet = true; m_imageName = value; }
91 inline void SetImageName(Aws::String&& value) { m_imageNameHasBeenSet = true; m_imageName = std::move(value); }
92 inline void SetImageName(const char* value) { m_imageNameHasBeenSet = true; m_imageName.assign(value); }
93 inline ContainerDetails& WithImageName(const Aws::String& value) { SetImageName(value); return *this;}
94 inline ContainerDetails& WithImageName(Aws::String&& value) { SetImageName(std::move(value)); return *this;}
95 inline ContainerDetails& WithImageName(const char* value) { SetImageName(value); return *this;}
97
99
116 inline const Aws::String& GetLaunchedAt() const{ return m_launchedAt; }
117 inline bool LaunchedAtHasBeenSet() const { return m_launchedAtHasBeenSet; }
118 inline void SetLaunchedAt(const Aws::String& value) { m_launchedAtHasBeenSet = true; m_launchedAt = value; }
119 inline void SetLaunchedAt(Aws::String&& value) { m_launchedAtHasBeenSet = true; m_launchedAt = std::move(value); }
120 inline void SetLaunchedAt(const char* value) { m_launchedAtHasBeenSet = true; m_launchedAt.assign(value); }
121 inline ContainerDetails& WithLaunchedAt(const Aws::String& value) { SetLaunchedAt(value); return *this;}
122 inline ContainerDetails& WithLaunchedAt(Aws::String&& value) { SetLaunchedAt(std::move(value)); return *this;}
123 inline ContainerDetails& WithLaunchedAt(const char* value) { SetLaunchedAt(value); return *this;}
125
127
130 inline const Aws::Vector<VolumeMount>& GetVolumeMounts() const{ return m_volumeMounts; }
131 inline bool VolumeMountsHasBeenSet() const { return m_volumeMountsHasBeenSet; }
132 inline void SetVolumeMounts(const Aws::Vector<VolumeMount>& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts = value; }
133 inline void SetVolumeMounts(Aws::Vector<VolumeMount>&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts = std::move(value); }
134 inline ContainerDetails& WithVolumeMounts(const Aws::Vector<VolumeMount>& value) { SetVolumeMounts(value); return *this;}
135 inline ContainerDetails& WithVolumeMounts(Aws::Vector<VolumeMount>&& value) { SetVolumeMounts(std::move(value)); return *this;}
136 inline ContainerDetails& AddVolumeMounts(const VolumeMount& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts.push_back(value); return *this; }
137 inline ContainerDetails& AddVolumeMounts(VolumeMount&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts.push_back(std::move(value)); return *this; }
139
141
145 inline bool GetPrivileged() const{ return m_privileged; }
146 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
147 inline void SetPrivileged(bool value) { m_privilegedHasBeenSet = true; m_privileged = value; }
148 inline ContainerDetails& WithPrivileged(bool value) { SetPrivileged(value); return *this;}
150 private:
151
152 Aws::String m_containerRuntime;
153 bool m_containerRuntimeHasBeenSet = false;
154
155 Aws::String m_name;
156 bool m_nameHasBeenSet = false;
157
158 Aws::String m_imageId;
159 bool m_imageIdHasBeenSet = false;
160
161 Aws::String m_imageName;
162 bool m_imageNameHasBeenSet = false;
163
164 Aws::String m_launchedAt;
165 bool m_launchedAtHasBeenSet = false;
166
167 Aws::Vector<VolumeMount> m_volumeMounts;
168 bool m_volumeMountsHasBeenSet = false;
169
170 bool m_privileged;
171 bool m_privilegedHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace SecurityHub
176} // namespace Aws
const Aws::String & GetLaunchedAt() const
ContainerDetails & WithVolumeMounts(const Aws::Vector< VolumeMount > &value)
ContainerDetails & WithLaunchedAt(const Aws::String &value)
void SetContainerRuntime(Aws::String &&value)
ContainerDetails & WithLaunchedAt(Aws::String &&value)
ContainerDetails & WithContainerRuntime(const Aws::String &value)
AWS_SECURITYHUB_API ContainerDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< VolumeMount > & GetVolumeMounts() const
ContainerDetails & WithName(const char *value)
ContainerDetails & WithLaunchedAt(const char *value)
void SetVolumeMounts(Aws::Vector< VolumeMount > &&value)
ContainerDetails & WithImageId(const char *value)
ContainerDetails & AddVolumeMounts(const VolumeMount &value)
ContainerDetails & WithName(Aws::String &&value)
const Aws::String & GetContainerRuntime() const
ContainerDetails & WithImageName(const char *value)
void SetImageName(const Aws::String &value)
void SetVolumeMounts(const Aws::Vector< VolumeMount > &value)
const Aws::String & GetImageName() const
ContainerDetails & WithImageName(Aws::String &&value)
void SetLaunchedAt(const Aws::String &value)
ContainerDetails & WithContainerRuntime(const char *value)
ContainerDetails & WithPrivileged(bool value)
void SetContainerRuntime(const Aws::String &value)
ContainerDetails & WithImageId(Aws::String &&value)
ContainerDetails & WithImageName(const Aws::String &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerDetails & WithContainerRuntime(Aws::String &&value)
void SetName(const Aws::String &value)
void SetImageId(const Aws::String &value)
ContainerDetails & WithImageId(const Aws::String &value)
AWS_SECURITYHUB_API ContainerDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerDetails & WithVolumeMounts(Aws::Vector< VolumeMount > &&value)
ContainerDetails & WithName(const Aws::String &value)
ContainerDetails & AddVolumeMounts(VolumeMount &&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