AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ContainerRuntimeT = Aws::String>
51 void SetContainerRuntime(ContainerRuntimeT&& value) { m_containerRuntimeHasBeenSet = true; m_containerRuntime = std::forward<ContainerRuntimeT>(value); }
52 template<typename ContainerRuntimeT = Aws::String>
53 Container& WithContainerRuntime(ContainerRuntimeT&& value) { SetContainerRuntime(std::forward<ContainerRuntimeT>(value)); return *this;}
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
64 template<typename IdT = Aws::String>
65 Container& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 Container& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
84 inline const Aws::String& GetImage() const { return m_image; }
85 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
86 template<typename ImageT = Aws::String>
87 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
88 template<typename ImageT = Aws::String>
89 Container& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
91
93
99 inline const Aws::String& GetImagePrefix() const { return m_imagePrefix; }
100 inline bool ImagePrefixHasBeenSet() const { return m_imagePrefixHasBeenSet; }
101 template<typename ImagePrefixT = Aws::String>
102 void SetImagePrefix(ImagePrefixT&& value) { m_imagePrefixHasBeenSet = true; m_imagePrefix = std::forward<ImagePrefixT>(value); }
103 template<typename ImagePrefixT = Aws::String>
104 Container& WithImagePrefix(ImagePrefixT&& value) { SetImagePrefix(std::forward<ImagePrefixT>(value)); return *this;}
106
108
111 inline const Aws::Vector<VolumeMount>& GetVolumeMounts() const { return m_volumeMounts; }
112 inline bool VolumeMountsHasBeenSet() const { return m_volumeMountsHasBeenSet; }
113 template<typename VolumeMountsT = Aws::Vector<VolumeMount>>
114 void SetVolumeMounts(VolumeMountsT&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts = std::forward<VolumeMountsT>(value); }
115 template<typename VolumeMountsT = Aws::Vector<VolumeMount>>
116 Container& WithVolumeMounts(VolumeMountsT&& value) { SetVolumeMounts(std::forward<VolumeMountsT>(value)); return *this;}
117 template<typename VolumeMountsT = VolumeMount>
118 Container& AddVolumeMounts(VolumeMountsT&& value) { m_volumeMountsHasBeenSet = true; m_volumeMounts.emplace_back(std::forward<VolumeMountsT>(value)); return *this; }
120
122
125 inline const SecurityContext& GetSecurityContext() const { return m_securityContext; }
126 inline bool SecurityContextHasBeenSet() const { return m_securityContextHasBeenSet; }
127 template<typename SecurityContextT = SecurityContext>
128 void SetSecurityContext(SecurityContextT&& value) { m_securityContextHasBeenSet = true; m_securityContext = std::forward<SecurityContextT>(value); }
129 template<typename SecurityContextT = SecurityContext>
130 Container& WithSecurityContext(SecurityContextT&& value) { SetSecurityContext(std::forward<SecurityContextT>(value)); return *this;}
132 private:
133
134 Aws::String m_containerRuntime;
135 bool m_containerRuntimeHasBeenSet = false;
136
137 Aws::String m_id;
138 bool m_idHasBeenSet = false;
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Aws::String m_image;
144 bool m_imageHasBeenSet = false;
145
146 Aws::String m_imagePrefix;
147 bool m_imagePrefixHasBeenSet = false;
148
149 Aws::Vector<VolumeMount> m_volumeMounts;
150 bool m_volumeMountsHasBeenSet = false;
151
152 SecurityContext m_securityContext;
153 bool m_securityContextHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace GuardDuty
158} // namespace Aws
Container & WithImage(ImageT &&value)
Definition Container.h:89
void SetContainerRuntime(ContainerRuntimeT &&value)
Definition Container.h:51
void SetName(NameT &&value)
Definition Container.h:75
AWS_GUARDDUTY_API Container()=default
const Aws::String & GetName() const
Definition Container.h:72
void SetSecurityContext(SecurityContextT &&value)
Definition Container.h:128
const Aws::String & GetImage() const
Definition Container.h:84
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Container & WithId(IdT &&value)
Definition Container.h:65
Container & AddVolumeMounts(VolumeMountsT &&value)
Definition Container.h:118
const Aws::String & GetId() const
Definition Container.h:60
Container & WithSecurityContext(SecurityContextT &&value)
Definition Container.h:130
AWS_GUARDDUTY_API Container & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContainerRuntime() const
Definition Container.h:48
Container & WithVolumeMounts(VolumeMountsT &&value)
Definition Container.h:116
Container & WithName(NameT &&value)
Definition Container.h:77
void SetImage(ImageT &&value)
Definition Container.h:87
void SetImagePrefix(ImagePrefixT &&value)
Definition Container.h:102
Container & WithContainerRuntime(ContainerRuntimeT &&value)
Definition Container.h:53
const SecurityContext & GetSecurityContext() const
Definition Container.h:125
Container & WithImagePrefix(ImagePrefixT &&value)
Definition Container.h:104
bool ContainerRuntimeHasBeenSet() const
Definition Container.h:49
const Aws::String & GetImagePrefix() const
Definition Container.h:99
AWS_GUARDDUTY_API Container(Aws::Utils::Json::JsonView jsonValue)
void SetVolumeMounts(VolumeMountsT &&value)
Definition Container.h:114
const Aws::Vector< VolumeMount > & GetVolumeMounts() const
Definition Container.h:111
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue