AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline CreateDistributionConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline CreateDistributionConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline CreateDistributionConfigurationRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
63 inline CreateDistributionConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline CreateDistributionConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
71 inline const Aws::Vector<Distribution>& GetDistributions() const{ return m_distributions; }
72 inline bool DistributionsHasBeenSet() const { return m_distributionsHasBeenSet; }
73 inline void SetDistributions(const Aws::Vector<Distribution>& value) { m_distributionsHasBeenSet = true; m_distributions = value; }
74 inline void SetDistributions(Aws::Vector<Distribution>&& value) { m_distributionsHasBeenSet = true; m_distributions = std::move(value); }
77 inline CreateDistributionConfigurationRequest& AddDistributions(const Distribution& value) { m_distributionsHasBeenSet = true; m_distributions.push_back(value); return *this; }
78 inline CreateDistributionConfigurationRequest& AddDistributions(Distribution&& value) { m_distributionsHasBeenSet = true; m_distributions.push_back(std::move(value)); return *this; }
80
82
85 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
88 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
91 inline CreateDistributionConfigurationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
92 inline CreateDistributionConfigurationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
93 inline CreateDistributionConfigurationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
94 inline CreateDistributionConfigurationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
95 inline CreateDistributionConfigurationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
96 inline CreateDistributionConfigurationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
97 inline CreateDistributionConfigurationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
99
101
107 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
108 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
109 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
110 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
111 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
113 inline CreateDistributionConfigurationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
114 inline CreateDistributionConfigurationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
116 private:
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_description;
122 bool m_descriptionHasBeenSet = false;
123
124 Aws::Vector<Distribution> m_distributions;
125 bool m_distributionsHasBeenSet = false;
126
128 bool m_tagsHasBeenSet = false;
129
130 Aws::String m_clientToken;
131 bool m_clientTokenHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace imagebuilder
136} // namespace Aws
CreateDistributionConfigurationRequest & WithDescription(const char *value)
CreateDistributionConfigurationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateDistributionConfigurationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDistributionConfigurationRequest & WithClientToken(const Aws::String &value)
CreateDistributionConfigurationRequest & WithClientToken(Aws::String &&value)
CreateDistributionConfigurationRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateDistributionConfigurationRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateDistributionConfigurationRequest & WithName(const Aws::String &value)
CreateDistributionConfigurationRequest & AddTags(Aws::String &&key, const char *value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
CreateDistributionConfigurationRequest & WithName(const char *value)
CreateDistributionConfigurationRequest & WithDistributions(Aws::Vector< Distribution > &&value)
CreateDistributionConfigurationRequest & AddDistributions(const Distribution &value)
CreateDistributionConfigurationRequest & WithClientToken(const char *value)
CreateDistributionConfigurationRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateDistributionConfigurationRequest & WithDescription(const Aws::String &value)
CreateDistributionConfigurationRequest & WithDistributions(const Aws::Vector< Distribution > &value)
CreateDistributionConfigurationRequest & WithDescription(Aws::String &&value)
CreateDistributionConfigurationRequest & AddTags(const char *key, const char *value)
CreateDistributionConfigurationRequest & AddDistributions(Distribution &&value)
CreateDistributionConfigurationRequest & WithName(Aws::String &&value)
CreateDistributionConfigurationRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateDistributionConfigurationRequest & AddTags(const char *key, 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