AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateLocationRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/gamelift/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GameLift
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GAMELIFT_API CreateLocationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateLocation"; }
33
34 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetLocationName() const { return m_locationName; }
44 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
45 template<typename LocationNameT = Aws::String>
46 void SetLocationName(LocationNameT&& value) { m_locationNameHasBeenSet = true; m_locationName = std::forward<LocationNameT>(value); }
47 template<typename LocationNameT = Aws::String>
48 CreateLocationRequest& WithLocationName(LocationNameT&& value) { SetLocationName(std::forward<LocationNameT>(value)); return *this;}
50
52
60 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 template<typename TagsT = Aws::Vector<Tag>>
63 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
64 template<typename TagsT = Aws::Vector<Tag>>
65 CreateLocationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
66 template<typename TagsT = Tag>
67 CreateLocationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
69 private:
70
71 Aws::String m_locationName;
72 bool m_locationNameHasBeenSet = false;
73
74 Aws::Vector<Tag> m_tags;
75 bool m_tagsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace GameLift
80} // 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