AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsEcsContainerDetails.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/AwsMountPoint.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
31 public:
32 AWS_SECURITYHUB_API AwsEcsContainerDetails() = default;
33 AWS_SECURITYHUB_API AwsEcsContainerDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetImage() const { return m_image; }
60 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
61 template <typename ImageT = Aws::String>
62 void SetImage(ImageT&& value) {
63 m_imageHasBeenSet = true;
64 m_image = std::forward<ImageT>(value);
65 }
66 template <typename ImageT = Aws::String>
68 SetImage(std::forward<ImageT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<AwsMountPoint>& GetMountPoints() const { return m_mountPoints; }
78 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
79 template <typename MountPointsT = Aws::Vector<AwsMountPoint>>
80 void SetMountPoints(MountPointsT&& value) {
81 m_mountPointsHasBeenSet = true;
82 m_mountPoints = std::forward<MountPointsT>(value);
83 }
84 template <typename MountPointsT = Aws::Vector<AwsMountPoint>>
85 AwsEcsContainerDetails& WithMountPoints(MountPointsT&& value) {
86 SetMountPoints(std::forward<MountPointsT>(value));
87 return *this;
88 }
89 template <typename MountPointsT = AwsMountPoint>
90 AwsEcsContainerDetails& AddMountPoints(MountPointsT&& value) {
91 m_mountPointsHasBeenSet = true;
92 m_mountPoints.emplace_back(std::forward<MountPointsT>(value));
93 return *this;
94 }
96
98
102 inline bool GetPrivileged() const { return m_privileged; }
103 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
104 inline void SetPrivileged(bool value) {
105 m_privilegedHasBeenSet = true;
106 m_privileged = value;
107 }
109 SetPrivileged(value);
110 return *this;
111 }
113 private:
114 Aws::String m_name;
115
116 Aws::String m_image;
117
118 Aws::Vector<AwsMountPoint> m_mountPoints;
119
120 bool m_privileged{false};
121 bool m_nameHasBeenSet = false;
122 bool m_imageHasBeenSet = false;
123 bool m_mountPointsHasBeenSet = false;
124 bool m_privilegedHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace SecurityHub
129} // namespace Aws
const Aws::Vector< AwsMountPoint > & GetMountPoints() const
AwsEcsContainerDetails & WithImage(ImageT &&value)
AWS_SECURITYHUB_API AwsEcsContainerDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEcsContainerDetails & AddMountPoints(MountPointsT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsEcsContainerDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEcsContainerDetails & WithName(NameT &&value)
AWS_SECURITYHUB_API AwsEcsContainerDetails()=default
AwsEcsContainerDetails & WithMountPoints(MountPointsT &&value)
AwsEcsContainerDetails & WithPrivileged(bool 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