AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyInstanceMetadataDefaultsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/MetadataDefaultHttpTokensState.h>
10#include <aws/ec2/model/DefaultInstanceMetadataEndpointState.h>
11#include <aws/ec2/model/DefaultInstanceMetadataTagsState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ModifyInstanceMetadataDefaults"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline const MetadataDefaultHttpTokensState& GetHttpTokens() const{ return m_httpTokens; }
49 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
50 inline void SetHttpTokens(const MetadataDefaultHttpTokensState& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
51 inline void SetHttpTokens(MetadataDefaultHttpTokensState&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
55
57
63 inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
64 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
65 inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
68
70
74 inline const DefaultInstanceMetadataEndpointState& GetHttpEndpoint() const{ return m_httpEndpoint; }
75 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
76 inline void SetHttpEndpoint(const DefaultInstanceMetadataEndpointState& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
77 inline void SetHttpEndpoint(DefaultInstanceMetadataEndpointState&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); }
81
83
90 inline const DefaultInstanceMetadataTagsState& GetInstanceMetadataTags() const{ return m_instanceMetadataTags; }
91 inline bool InstanceMetadataTagsHasBeenSet() const { return m_instanceMetadataTagsHasBeenSet; }
92 inline void SetInstanceMetadataTags(const DefaultInstanceMetadataTagsState& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = value; }
93 inline void SetInstanceMetadataTags(DefaultInstanceMetadataTagsState&& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = std::move(value); }
97
99
105 inline bool GetDryRun() const{ return m_dryRun; }
106 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
107 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
108 inline ModifyInstanceMetadataDefaultsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
110 private:
111
113 bool m_httpTokensHasBeenSet = false;
114
115 int m_httpPutResponseHopLimit;
116 bool m_httpPutResponseHopLimitHasBeenSet = false;
117
119 bool m_httpEndpointHasBeenSet = false;
120
121 DefaultInstanceMetadataTagsState m_instanceMetadataTags;
122 bool m_instanceMetadataTagsHasBeenSet = false;
123
124 bool m_dryRun;
125 bool m_dryRunHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace EC2
130} // namespace Aws
void SetHttpEndpoint(DefaultInstanceMetadataEndpointState &&value)
ModifyInstanceMetadataDefaultsRequest & WithHttpPutResponseHopLimit(int value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const DefaultInstanceMetadataEndpointState & GetHttpEndpoint() const
ModifyInstanceMetadataDefaultsRequest & WithHttpTokens(MetadataDefaultHttpTokensState &&value)
ModifyInstanceMetadataDefaultsRequest & WithHttpTokens(const MetadataDefaultHttpTokensState &value)
void SetInstanceMetadataTags(DefaultInstanceMetadataTagsState &&value)
const DefaultInstanceMetadataTagsState & GetInstanceMetadataTags() const
ModifyInstanceMetadataDefaultsRequest & WithHttpEndpoint(DefaultInstanceMetadataEndpointState &&value)
ModifyInstanceMetadataDefaultsRequest & WithHttpEndpoint(const DefaultInstanceMetadataEndpointState &value)
void SetHttpTokens(const MetadataDefaultHttpTokensState &value)
void SetInstanceMetadataTags(const DefaultInstanceMetadataTagsState &value)
ModifyInstanceMetadataDefaultsRequest & WithDryRun(bool value)
ModifyInstanceMetadataDefaultsRequest & WithInstanceMetadataTags(const DefaultInstanceMetadataTagsState &value)
ModifyInstanceMetadataDefaultsRequest & WithInstanceMetadataTags(DefaultInstanceMetadataTagsState &&value)
void SetHttpEndpoint(const DefaultInstanceMetadataEndpointState &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String