AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateAliasRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/RoutingStrategy.h>
12#include <aws/gamelift/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace GameLift {
18namespace Model {
19
23 public:
24 AWS_GAMELIFT_API CreateAliasRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateAlias"; }
31
32 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 CreateAliasRequest& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 CreateAliasRequest& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
78 inline const RoutingStrategy& GetRoutingStrategy() const { return m_routingStrategy; }
79 inline bool RoutingStrategyHasBeenSet() const { return m_routingStrategyHasBeenSet; }
80 template <typename RoutingStrategyT = RoutingStrategy>
81 void SetRoutingStrategy(RoutingStrategyT&& value) {
82 m_routingStrategyHasBeenSet = true;
83 m_routingStrategy = std::forward<RoutingStrategyT>(value);
84 }
85 template <typename RoutingStrategyT = RoutingStrategy>
86 CreateAliasRequest& WithRoutingStrategy(RoutingStrategyT&& value) {
87 SetRoutingStrategy(std::forward<RoutingStrategyT>(value));
88 return *this;
89 }
91
93
102 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 template <typename TagsT = Aws::Vector<Tag>>
105 void SetTags(TagsT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags = std::forward<TagsT>(value);
108 }
109 template <typename TagsT = Aws::Vector<Tag>>
110 CreateAliasRequest& WithTags(TagsT&& value) {
111 SetTags(std::forward<TagsT>(value));
112 return *this;
113 }
114 template <typename TagsT = Tag>
115 CreateAliasRequest& AddTags(TagsT&& value) {
116 m_tagsHasBeenSet = true;
117 m_tags.emplace_back(std::forward<TagsT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_name;
123
124 Aws::String m_description;
125
126 RoutingStrategy m_routingStrategy;
127
128 Aws::Vector<Tag> m_tags;
129 bool m_nameHasBeenSet = false;
130 bool m_descriptionHasBeenSet = false;
131 bool m_routingStrategyHasBeenSet = false;
132 bool m_tagsHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace GameLift
137} // namespace Aws
void SetRoutingStrategy(RoutingStrategyT &&value)
CreateAliasRequest & WithRoutingStrategy(RoutingStrategyT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetDescription() const
const Aws::Vector< Tag > & GetTags() const
CreateAliasRequest & WithTags(TagsT &&value)
CreateAliasRequest & WithDescription(DescriptionT &&value)
CreateAliasRequest & AddTags(TagsT &&value)
AWS_GAMELIFT_API CreateAliasRequest()=default
virtual const char * GetServiceRequestName() const override
CreateAliasRequest & WithName(NameT &&value)
const RoutingStrategy & GetRoutingStrategy() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector