AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAliasRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/gamelift/model/RoutingStrategy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/gamelift/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace GameLift
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_GAMELIFT_API CreateAliasRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAlias"; }
34
35 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateAliasRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 CreateAliasRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
70 inline const RoutingStrategy& GetRoutingStrategy() const { return m_routingStrategy; }
71 inline bool RoutingStrategyHasBeenSet() const { return m_routingStrategyHasBeenSet; }
72 template<typename RoutingStrategyT = RoutingStrategy>
73 void SetRoutingStrategy(RoutingStrategyT&& value) { m_routingStrategyHasBeenSet = true; m_routingStrategy = std::forward<RoutingStrategyT>(value); }
74 template<typename RoutingStrategyT = RoutingStrategy>
75 CreateAliasRequest& WithRoutingStrategy(RoutingStrategyT&& value) { SetRoutingStrategy(std::forward<RoutingStrategyT>(value)); return *this;}
77
79
88 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 template<typename TagsT = Aws::Vector<Tag>>
91 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
92 template<typename TagsT = Aws::Vector<Tag>>
93 CreateAliasRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
94 template<typename TagsT = Tag>
95 CreateAliasRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
97 private:
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 Aws::String m_description;
103 bool m_descriptionHasBeenSet = false;
104
105 RoutingStrategy m_routingStrategy;
106 bool m_routingStrategyHasBeenSet = false;
107
108 Aws::Vector<Tag> m_tags;
109 bool m_tagsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace GameLift
114} // 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