AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Distribution.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/AmiDistributionConfiguration.h>
10#include <aws/imagebuilder/model/ContainerDistributionConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/imagebuilder/model/S3ExportConfiguration.h>
13#include <aws/imagebuilder/model/LaunchTemplateConfiguration.h>
14#include <aws/imagebuilder/model/FastLaunchConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace imagebuilder
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_IMAGEBUILDER_API Distribution();
41 AWS_IMAGEBUILDER_API Distribution(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IMAGEBUILDER_API Distribution& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetRegion() const{ return m_region; }
51 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
52 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
53 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
54 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
55 inline Distribution& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
56 inline Distribution& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
57 inline Distribution& WithRegion(const char* value) { SetRegion(value); return *this;}
59
61
64 inline const AmiDistributionConfiguration& GetAmiDistributionConfiguration() const{ return m_amiDistributionConfiguration; }
65 inline bool AmiDistributionConfigurationHasBeenSet() const { return m_amiDistributionConfigurationHasBeenSet; }
66 inline void SetAmiDistributionConfiguration(const AmiDistributionConfiguration& value) { m_amiDistributionConfigurationHasBeenSet = true; m_amiDistributionConfiguration = value; }
67 inline void SetAmiDistributionConfiguration(AmiDistributionConfiguration&& value) { m_amiDistributionConfigurationHasBeenSet = true; m_amiDistributionConfiguration = std::move(value); }
71
73
77 inline const ContainerDistributionConfiguration& GetContainerDistributionConfiguration() const{ return m_containerDistributionConfiguration; }
78 inline bool ContainerDistributionConfigurationHasBeenSet() const { return m_containerDistributionConfigurationHasBeenSet; }
79 inline void SetContainerDistributionConfiguration(const ContainerDistributionConfiguration& value) { m_containerDistributionConfigurationHasBeenSet = true; m_containerDistributionConfiguration = value; }
80 inline void SetContainerDistributionConfiguration(ContainerDistributionConfiguration&& value) { m_containerDistributionConfigurationHasBeenSet = true; m_containerDistributionConfiguration = std::move(value); }
84
86
90 inline const Aws::Vector<Aws::String>& GetLicenseConfigurationArns() const{ return m_licenseConfigurationArns; }
91 inline bool LicenseConfigurationArnsHasBeenSet() const { return m_licenseConfigurationArnsHasBeenSet; }
92 inline void SetLicenseConfigurationArns(const Aws::Vector<Aws::String>& value) { m_licenseConfigurationArnsHasBeenSet = true; m_licenseConfigurationArns = value; }
93 inline void SetLicenseConfigurationArns(Aws::Vector<Aws::String>&& value) { m_licenseConfigurationArnsHasBeenSet = true; m_licenseConfigurationArns = std::move(value); }
96 inline Distribution& AddLicenseConfigurationArns(const Aws::String& value) { m_licenseConfigurationArnsHasBeenSet = true; m_licenseConfigurationArns.push_back(value); return *this; }
97 inline Distribution& AddLicenseConfigurationArns(Aws::String&& value) { m_licenseConfigurationArnsHasBeenSet = true; m_licenseConfigurationArns.push_back(std::move(value)); return *this; }
98 inline Distribution& AddLicenseConfigurationArns(const char* value) { m_licenseConfigurationArnsHasBeenSet = true; m_licenseConfigurationArns.push_back(value); return *this; }
100
102
106 inline const Aws::Vector<LaunchTemplateConfiguration>& GetLaunchTemplateConfigurations() const{ return m_launchTemplateConfigurations; }
107 inline bool LaunchTemplateConfigurationsHasBeenSet() const { return m_launchTemplateConfigurationsHasBeenSet; }
108 inline void SetLaunchTemplateConfigurations(const Aws::Vector<LaunchTemplateConfiguration>& value) { m_launchTemplateConfigurationsHasBeenSet = true; m_launchTemplateConfigurations = value; }
109 inline void SetLaunchTemplateConfigurations(Aws::Vector<LaunchTemplateConfiguration>&& value) { m_launchTemplateConfigurationsHasBeenSet = true; m_launchTemplateConfigurations = std::move(value); }
112 inline Distribution& AddLaunchTemplateConfigurations(const LaunchTemplateConfiguration& value) { m_launchTemplateConfigurationsHasBeenSet = true; m_launchTemplateConfigurations.push_back(value); return *this; }
113 inline Distribution& AddLaunchTemplateConfigurations(LaunchTemplateConfiguration&& value) { m_launchTemplateConfigurationsHasBeenSet = true; m_launchTemplateConfigurations.push_back(std::move(value)); return *this; }
115
117
121 inline const S3ExportConfiguration& GetS3ExportConfiguration() const{ return m_s3ExportConfiguration; }
122 inline bool S3ExportConfigurationHasBeenSet() const { return m_s3ExportConfigurationHasBeenSet; }
123 inline void SetS3ExportConfiguration(const S3ExportConfiguration& value) { m_s3ExportConfigurationHasBeenSet = true; m_s3ExportConfiguration = value; }
124 inline void SetS3ExportConfiguration(S3ExportConfiguration&& value) { m_s3ExportConfigurationHasBeenSet = true; m_s3ExportConfiguration = std::move(value); }
128
130
133 inline const Aws::Vector<FastLaunchConfiguration>& GetFastLaunchConfigurations() const{ return m_fastLaunchConfigurations; }
134 inline bool FastLaunchConfigurationsHasBeenSet() const { return m_fastLaunchConfigurationsHasBeenSet; }
135 inline void SetFastLaunchConfigurations(const Aws::Vector<FastLaunchConfiguration>& value) { m_fastLaunchConfigurationsHasBeenSet = true; m_fastLaunchConfigurations = value; }
136 inline void SetFastLaunchConfigurations(Aws::Vector<FastLaunchConfiguration>&& value) { m_fastLaunchConfigurationsHasBeenSet = true; m_fastLaunchConfigurations = std::move(value); }
139 inline Distribution& AddFastLaunchConfigurations(const FastLaunchConfiguration& value) { m_fastLaunchConfigurationsHasBeenSet = true; m_fastLaunchConfigurations.push_back(value); return *this; }
140 inline Distribution& AddFastLaunchConfigurations(FastLaunchConfiguration&& value) { m_fastLaunchConfigurationsHasBeenSet = true; m_fastLaunchConfigurations.push_back(std::move(value)); return *this; }
142 private:
143
144 Aws::String m_region;
145 bool m_regionHasBeenSet = false;
146
147 AmiDistributionConfiguration m_amiDistributionConfiguration;
148 bool m_amiDistributionConfigurationHasBeenSet = false;
149
150 ContainerDistributionConfiguration m_containerDistributionConfiguration;
151 bool m_containerDistributionConfigurationHasBeenSet = false;
152
153 Aws::Vector<Aws::String> m_licenseConfigurationArns;
154 bool m_licenseConfigurationArnsHasBeenSet = false;
155
156 Aws::Vector<LaunchTemplateConfiguration> m_launchTemplateConfigurations;
157 bool m_launchTemplateConfigurationsHasBeenSet = false;
158
159 S3ExportConfiguration m_s3ExportConfiguration;
160 bool m_s3ExportConfigurationHasBeenSet = false;
161
162 Aws::Vector<FastLaunchConfiguration> m_fastLaunchConfigurations;
163 bool m_fastLaunchConfigurationsHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace imagebuilder
168} // namespace Aws
void SetS3ExportConfiguration(S3ExportConfiguration &&value)
void SetRegion(Aws::String &&value)
Distribution & AddLicenseConfigurationArns(const char *value)
bool ContainerDistributionConfigurationHasBeenSet() const
Distribution & WithS3ExportConfiguration(S3ExportConfiguration &&value)
Distribution & WithAmiDistributionConfiguration(const AmiDistributionConfiguration &value)
void SetAmiDistributionConfiguration(const AmiDistributionConfiguration &value)
void SetS3ExportConfiguration(const S3ExportConfiguration &value)
Distribution & AddFastLaunchConfigurations(const FastLaunchConfiguration &value)
AWS_IMAGEBUILDER_API Distribution()
const S3ExportConfiguration & GetS3ExportConfiguration() const
const Aws::String & GetRegion() const
Distribution & WithLicenseConfigurationArns(const Aws::Vector< Aws::String > &value)
void SetAmiDistributionConfiguration(AmiDistributionConfiguration &&value)
Distribution & AddFastLaunchConfigurations(FastLaunchConfiguration &&value)
const AmiDistributionConfiguration & GetAmiDistributionConfiguration() const
Distribution & WithFastLaunchConfigurations(const Aws::Vector< FastLaunchConfiguration > &value)
void SetLaunchTemplateConfigurations(const Aws::Vector< LaunchTemplateConfiguration > &value)
Distribution & WithLaunchTemplateConfigurations(Aws::Vector< LaunchTemplateConfiguration > &&value)
AWS_IMAGEBUILDER_API Distribution(Aws::Utils::Json::JsonView jsonValue)
Distribution & WithRegion(const Aws::String &value)
Distribution & WithLicenseConfigurationArns(Aws::Vector< Aws::String > &&value)
void SetLicenseConfigurationArns(const Aws::Vector< Aws::String > &value)
Distribution & WithS3ExportConfiguration(const S3ExportConfiguration &value)
Distribution & AddLicenseConfigurationArns(Aws::String &&value)
void SetRegion(const Aws::String &value)
Distribution & AddLaunchTemplateConfigurations(LaunchTemplateConfiguration &&value)
Distribution & WithFastLaunchConfigurations(Aws::Vector< FastLaunchConfiguration > &&value)
void SetRegion(const char *value)
void SetLaunchTemplateConfigurations(Aws::Vector< LaunchTemplateConfiguration > &&value)
Distribution & WithRegion(Aws::String &&value)
const ContainerDistributionConfiguration & GetContainerDistributionConfiguration() const
AWS_IMAGEBUILDER_API Distribution & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFastLaunchConfigurations(Aws::Vector< FastLaunchConfiguration > &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
Distribution & WithRegion(const char *value)
void SetLicenseConfigurationArns(Aws::Vector< Aws::String > &&value)
const Aws::Vector< FastLaunchConfiguration > & GetFastLaunchConfigurations() const
void SetFastLaunchConfigurations(const Aws::Vector< FastLaunchConfiguration > &value)
Distribution & AddLaunchTemplateConfigurations(const LaunchTemplateConfiguration &value)
Distribution & WithContainerDistributionConfiguration(ContainerDistributionConfiguration &&value)
Distribution & AddLicenseConfigurationArns(const Aws::String &value)
Distribution & WithAmiDistributionConfiguration(AmiDistributionConfiguration &&value)
Distribution & WithLaunchTemplateConfigurations(const Aws::Vector< LaunchTemplateConfiguration > &value)
const Aws::Vector< Aws::String > & GetLicenseConfigurationArns() const
void SetContainerDistributionConfiguration(ContainerDistributionConfiguration &&value)
const Aws::Vector< LaunchTemplateConfiguration > & GetLaunchTemplateConfigurations() const
void SetContainerDistributionConfiguration(const ContainerDistributionConfiguration &value)
Distribution & WithContainerDistributionConfiguration(const ContainerDistributionConfiguration &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