AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/DefaultInstanceMetadataEndpointState.h>
10#include <aws/ec2/model/DefaultInstanceMetadataTagsState.h>
11#include <aws/ec2/model/MetadataDefaultHttpTokensState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
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 "ModifyInstanceMetadataDefaults"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
44 inline MetadataDefaultHttpTokensState GetHttpTokens() const { return m_httpTokens; }
45 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
47 m_httpTokensHasBeenSet = true;
48 m_httpTokens = value;
49 }
51 SetHttpTokens(value);
52 return *this;
53 }
55
57
63 inline int GetHttpPutResponseHopLimit() const { return m_httpPutResponseHopLimit; }
64 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
65 inline void SetHttpPutResponseHopLimit(int value) {
66 m_httpPutResponseHopLimitHasBeenSet = true;
67 m_httpPutResponseHopLimit = value;
68 }
71 return *this;
72 }
74
76
80 inline DefaultInstanceMetadataEndpointState GetHttpEndpoint() const { return m_httpEndpoint; }
81 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
83 m_httpEndpointHasBeenSet = true;
84 m_httpEndpoint = value;
85 }
87 SetHttpEndpoint(value);
88 return *this;
89 }
91
93
100 inline DefaultInstanceMetadataTagsState GetInstanceMetadataTags() const { return m_instanceMetadataTags; }
101 inline bool InstanceMetadataTagsHasBeenSet() const { return m_instanceMetadataTagsHasBeenSet; }
103 m_instanceMetadataTagsHasBeenSet = true;
104 m_instanceMetadataTags = value;
105 }
108 return *this;
109 }
111
113
119 inline bool GetDryRun() const { return m_dryRun; }
120 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
121 inline void SetDryRun(bool value) {
122 m_dryRunHasBeenSet = true;
123 m_dryRun = value;
124 }
126 SetDryRun(value);
127 return *this;
128 }
130 private:
132
133 int m_httpPutResponseHopLimit{0};
134
136
138
139 bool m_dryRun{false};
140 bool m_httpTokensHasBeenSet = false;
141 bool m_httpPutResponseHopLimitHasBeenSet = false;
142 bool m_httpEndpointHasBeenSet = false;
143 bool m_instanceMetadataTagsHasBeenSet = false;
144 bool m_dryRunHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace EC2
149} // namespace Aws
ModifyInstanceMetadataDefaultsRequest & WithInstanceMetadataTags(DefaultInstanceMetadataTagsState value)
ModifyInstanceMetadataDefaultsRequest & WithHttpPutResponseHopLimit(int value)
AWS_EC2_API Aws::String SerializePayload() const override
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