AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AddStreamGroupLocationsRequest.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/GameLiftStreamsRequest.h>
10#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
11#include <aws/gameliftstreams/model/LocationConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GameLiftStreams {
17namespace Model {
18
22 public:
23 AWS_GAMELIFTSTREAMS_API AddStreamGroupLocationsRequest() = 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 "AddStreamGroupLocations"; }
30
31 AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override;
32
34
43 inline const Aws::String& GetIdentifier() const { return m_identifier; }
44 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
45 template <typename IdentifierT = Aws::String>
46 void SetIdentifier(IdentifierT&& value) {
47 m_identifierHasBeenSet = true;
48 m_identifier = std::forward<IdentifierT>(value);
49 }
50 template <typename IdentifierT = Aws::String>
52 SetIdentifier(std::forward<IdentifierT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<LocationConfiguration>& GetLocationConfigurations() const { return m_locationConfigurations; }
63 inline bool LocationConfigurationsHasBeenSet() const { return m_locationConfigurationsHasBeenSet; }
64 template <typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
65 void SetLocationConfigurations(LocationConfigurationsT&& value) {
66 m_locationConfigurationsHasBeenSet = true;
67 m_locationConfigurations = std::forward<LocationConfigurationsT>(value);
68 }
69 template <typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
71 SetLocationConfigurations(std::forward<LocationConfigurationsT>(value));
72 return *this;
73 }
74 template <typename LocationConfigurationsT = LocationConfiguration>
76 m_locationConfigurationsHasBeenSet = true;
77 m_locationConfigurations.emplace_back(std::forward<LocationConfigurationsT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_identifier;
83
84 Aws::Vector<LocationConfiguration> m_locationConfigurations;
85 bool m_identifierHasBeenSet = false;
86 bool m_locationConfigurationsHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace GameLiftStreams
91} // namespace Aws
AddStreamGroupLocationsRequest & AddLocationConfigurations(LocationConfigurationsT &&value)
AddStreamGroupLocationsRequest & WithLocationConfigurations(LocationConfigurationsT &&value)
AddStreamGroupLocationsRequest & WithIdentifier(IdentifierT &&value)
const Aws::Vector< LocationConfiguration > & GetLocationConfigurations() const
AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override
AWS_GAMELIFTSTREAMS_API AddStreamGroupLocationsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector