AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Container.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/model/SecurityContext.h>
11#include <aws/guardduty/model/VolumeMount.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GuardDuty
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_GUARDDUTY_API Container();
38 AWS_GUARDDUTY_API Container(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Container& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetContainerRuntime() const{ return m_containerRuntime; }
49 inline bool ContainerRuntimeHasBeenSet() const { return m_containerRuntimeHasBeenSet; }
50 inline void SetContainerRuntime(const Aws::String& value) { m_containerRuntimeHasBeenSet = true; m_containerRuntime = value; }
51 inline void SetContainerRuntime(Aws::String&& value) { m_containerRuntimeHasBeenSet = true; m_containerRuntime = std::move(value); }
52 inline void SetContainerRuntime(const char* value) { m_containerRuntimeHasBeenSet = true; m_containerRuntime.assign(value); }
53 inline Container& WithContainerRuntime(const Aws::String& value) { SetContainerRuntime(value); return *this;}
54 inline Container& WithContainerRuntime(Aws::String&& value) { SetContainerRuntime(std::move(value)); return *this;}
55 inline Container& WithContainerRuntime(const char* value) { SetContainerRuntime(value); return *this;}
57
59
62 inline const Aws::String& GetId() const{ return m_id; }
63 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
65 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
66 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 inline Container& WithId(const Aws::String& value) { SetId(value); return *this;}
68 inline Container& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
69 inline Container& WithId(const char* value) { SetId(value); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline Container& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline Container& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline Container& WithName(const char* value) { SetName(value); return *this;}
85
87
90 inline const Aws::String& GetImage() const{ return m_image; }
91 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
92 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
93 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
94 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
95 inline Container& WithImage(const Aws::String& value) { SetImage(value); return *this;}
96 inline Container& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
97 inline Container& WithImage(const char* value) { SetImage(value); return *this;}
99
101
107 inline const Aws::String& GetImagePrefix() const{ return m_imagePrefix; }
108 inline bool ImagePrefixHasBeenSet() const { return m_imagePrefixHasBeenSet; }
109 inline void SetImagePrefix(const Aws::String& value) { m_imagePrefixHasBeenSet = true; m_imagePrefix = value; }
110 inline void SetImagePrefix(Aws::String&& value) { m_imagePrefixHasBeenSet = true; m_imagePrefix = std::move(value); }
111 inline void SetImagePrefix(const char* value) { m_imagePrefixHasBeenSet = true; m_imagePrefix.assign(value); }
112 inline Container& WithImagePrefix(const Aws::String& value) { SetImagePrefix(value); return *this;}
113 inline Container& WithImagePrefix(Aws::String&& value) { SetImagePrefix(std::move(value)); return *this;}
114 inline Container& WithImagePrefix(const char* value) { SetImagePrefix(value); return *this;}
116
118
121 inline const Aws::Vector<VolumeMount>& GetVolumeMounts() const{ return m_volumeMounts; }
122 inline bool VolumeMountsHasBeenSet() const { return m_volumeMountsHasBeenSet; }
123 inline void SetVolumeMounts(const Aws::Vector<VolumeMount>& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts = value; }
124 inline void SetVolumeMounts(Aws::Vector<VolumeMount>&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts = std::move(value); }
125 inline Container& WithVolumeMounts(const Aws::Vector<VolumeMount>& value) { SetVolumeMounts(value); return *this;}
126 inline Container& WithVolumeMounts(Aws::Vector<VolumeMount>&& value) { SetVolumeMounts(std::move(value)); return *this;}
127 inline Container& AddVolumeMounts(const VolumeMount& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts.push_back(value); return *this; }
128 inline Container& AddVolumeMounts(VolumeMount&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts.push_back(std::move(value)); return *this; }
130
132
135 inline const SecurityContext& GetSecurityContext() const{ return m_securityContext; }
136 inline bool SecurityContextHasBeenSet() const { return m_securityContextHasBeenSet; }
137 inline void SetSecurityContext(const SecurityContext& value) { m_securityContextHasBeenSet = true; m_securityContext = value; }
138 inline void SetSecurityContext(SecurityContext&& value) { m_securityContextHasBeenSet = true; m_securityContext = std::move(value); }
139 inline Container& WithSecurityContext(const SecurityContext& value) { SetSecurityContext(value); return *this;}
140 inline Container& WithSecurityContext(SecurityContext&& value) { SetSecurityContext(std::move(value)); return *this;}
142 private:
143
144 Aws::String m_containerRuntime;
145 bool m_containerRuntimeHasBeenSet = false;
146
147 Aws::String m_id;
148 bool m_idHasBeenSet = false;
149
150 Aws::String m_name;
151 bool m_nameHasBeenSet = false;
152
153 Aws::String m_image;
154 bool m_imageHasBeenSet = false;
155
156 Aws::String m_imagePrefix;
157 bool m_imagePrefixHasBeenSet = false;
158
159 Aws::Vector<VolumeMount> m_volumeMounts;
160 bool m_volumeMountsHasBeenSet = false;
161
162 SecurityContext m_securityContext;
163 bool m_securityContextHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace GuardDuty
168} // namespace Aws
void SetId(const char *value)
Definition Container.h:66
void SetVolumeMounts(const Aws::Vector< VolumeMount > &value)
Definition Container.h:123
Container & AddVolumeMounts(const VolumeMount &value)
Definition Container.h:127
void SetId(const Aws::String &value)
Definition Container.h:64
Container & WithContainerRuntime(const char *value)
Definition Container.h:55
void SetId(Aws::String &&value)
Definition Container.h:65
void SetContainerRuntime(const char *value)
Definition Container.h:52
void SetName(const Aws::String &value)
Definition Container.h:78
void SetImagePrefix(Aws::String &&value)
Definition Container.h:110
void SetImagePrefix(const char *value)
Definition Container.h:111
Container & WithId(const Aws::String &value)
Definition Container.h:67
const Aws::String & GetName() const
Definition Container.h:76
void SetSecurityContext(const SecurityContext &value)
Definition Container.h:137
Container & WithName(const char *value)
Definition Container.h:83
Container & WithContainerRuntime(Aws::String &&value)
Definition Container.h:54
Container & AddVolumeMounts(VolumeMount &&value)
Definition Container.h:128
const Aws::String & GetImage() const
Definition Container.h:90
Container & WithImagePrefix(Aws::String &&value)
Definition Container.h:113
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetImage(const Aws::String &value)
Definition Container.h:92
void SetSecurityContext(SecurityContext &&value)
Definition Container.h:138
void SetImage(const char *value)
Definition Container.h:94
const Aws::String & GetId() const
Definition Container.h:62
void SetContainerRuntime(Aws::String &&value)
Definition Container.h:51
void SetImage(Aws::String &&value)
Definition Container.h:93
void SetImagePrefix(const Aws::String &value)
Definition Container.h:109
AWS_GUARDDUTY_API Container & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContainerRuntime(const Aws::String &value)
Definition Container.h:50
const Aws::String & GetContainerRuntime() const
Definition Container.h:48
Container & WithId(Aws::String &&value)
Definition Container.h:68
Container & WithImagePrefix(const Aws::String &value)
Definition Container.h:112
Container & WithName(Aws::String &&value)
Definition Container.h:82
void SetVolumeMounts(Aws::Vector< VolumeMount > &&value)
Definition Container.h:124
Container & WithContainerRuntime(const Aws::String &value)
Definition Container.h:53
Container & WithImage(const char *value)
Definition Container.h:97
Container & WithImage(const Aws::String &value)
Definition Container.h:95
void SetName(const char *value)
Definition Container.h:80
Container & WithVolumeMounts(Aws::Vector< VolumeMount > &&value)
Definition Container.h:126
Container & WithSecurityContext(const SecurityContext &value)
Definition Container.h:139
const SecurityContext & GetSecurityContext() const
Definition Container.h:135
Container & WithImagePrefix(const char *value)
Definition Container.h:114
void SetName(Aws::String &&value)
Definition Container.h:79
Container & WithVolumeMounts(const Aws::Vector< VolumeMount > &value)
Definition Container.h:125
bool ContainerRuntimeHasBeenSet() const
Definition Container.h:49
const Aws::String & GetImagePrefix() const
Definition Container.h:107
AWS_GUARDDUTY_API Container()
Container & WithName(const Aws::String &value)
Definition Container.h:81
Container & WithSecurityContext(SecurityContext &&value)
Definition Container.h:140
Container & WithId(const char *value)
Definition Container.h:69
Container & WithImage(Aws::String &&value)
Definition Container.h:96
AWS_GUARDDUTY_API Container(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< VolumeMount > & GetVolumeMounts() const
Definition Container.h:121
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue