AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateAliasRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/RoutingStrategy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace GameLift {
16namespace Model {
17
21 public:
22 AWS_GAMELIFT_API UpdateAliasRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateAlias"; }
29
30 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetAliasId() const { return m_aliasId; }
40 inline bool AliasIdHasBeenSet() const { return m_aliasIdHasBeenSet; }
41 template <typename AliasIdT = Aws::String>
42 void SetAliasId(AliasIdT&& value) {
43 m_aliasIdHasBeenSet = true;
44 m_aliasId = std::forward<AliasIdT>(value);
45 }
46 template <typename AliasIdT = Aws::String>
47 UpdateAliasRequest& WithAliasId(AliasIdT&& value) {
48 SetAliasId(std::forward<AliasIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 UpdateAliasRequest& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 UpdateAliasRequest& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
95 inline const RoutingStrategy& GetRoutingStrategy() const { return m_routingStrategy; }
96 inline bool RoutingStrategyHasBeenSet() const { return m_routingStrategyHasBeenSet; }
97 template <typename RoutingStrategyT = RoutingStrategy>
98 void SetRoutingStrategy(RoutingStrategyT&& value) {
99 m_routingStrategyHasBeenSet = true;
100 m_routingStrategy = std::forward<RoutingStrategyT>(value);
101 }
102 template <typename RoutingStrategyT = RoutingStrategy>
103 UpdateAliasRequest& WithRoutingStrategy(RoutingStrategyT&& value) {
104 SetRoutingStrategy(std::forward<RoutingStrategyT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_aliasId;
110
111 Aws::String m_name;
112
113 Aws::String m_description;
114
115 RoutingStrategy m_routingStrategy;
116 bool m_aliasIdHasBeenSet = false;
117 bool m_nameHasBeenSet = false;
118 bool m_descriptionHasBeenSet = false;
119 bool m_routingStrategyHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace GameLift
124} // namespace Aws
const RoutingStrategy & GetRoutingStrategy() const
void SetRoutingStrategy(RoutingStrategyT &&value)
UpdateAliasRequest & WithDescription(DescriptionT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateAliasRequest & WithName(NameT &&value)
UpdateAliasRequest & WithAliasId(AliasIdT &&value)
UpdateAliasRequest & WithRoutingStrategy(RoutingStrategyT &&value)
const Aws::String & GetDescription() const
virtual const char * GetServiceRequestName() const override
AWS_GAMELIFT_API UpdateAliasRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String