AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AmiDistributionConfiguration.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/imagebuilder/model/LaunchPermissionConfiguration.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 imagebuilder
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IMAGEBUILDER_API AmiDistributionConfiguration();
41 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline AmiDistributionConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline AmiDistributionConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline AmiDistributionConfiguration& WithName(const char* value) { SetName(value); return *this;}
57
59
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline AmiDistributionConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline AmiDistributionConfiguration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline AmiDistributionConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
77 inline const Aws::Vector<Aws::String>& GetTargetAccountIds() const{ return m_targetAccountIds; }
78 inline bool TargetAccountIdsHasBeenSet() const { return m_targetAccountIdsHasBeenSet; }
79 inline void SetTargetAccountIds(const Aws::Vector<Aws::String>& value) { m_targetAccountIdsHasBeenSet = true; m_targetAccountIds = value; }
80 inline void SetTargetAccountIds(Aws::Vector<Aws::String>&& value) { m_targetAccountIdsHasBeenSet = true; m_targetAccountIds = std::move(value); }
83 inline AmiDistributionConfiguration& AddTargetAccountIds(const Aws::String& value) { m_targetAccountIdsHasBeenSet = true; m_targetAccountIds.push_back(value); return *this; }
84 inline AmiDistributionConfiguration& AddTargetAccountIds(Aws::String&& value) { m_targetAccountIdsHasBeenSet = true; m_targetAccountIds.push_back(std::move(value)); return *this; }
85 inline AmiDistributionConfiguration& AddTargetAccountIds(const char* value) { m_targetAccountIdsHasBeenSet = true; m_targetAccountIds.push_back(value); return *this; }
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetAmiTags() const{ return m_amiTags; }
93 inline bool AmiTagsHasBeenSet() const { return m_amiTagsHasBeenSet; }
94 inline void SetAmiTags(const Aws::Map<Aws::String, Aws::String>& value) { m_amiTagsHasBeenSet = true; m_amiTags = value; }
95 inline void SetAmiTags(Aws::Map<Aws::String, Aws::String>&& value) { m_amiTagsHasBeenSet = true; m_amiTags = std::move(value); }
98 inline AmiDistributionConfiguration& AddAmiTags(const Aws::String& key, const Aws::String& value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(key, value); return *this; }
99 inline AmiDistributionConfiguration& AddAmiTags(Aws::String&& key, const Aws::String& value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(std::move(key), value); return *this; }
100 inline AmiDistributionConfiguration& AddAmiTags(const Aws::String& key, Aws::String&& value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(key, std::move(value)); return *this; }
101 inline AmiDistributionConfiguration& AddAmiTags(Aws::String&& key, Aws::String&& value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(std::move(key), std::move(value)); return *this; }
102 inline AmiDistributionConfiguration& AddAmiTags(const char* key, Aws::String&& value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(key, std::move(value)); return *this; }
103 inline AmiDistributionConfiguration& AddAmiTags(Aws::String&& key, const char* value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(std::move(key), value); return *this; }
104 inline AmiDistributionConfiguration& AddAmiTags(const char* key, const char* value) { m_amiTagsHasBeenSet = true; m_amiTags.emplace(key, value); return *this; }
106
108
111 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
112 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
113 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
114 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
115 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
116 inline AmiDistributionConfiguration& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
117 inline AmiDistributionConfiguration& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
118 inline AmiDistributionConfiguration& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
120
122
126 inline const LaunchPermissionConfiguration& GetLaunchPermission() const{ return m_launchPermission; }
127 inline bool LaunchPermissionHasBeenSet() const { return m_launchPermissionHasBeenSet; }
128 inline void SetLaunchPermission(const LaunchPermissionConfiguration& value) { m_launchPermissionHasBeenSet = true; m_launchPermission = value; }
129 inline void SetLaunchPermission(LaunchPermissionConfiguration&& value) { m_launchPermissionHasBeenSet = true; m_launchPermission = std::move(value); }
133 private:
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 Aws::String m_description;
139 bool m_descriptionHasBeenSet = false;
140
141 Aws::Vector<Aws::String> m_targetAccountIds;
142 bool m_targetAccountIdsHasBeenSet = false;
143
145 bool m_amiTagsHasBeenSet = false;
146
147 Aws::String m_kmsKeyId;
148 bool m_kmsKeyIdHasBeenSet = false;
149
150 LaunchPermissionConfiguration m_launchPermission;
151 bool m_launchPermissionHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace imagebuilder
156} // namespace Aws
AmiDistributionConfiguration & AddAmiTags(const Aws::String &key, Aws::String &&value)
AmiDistributionConfiguration & WithDescription(const char *value)
const Aws::Vector< Aws::String > & GetTargetAccountIds() const
AWS_IMAGEBUILDER_API AmiDistributionConfiguration(Aws::Utils::Json::JsonView jsonValue)
AmiDistributionConfiguration & AddAmiTags(const char *key, const char *value)
AmiDistributionConfiguration & WithDescription(Aws::String &&value)
void SetAmiTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetAmiTags() const
AmiDistributionConfiguration & WithTargetAccountIds(Aws::Vector< Aws::String > &&value)
AmiDistributionConfiguration & AddAmiTags(Aws::String &&key, Aws::String &&value)
AmiDistributionConfiguration & WithKmsKeyId(const Aws::String &value)
AmiDistributionConfiguration & WithName(const char *value)
AmiDistributionConfiguration & AddTargetAccountIds(const Aws::String &value)
const LaunchPermissionConfiguration & GetLaunchPermission() const
AmiDistributionConfiguration & WithLaunchPermission(const LaunchPermissionConfiguration &value)
AmiDistributionConfiguration & WithAmiTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_IMAGEBUILDER_API AmiDistributionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AmiDistributionConfiguration & WithLaunchPermission(LaunchPermissionConfiguration &&value)
AmiDistributionConfiguration & WithAmiTags(Aws::Map< Aws::String, Aws::String > &&value)
AmiDistributionConfiguration & AddAmiTags(Aws::String &&key, const Aws::String &value)
AmiDistributionConfiguration & WithKmsKeyId(const char *value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAmiTags(Aws::Map< Aws::String, Aws::String > &&value)
AmiDistributionConfiguration & WithKmsKeyId(Aws::String &&value)
AmiDistributionConfiguration & AddAmiTags(const char *key, Aws::String &&value)
AmiDistributionConfiguration & WithTargetAccountIds(const Aws::Vector< Aws::String > &value)
AmiDistributionConfiguration & AddTargetAccountIds(Aws::String &&value)
AmiDistributionConfiguration & AddAmiTags(Aws::String &&key, const char *value)
AmiDistributionConfiguration & WithDescription(const Aws::String &value)
AmiDistributionConfiguration & WithName(const Aws::String &value)
AmiDistributionConfiguration & AddTargetAccountIds(const char *value)
AmiDistributionConfiguration & WithName(Aws::String &&value)
AmiDistributionConfiguration & AddAmiTags(const Aws::String &key, const Aws::String &value)
void SetLaunchPermission(const LaunchPermissionConfiguration &value)
void SetLaunchPermission(LaunchPermissionConfiguration &&value)
void SetTargetAccountIds(const Aws::Vector< Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue