AWS SDK for C++

AWS SDK for C++ Version 1.11.916

Loading...
Searching...
No Matches
UpdateGatewayRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/PropagateGatewayTags.h>
11#include <aws/ecs/model/UpdateGatewayConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ECS {
17namespace Model {
18
22 public:
23 AWS_ECS_API UpdateGatewayRequest() = 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 "UpdateGateway"; }
30
31 AWS_ECS_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetGateway() const { return m_gateway; }
40 inline bool GatewayHasBeenSet() const { return m_gatewayHasBeenSet; }
41 template <typename GatewayT = Aws::String>
42 void SetGateway(GatewayT&& value) {
43 m_gatewayHasBeenSet = true;
44 m_gateway = std::forward<GatewayT>(value);
45 }
46 template <typename GatewayT = Aws::String>
47 UpdateGatewayRequest& WithGateway(GatewayT&& value) {
48 SetGateway(std::forward<GatewayT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetInfrastructureRoleArn() const { return m_infrastructureRoleArn; }
59 inline bool InfrastructureRoleArnHasBeenSet() const { return m_infrastructureRoleArnHasBeenSet; }
60 template <typename InfrastructureRoleArnT = Aws::String>
61 void SetInfrastructureRoleArn(InfrastructureRoleArnT&& value) {
62 m_infrastructureRoleArnHasBeenSet = true;
63 m_infrastructureRoleArn = std::forward<InfrastructureRoleArnT>(value);
64 }
65 template <typename InfrastructureRoleArnT = Aws::String>
66 UpdateGatewayRequest& WithInfrastructureRoleArn(InfrastructureRoleArnT&& value) {
67 SetInfrastructureRoleArn(std::forward<InfrastructureRoleArnT>(value));
68 return *this;
69 }
71
73
77 inline bool GetDeletionProtection() const { return m_deletionProtection; }
78 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
79 inline void SetDeletionProtection(bool value) {
80 m_deletionProtectionHasBeenSet = true;
81 m_deletionProtection = value;
82 }
85 return *this;
86 }
88
90
95 inline const UpdateGatewayConfiguration& GetConfiguration() const { return m_configuration; }
96 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
97 template <typename ConfigurationT = UpdateGatewayConfiguration>
98 void SetConfiguration(ConfigurationT&& value) {
99 m_configurationHasBeenSet = true;
100 m_configuration = std::forward<ConfigurationT>(value);
101 }
102 template <typename ConfigurationT = UpdateGatewayConfiguration>
103 UpdateGatewayRequest& WithConfiguration(ConfigurationT&& value) {
104 SetConfiguration(std::forward<ConfigurationT>(value));
105 return *this;
106 }
108
110
115 inline PropagateGatewayTags GetPropagateTags() const { return m_propagateTags; }
116 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
118 m_propagateTagsHasBeenSet = true;
119 m_propagateTags = value;
120 }
122 SetPropagateTags(value);
123 return *this;
124 }
126 private:
127 Aws::String m_gateway;
128
129 Aws::String m_infrastructureRoleArn;
130
131 bool m_deletionProtection{false};
132
133 UpdateGatewayConfiguration m_configuration;
134
136 bool m_gatewayHasBeenSet = false;
137 bool m_infrastructureRoleArnHasBeenSet = false;
138 bool m_deletionProtectionHasBeenSet = false;
139 bool m_configurationHasBeenSet = false;
140 bool m_propagateTagsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace ECS
145} // namespace Aws
AWS_ECS_API Aws::String SerializePayload() const override
UpdateGatewayRequest & WithInfrastructureRoleArn(InfrastructureRoleArnT &&value)
virtual const char * GetServiceRequestName() const override
const UpdateGatewayConfiguration & GetConfiguration() const
const Aws::String & GetInfrastructureRoleArn() const
UpdateGatewayRequest & WithDeletionProtection(bool value)
void SetInfrastructureRoleArn(InfrastructureRoleArnT &&value)
PropagateGatewayTags GetPropagateTags() const
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateGatewayRequest & WithConfiguration(ConfigurationT &&value)
AWS_ECS_API UpdateGatewayRequest()=default
UpdateGatewayRequest & WithPropagateTags(PropagateGatewayTags value)
UpdateGatewayRequest & WithGateway(GatewayT &&value)
void SetPropagateTags(PropagateGatewayTags value)
void SetConfiguration(ConfigurationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String