AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateStreamGroupRequest.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 UpdateStreamGroupRequest() = 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 "UpdateStreamGroup"; }
30
31 AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override;
32
34
42 inline const Aws::String& GetIdentifier() const { return m_identifier; }
43 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
44 template <typename IdentifierT = Aws::String>
45 void SetIdentifier(IdentifierT&& value) {
46 m_identifierHasBeenSet = true;
47 m_identifier = std::forward<IdentifierT>(value);
48 }
49 template <typename IdentifierT = Aws::String>
51 SetIdentifier(std::forward<IdentifierT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<LocationConfiguration>& GetLocationConfigurations() const { return m_locationConfigurations; }
62 inline bool LocationConfigurationsHasBeenSet() const { return m_locationConfigurationsHasBeenSet; }
63 template <typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
64 void SetLocationConfigurations(LocationConfigurationsT&& value) {
65 m_locationConfigurationsHasBeenSet = true;
66 m_locationConfigurations = std::forward<LocationConfigurationsT>(value);
67 }
68 template <typename LocationConfigurationsT = Aws::Vector<LocationConfiguration>>
69 UpdateStreamGroupRequest& WithLocationConfigurations(LocationConfigurationsT&& value) {
70 SetLocationConfigurations(std::forward<LocationConfigurationsT>(value));
71 return *this;
72 }
73 template <typename LocationConfigurationsT = LocationConfiguration>
74 UpdateStreamGroupRequest& AddLocationConfigurations(LocationConfigurationsT&& value) {
75 m_locationConfigurationsHasBeenSet = true;
76 m_locationConfigurations.emplace_back(std::forward<LocationConfigurationsT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template <typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) {
89 m_descriptionHasBeenSet = true;
90 m_description = std::forward<DescriptionT>(value);
91 }
92 template <typename DescriptionT = Aws::String>
94 SetDescription(std::forward<DescriptionT>(value));
95 return *this;
96 }
98
100
118 inline const Aws::String& GetDefaultApplicationIdentifier() const { return m_defaultApplicationIdentifier; }
119 inline bool DefaultApplicationIdentifierHasBeenSet() const { return m_defaultApplicationIdentifierHasBeenSet; }
120 template <typename DefaultApplicationIdentifierT = Aws::String>
121 void SetDefaultApplicationIdentifier(DefaultApplicationIdentifierT&& value) {
122 m_defaultApplicationIdentifierHasBeenSet = true;
123 m_defaultApplicationIdentifier = std::forward<DefaultApplicationIdentifierT>(value);
124 }
125 template <typename DefaultApplicationIdentifierT = Aws::String>
126 UpdateStreamGroupRequest& WithDefaultApplicationIdentifier(DefaultApplicationIdentifierT&& value) {
127 SetDefaultApplicationIdentifier(std::forward<DefaultApplicationIdentifierT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_identifier;
133
134 Aws::Vector<LocationConfiguration> m_locationConfigurations;
135
136 Aws::String m_description;
137
138 Aws::String m_defaultApplicationIdentifier;
139 bool m_identifierHasBeenSet = false;
140 bool m_locationConfigurationsHasBeenSet = false;
141 bool m_descriptionHasBeenSet = false;
142 bool m_defaultApplicationIdentifierHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace GameLiftStreams
147} // namespace Aws
UpdateStreamGroupRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< LocationConfiguration > & GetLocationConfigurations() const
virtual const char * GetServiceRequestName() const override
void SetLocationConfigurations(LocationConfigurationsT &&value)
AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override
UpdateStreamGroupRequest & AddLocationConfigurations(LocationConfigurationsT &&value)
UpdateStreamGroupRequest & WithIdentifier(IdentifierT &&value)
UpdateStreamGroupRequest & WithDefaultApplicationIdentifier(DefaultApplicationIdentifierT &&value)
void SetDefaultApplicationIdentifier(DefaultApplicationIdentifierT &&value)
UpdateStreamGroupRequest & WithLocationConfigurations(LocationConfigurationsT &&value)
AWS_GAMELIFTSTREAMS_API UpdateStreamGroupRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector