AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline AwsEcsContainerDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline AwsEcsContainerDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline AwsEcsContainerDetails& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::String& GetImage() const{ return m_image; }
62 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
63 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
64 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
65 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
66 inline AwsEcsContainerDetails& WithImage(const Aws::String& value) { SetImage(value); return *this;}
67 inline AwsEcsContainerDetails& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
68 inline AwsEcsContainerDetails& WithImage(const char* value) { SetImage(value); return *this;}
70
72
75 inline const Aws::Vector<AwsMountPoint>& GetMountPoints() const{ return m_mountPoints; }
76 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
77 inline void SetMountPoints(const Aws::Vector<AwsMountPoint>& value) { m_mountPointsHasBeenSet = true; m_mountPoints = value; }
78 inline void SetMountPoints(Aws::Vector<AwsMountPoint>&& value) { m_mountPointsHasBeenSet = true; m_mountPoints = std::move(value); }
80 inline AwsEcsContainerDetails& WithMountPoints(Aws::Vector<AwsMountPoint>&& value) { SetMountPoints(std::move(value)); return *this;}
81 inline AwsEcsContainerDetails& AddMountPoints(const AwsMountPoint& value) { m_mountPointsHasBeenSet = true; m_mountPoints.push_back(value); return *this; }
82 inline AwsEcsContainerDetails& AddMountPoints(AwsMountPoint&& value) { m_mountPointsHasBeenSet = true; m_mountPoints.push_back(std::move(value)); return *this; }
84
86
90 inline bool GetPrivileged() const{ return m_privileged; }
91 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
92 inline void SetPrivileged(bool value) { m_privilegedHasBeenSet = true; m_privileged = value; }
93 inline AwsEcsContainerDetails& WithPrivileged(bool value) { SetPrivileged(value); return *this;}
95 private:
96
97 Aws::String m_name;
98 bool m_nameHasBeenSet = false;
99
100 Aws::String m_image;
101 bool m_imageHasBeenSet = false;
102
103 Aws::Vector<AwsMountPoint> m_mountPoints;
104 bool m_mountPointsHasBeenSet = false;
105
106 bool m_privileged;
107 bool m_privilegedHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace SecurityHub
112} // namespace Aws
AwsEcsContainerDetails & WithMountPoints(const Aws::Vector< AwsMountPoint > &value)
const Aws::Vector< AwsMountPoint > & GetMountPoints() const
AwsEcsContainerDetails & WithName(const Aws::String &value)
AwsEcsContainerDetails & WithName(Aws::String &&value)
AwsEcsContainerDetails & WithImage(const char *value)
AWS_SECURITYHUB_API AwsEcsContainerDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMountPoints(Aws::Vector< AwsMountPoint > &&value)
AwsEcsContainerDetails & AddMountPoints(AwsMountPoint &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEcsContainerDetails & WithImage(const Aws::String &value)
AwsEcsContainerDetails & AddMountPoints(const AwsMountPoint &value)
AwsEcsContainerDetails & WithName(const char *value)
AWS_SECURITYHUB_API AwsEcsContainerDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEcsContainerDetails & WithImage(Aws::String &&value)
void SetMountPoints(const Aws::Vector< AwsMountPoint > &value)
AwsEcsContainerDetails & WithMountPoints(Aws::Vector< AwsMountPoint > &&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