AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AddStreamGroupLocationsRequest.h
1
6#pragma once
7#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
8#include <aws/gameliftstreams/GameLiftStreamsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gameliftstreams/model/LocationConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GameLiftStreams
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GAMELIFTSTREAMS_API AddStreamGroupLocationsRequest() = 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 "AddStreamGroupLocations"; }
33
34 AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override;
35
36
38
47 inline const Aws::String& GetIdentifier() const { return m_identifier; }
48 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
49 template<typename IdentifierT = Aws::String>
50 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
51 template<typename IdentifierT = Aws::String>
52 AddStreamGroupLocationsRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
54
56
60 inline const Aws::Vector<LocationConfiguration>& GetLocationConfigurations() const { return m_locationConfigurations; }
61 inline bool LocationConfigurationsHasBeenSet() const { return m_locationConfigurationsHasBeenSet; }
62 template<typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
63 void SetLocationConfigurations(LocationConfigurationsT&& value) { m_locationConfigurationsHasBeenSet = true; m_locationConfigurations = std::forward<LocationConfigurationsT>(value); }
64 template<typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
65 AddStreamGroupLocationsRequest& WithLocationConfigurations(LocationConfigurationsT&& value) { SetLocationConfigurations(std::forward<LocationConfigurationsT>(value)); return *this;}
66 template<typename LocationConfigurationsT = LocationConfiguration>
67 AddStreamGroupLocationsRequest& AddLocationConfigurations(LocationConfigurationsT&& value) { m_locationConfigurationsHasBeenSet = true; m_locationConfigurations.emplace_back(std::forward<LocationConfigurationsT>(value)); return *this; }
69 private:
70
71 Aws::String m_identifier;
72 bool m_identifierHasBeenSet = false;
73
74 Aws::Vector<LocationConfiguration> m_locationConfigurations;
75 bool m_locationConfigurationsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace GameLiftStreams
80} // 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