AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateLocationRequest.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/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GameLift {
17namespace Model {
18
22 public:
23 AWS_GAMELIFT_API CreateLocationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateLocation"; }
30
31 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetLocationName() const { return m_locationName; }
40 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
41 template <typename LocationNameT = Aws::String>
42 void SetLocationName(LocationNameT&& value) {
43 m_locationNameHasBeenSet = true;
44 m_locationName = std::forward<LocationNameT>(value);
45 }
46 template <typename LocationNameT = Aws::String>
47 CreateLocationRequest& WithLocationName(LocationNameT&& value) {
48 SetLocationName(std::forward<LocationNameT>(value));
49 return *this;
50 }
52
54
62 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
63 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
64 template <typename TagsT = Aws::Vector<Tag>>
65 void SetTags(TagsT&& value) {
66 m_tagsHasBeenSet = true;
67 m_tags = std::forward<TagsT>(value);
68 }
69 template <typename TagsT = Aws::Vector<Tag>>
71 SetTags(std::forward<TagsT>(value));
72 return *this;
73 }
74 template <typename TagsT = Tag>
76 m_tagsHasBeenSet = true;
77 m_tags.emplace_back(std::forward<TagsT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_locationName;
83
84 Aws::Vector<Tag> m_tags;
85 bool m_locationNameHasBeenSet = false;
86 bool m_tagsHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace GameLift
91} // namespace Aws
CreateLocationRequest & WithLocationName(LocationNameT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
const Aws::Vector< Tag > & GetTags() const
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLocationRequest & WithTags(TagsT &&value)
CreateLocationRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GAMELIFT_API CreateLocationRequest()=default
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