AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyTransitGatewayRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ModifyTransitGatewayOptions.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API ModifyTransitGatewayRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ModifyTransitGateway"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
41 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
42 template <typename TransitGatewayIdT = Aws::String>
43 void SetTransitGatewayId(TransitGatewayIdT&& value) {
44 m_transitGatewayIdHasBeenSet = true;
45 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
46 }
47 template <typename TransitGatewayIdT = Aws::String>
49 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const ModifyTransitGatewayOptions& GetOptions() const { return m_options; }
77 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
78 template <typename OptionsT = ModifyTransitGatewayOptions>
79 void SetOptions(OptionsT&& value) {
80 m_optionsHasBeenSet = true;
81 m_options = std::forward<OptionsT>(value);
82 }
83 template <typename OptionsT = ModifyTransitGatewayOptions>
85 SetOptions(std::forward<OptionsT>(value));
86 return *this;
87 }
89
91
97 inline bool GetDryRun() const { return m_dryRun; }
98 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
99 inline void SetDryRun(bool value) {
100 m_dryRunHasBeenSet = true;
101 m_dryRun = value;
102 }
104 SetDryRun(value);
105 return *this;
106 }
108 private:
109 Aws::String m_transitGatewayId;
110
111 Aws::String m_description;
112
114
115 bool m_dryRun{false};
116 bool m_transitGatewayIdHasBeenSet = false;
117 bool m_descriptionHasBeenSet = false;
118 bool m_optionsHasBeenSet = false;
119 bool m_dryRunHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace EC2
124} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const ModifyTransitGatewayOptions & GetOptions() const
ModifyTransitGatewayRequest & WithTransitGatewayId(TransitGatewayIdT &&value)
AWS_EC2_API ModifyTransitGatewayRequest()=default
AWS_EC2_API Aws::String SerializePayload() const override
ModifyTransitGatewayRequest & WithOptions(OptionsT &&value)
ModifyTransitGatewayRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
ModifyTransitGatewayRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String