AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEcsContainerDetails.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/AwsMountPoint.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
35 {
36 public:
37 AWS_SECURITYHUB_API AwsEcsContainerDetails() = default;
38 AWS_SECURITYHUB_API AwsEcsContainerDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 AwsEcsContainerDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
63 template<typename ImageT = Aws::String>
64 AwsEcsContainerDetails& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
66
68
71 inline const Aws::Vector<AwsMountPoint>& GetMountPoints() const { return m_mountPoints; }
72 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
73 template<typename MountPointsT = Aws::Vector<AwsMountPoint>>
74 void SetMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet = true; m_mountPoints = std::forward<MountPointsT>(value); }
75 template<typename MountPointsT = Aws::Vector<AwsMountPoint>>
76 AwsEcsContainerDetails& WithMountPoints(MountPointsT&& value) { SetMountPoints(std::forward<MountPointsT>(value)); return *this;}
77 template<typename MountPointsT = AwsMountPoint>
78 AwsEcsContainerDetails& AddMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet = true; m_mountPoints.emplace_back(std::forward<MountPointsT>(value)); return *this; }
80
82
86 inline bool GetPrivileged() const { return m_privileged; }
87 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
88 inline void SetPrivileged(bool value) { m_privilegedHasBeenSet = true; m_privileged = value; }
89 inline AwsEcsContainerDetails& WithPrivileged(bool value) { SetPrivileged(value); return *this;}
91 private:
92
93 Aws::String m_name;
94 bool m_nameHasBeenSet = false;
95
96 Aws::String m_image;
97 bool m_imageHasBeenSet = false;
98
99 Aws::Vector<AwsMountPoint> m_mountPoints;
100 bool m_mountPointsHasBeenSet = false;
101
102 bool m_privileged{false};
103 bool m_privilegedHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace SecurityHub
108} // 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