AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
InstanceMetadataOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace imagebuilder {
20namespace Model {
21
31 public:
32 AWS_IMAGEBUILDER_API InstanceMetadataOptions() = default;
33 AWS_IMAGEBUILDER_API InstanceMetadataOptions(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
53 inline const Aws::String& GetHttpTokens() const { return m_httpTokens; }
54 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
55 template <typename HttpTokensT = Aws::String>
56 void SetHttpTokens(HttpTokensT&& value) {
57 m_httpTokensHasBeenSet = true;
58 m_httpTokens = std::forward<HttpTokensT>(value);
59 }
60 template <typename HttpTokensT = Aws::String>
62 SetHttpTokens(std::forward<HttpTokensT>(value));
63 return *this;
64 }
66
68
74 inline int GetHttpPutResponseHopLimit() const { return m_httpPutResponseHopLimit; }
75 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
76 inline void SetHttpPutResponseHopLimit(int value) {
77 m_httpPutResponseHopLimitHasBeenSet = true;
78 m_httpPutResponseHopLimit = value;
79 }
82 return *this;
83 }
85 private:
86 Aws::String m_httpTokens;
87
88 int m_httpPutResponseHopLimit{0};
89 bool m_httpTokensHasBeenSet = false;
90 bool m_httpPutResponseHopLimitHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace imagebuilder
95} // namespace Aws
InstanceMetadataOptions & WithHttpPutResponseHopLimit(int value)
InstanceMetadataOptions & WithHttpTokens(HttpTokensT &&value)
AWS_IMAGEBUILDER_API InstanceMetadataOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API InstanceMetadataOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API InstanceMetadataOptions()=default
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue