AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AddStreamGroupLocationsResult.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/gameliftstreams/GameLiftStreams_EXPORTS.h>
10#include <aws/gameliftstreams/model/LocationState.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace GameLiftStreams {
24namespace Model {
26 public:
27 AWS_GAMELIFTSTREAMS_API AddStreamGroupLocationsResult() = default;
30
32
40 inline const Aws::String& GetIdentifier() const { return m_identifier; }
41 template <typename IdentifierT = Aws::String>
42 void SetIdentifier(IdentifierT&& value) {
43 m_identifierHasBeenSet = true;
44 m_identifier = std::forward<IdentifierT>(value);
45 }
46 template <typename IdentifierT = Aws::String>
48 SetIdentifier(std::forward<IdentifierT>(value));
49 return *this;
50 }
52
54
68 inline const Aws::Vector<LocationState>& GetLocations() const { return m_locations; }
69 template <typename LocationsT = Aws::Vector<LocationState>>
70 void SetLocations(LocationsT&& value) {
71 m_locationsHasBeenSet = true;
72 m_locations = std::forward<LocationsT>(value);
73 }
74 template <typename LocationsT = Aws::Vector<LocationState>>
76 SetLocations(std::forward<LocationsT>(value));
77 return *this;
78 }
79 template <typename LocationsT = LocationState>
81 m_locationsHasBeenSet = true;
82 m_locations.emplace_back(std::forward<LocationsT>(value));
83 return *this;
84 }
86
88
89 inline const Aws::String& GetRequestId() const { return m_requestId; }
90 template <typename RequestIdT = Aws::String>
91 void SetRequestId(RequestIdT&& value) {
92 m_requestIdHasBeenSet = true;
93 m_requestId = std::forward<RequestIdT>(value);
94 }
95 template <typename RequestIdT = Aws::String>
97 SetRequestId(std::forward<RequestIdT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_identifier;
103
104 Aws::Vector<LocationState> m_locations;
105
106 Aws::String m_requestId;
107 bool m_identifierHasBeenSet = false;
108 bool m_locationsHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace GameLiftStreams
114} // namespace Aws
AWS_GAMELIFTSTREAMS_API AddStreamGroupLocationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AddStreamGroupLocationsResult & AddLocations(LocationsT &&value)
AWS_GAMELIFTSTREAMS_API AddStreamGroupLocationsResult()=default
AddStreamGroupLocationsResult & WithLocations(LocationsT &&value)
AddStreamGroupLocationsResult & WithRequestId(RequestIdT &&value)
AddStreamGroupLocationsResult & WithIdentifier(IdentifierT &&value)
AWS_GAMELIFTSTREAMS_API AddStreamGroupLocationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue