AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
AddStreamGroupLocationsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
11#include <aws/gameliftstreams/model/LocationState.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace GameLiftStreams {
25namespace Model {
27 public:
28 AWS_GAMELIFTSTREAMS_API AddStreamGroupLocationsResult() = default;
31
33
41 inline const Aws::String& GetIdentifier() const { return m_identifier; }
42 template <typename IdentifierT = Aws::String>
43 void SetIdentifier(IdentifierT&& value) {
44 m_identifierHasBeenSet = true;
45 m_identifier = std::forward<IdentifierT>(value);
46 }
47 template <typename IdentifierT = Aws::String>
49 SetIdentifier(std::forward<IdentifierT>(value));
50 return *this;
51 }
53
55
69 inline const Aws::Vector<LocationState>& GetLocations() const { return m_locations; }
70 template <typename LocationsT = Aws::Vector<LocationState>>
71 void SetLocations(LocationsT&& value) {
72 m_locationsHasBeenSet = true;
73 m_locations = std::forward<LocationsT>(value);
74 }
75 template <typename LocationsT = Aws::Vector<LocationState>>
77 SetLocations(std::forward<LocationsT>(value));
78 return *this;
79 }
80 template <typename LocationsT = LocationState>
82 m_locationsHasBeenSet = true;
83 m_locations.emplace_back(std::forward<LocationsT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::String& GetRequestId() const { return m_requestId; }
91 template <typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) {
93 m_requestIdHasBeenSet = true;
94 m_requestId = std::forward<RequestIdT>(value);
95 }
96 template <typename RequestIdT = Aws::String>
98 SetRequestId(std::forward<RequestIdT>(value));
99 return *this;
100 }
102 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
103
104 private:
105 Aws::String m_identifier;
106
107 Aws::Vector<LocationState> m_locations;
108
109 Aws::String m_requestId;
110 Aws::Http::HttpResponseCode m_HttpResponseCode;
111 bool m_identifierHasBeenSet = false;
112 bool m_locationsHasBeenSet = false;
113 bool m_requestIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace GameLiftStreams
118} // 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