AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDistributionConfigurationRequest.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/imagebuilder/model/Distribution.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace imagebuilder
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IMAGEBUILDER_API CreateDistributionConfigurationRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateDistributionConfiguration"; }
35
36 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CreateDistributionConfigurationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template<typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
59 template<typename DescriptionT = Aws::String>
60 CreateDistributionConfigurationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
62
64
67 inline const Aws::Vector<Distribution>& GetDistributions() const { return m_distributions; }
68 inline bool DistributionsHasBeenSet() const { return m_distributionsHasBeenSet; }
69 template<typename DistributionsT = Aws::Vector<Distribution>>
70 void SetDistributions(DistributionsT&& value) { m_distributionsHasBeenSet = true; m_distributions = std::forward<DistributionsT>(value); }
71 template<typename DistributionsT = Aws::Vector<Distribution>>
72 CreateDistributionConfigurationRequest& WithDistributions(DistributionsT&& value) { SetDistributions(std::forward<DistributionsT>(value)); return *this;}
73 template<typename DistributionsT = Distribution>
74 CreateDistributionConfigurationRequest& AddDistributions(DistributionsT&& value) { m_distributionsHasBeenSet = true; m_distributions.emplace_back(std::forward<DistributionsT>(value)); return *this; }
76
78
81 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
82 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
83 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
85 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 CreateDistributionConfigurationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
87 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
88 CreateDistributionConfigurationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
89 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
90 }
92
94
100 inline const Aws::String& GetClientToken() const { return m_clientToken; }
101 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
102 template<typename ClientTokenT = Aws::String>
103 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
104 template<typename ClientTokenT = Aws::String>
105 CreateDistributionConfigurationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
107 private:
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 Aws::String m_description;
113 bool m_descriptionHasBeenSet = false;
114
115 Aws::Vector<Distribution> m_distributions;
116 bool m_distributionsHasBeenSet = false;
117
119 bool m_tagsHasBeenSet = false;
120
122 bool m_clientTokenHasBeenSet = true;
123 };
124
125} // namespace Model
126} // namespace imagebuilder
127} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateDistributionConfigurationRequest & AddDistributions(DistributionsT &&value)
CreateDistributionConfigurationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
CreateDistributionConfigurationRequest & WithClientToken(ClientTokenT &&value)
CreateDistributionConfigurationRequest & WithDistributions(DistributionsT &&value)
CreateDistributionConfigurationRequest & WithDescription(DescriptionT &&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