AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateAliasRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateAliasRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline CreateAliasRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline CreateAliasRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline CreateAliasRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
74 inline const RoutingStrategy& GetRoutingStrategy() const{ return m_routingStrategy; }
75 inline bool RoutingStrategyHasBeenSet() const { return m_routingStrategyHasBeenSet; }
76 inline void SetRoutingStrategy(const RoutingStrategy& value) { m_routingStrategyHasBeenSet = true; m_routingStrategy = value; }
77 inline void SetRoutingStrategy(RoutingStrategy&& value) { m_routingStrategyHasBeenSet = true; m_routingStrategy = std::move(value); }
78 inline CreateAliasRequest& WithRoutingStrategy(const RoutingStrategy& value) { SetRoutingStrategy(value); return *this;}
79 inline CreateAliasRequest& WithRoutingStrategy(RoutingStrategy&& value) { SetRoutingStrategy(std::move(value)); return *this;}
81
83
92 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 inline CreateAliasRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
97 inline CreateAliasRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
98 inline CreateAliasRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
99 inline CreateAliasRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
101 private:
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 Aws::String m_description;
107 bool m_descriptionHasBeenSet = false;
108
109 RoutingStrategy m_routingStrategy;
110 bool m_routingStrategyHasBeenSet = false;
111
112 Aws::Vector<Tag> m_tags;
113 bool m_tagsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace GameLift
118} // namespace Aws
void SetDescription(const Aws::String &value)
CreateAliasRequest & WithRoutingStrategy(const RoutingStrategy &value)
CreateAliasRequest & WithDescription(const Aws::String &value)
void SetRoutingStrategy(const RoutingStrategy &value)
void SetRoutingStrategy(RoutingStrategy &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateAliasRequest & WithName(const char *value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
CreateAliasRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetDescription() const
const Aws::Vector< Tag > & GetTags() const
CreateAliasRequest & AddTags(Tag &&value)
CreateAliasRequest & WithDescription(Aws::String &&value)
CreateAliasRequest & AddTags(const Tag &value)
CreateAliasRequest & WithDescription(const char *value)
CreateAliasRequest & WithName(const Aws::String &value)
CreateAliasRequest & WithName(Aws::String &&value)
CreateAliasRequest & WithRoutingStrategy(RoutingStrategy &&value)
virtual const char * GetServiceRequestName() const override
const RoutingStrategy & GetRoutingStrategy() const
void SetName(const Aws::String &value)
CreateAliasRequest & WithTags(Aws::Vector< Tag > &&value)
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