AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
ModifyInstanceMetadataDefaultsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2Request.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/DefaultHttpTokensEnforcedState.h>
10#include <aws/ec2/model/DefaultInstanceMetadataEndpointState.h>
11#include <aws/ec2/model/DefaultInstanceMetadataTagsState.h>
12#include <aws/ec2/model/MetadataDefaultHttpTokensState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ModifyInstanceMetadataDefaults"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
45 inline MetadataDefaultHttpTokensState GetHttpTokens() const { return m_httpTokens; }
46 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
48 m_httpTokensHasBeenSet = true;
49 m_httpTokens = value;
50 }
52 SetHttpTokens(value);
53 return *this;
54 }
56
58
64 inline int GetHttpPutResponseHopLimit() const { return m_httpPutResponseHopLimit; }
65 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
66 inline void SetHttpPutResponseHopLimit(int value) {
67 m_httpPutResponseHopLimitHasBeenSet = true;
68 m_httpPutResponseHopLimit = value;
69 }
72 return *this;
73 }
75
77
81 inline DefaultInstanceMetadataEndpointState GetHttpEndpoint() const { return m_httpEndpoint; }
82 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
84 m_httpEndpointHasBeenSet = true;
85 m_httpEndpoint = value;
86 }
88 SetHttpEndpoint(value);
89 return *this;
90 }
92
94
101 inline DefaultInstanceMetadataTagsState GetInstanceMetadataTags() const { return m_instanceMetadataTags; }
102 inline bool InstanceMetadataTagsHasBeenSet() const { return m_instanceMetadataTagsHasBeenSet; }
104 m_instanceMetadataTagsHasBeenSet = true;
105 m_instanceMetadataTags = value;
106 }
109 return *this;
110 }
112
114
120 inline bool GetDryRun() const { return m_dryRun; }
121 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
122 inline void SetDryRun(bool value) {
123 m_dryRunHasBeenSet = true;
124 m_dryRun = value;
125 }
127 SetDryRun(value);
128 return *this;
129 }
131
133
141 inline DefaultHttpTokensEnforcedState GetHttpTokensEnforced() const { return m_httpTokensEnforced; }
142 inline bool HttpTokensEnforcedHasBeenSet() const { return m_httpTokensEnforcedHasBeenSet; }
144 m_httpTokensEnforcedHasBeenSet = true;
145 m_httpTokensEnforced = value;
146 }
149 return *this;
150 }
152 private:
154
155 int m_httpPutResponseHopLimit{0};
156
158
160
161 bool m_dryRun{false};
162
164 bool m_httpTokensHasBeenSet = false;
165 bool m_httpPutResponseHopLimitHasBeenSet = false;
166 bool m_httpEndpointHasBeenSet = false;
167 bool m_instanceMetadataTagsHasBeenSet = false;
168 bool m_dryRunHasBeenSet = false;
169 bool m_httpTokensEnforcedHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace EC2
174} // namespace Aws
ModifyInstanceMetadataDefaultsRequest & WithInstanceMetadataTags(DefaultInstanceMetadataTagsState value)
ModifyInstanceMetadataDefaultsRequest & WithHttpPutResponseHopLimit(int value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyInstanceMetadataDefaultsRequest & WithHttpTokensEnforced(DefaultHttpTokensEnforcedState value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyInstanceMetadataDefaultsRequest & WithHttpEndpoint(DefaultInstanceMetadataEndpointState value)
ModifyInstanceMetadataDefaultsRequest & WithHttpTokens(MetadataDefaultHttpTokensState value)
ModifyInstanceMetadataDefaultsRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String