AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLocationName(const Aws::String& value) { m_locationNameHasBeenSet = true; m_locationName = value; }
46 inline void SetLocationName(Aws::String&& value) { m_locationNameHasBeenSet = true; m_locationName = std::move(value); }
47 inline void SetLocationName(const char* value) { m_locationNameHasBeenSet = true; m_locationName.assign(value); }
48 inline CreateLocationRequest& WithLocationName(const Aws::String& value) { SetLocationName(value); return *this;}
49 inline CreateLocationRequest& WithLocationName(Aws::String&& value) { SetLocationName(std::move(value)); return *this;}
50 inline CreateLocationRequest& WithLocationName(const char* value) { SetLocationName(value); return *this;}
52
54
62 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
63 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
64 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
65 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
66 inline CreateLocationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
67 inline CreateLocationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
68 inline CreateLocationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
69 inline CreateLocationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_locationName;
74 bool m_locationNameHasBeenSet = false;
75
76 Aws::Vector<Tag> m_tags;
77 bool m_tagsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace GameLift
82} // namespace Aws
CreateLocationRequest & WithLocationName(const Aws::String &value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
CreateLocationRequest & AddTags(const Tag &value)
const Aws::Vector< Tag > & GetTags() const
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLocationRequest & WithLocationName(const char *value)
CreateLocationRequest & WithLocationName(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateLocationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateLocationRequest & AddTags(Tag &&value)
CreateLocationRequest & WithTags(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
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