AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
36 public:
37 AWS_IMAGEBUILDER_API InstanceMetadataOptions() = default;
38 AWS_IMAGEBUILDER_API InstanceMetadataOptions(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
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
73 inline int GetHttpPutResponseHopLimit() const { return m_httpPutResponseHopLimit; }
74 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
75 inline void SetHttpPutResponseHopLimit(int value) {
76 m_httpPutResponseHopLimitHasBeenSet = true;
77 m_httpPutResponseHopLimit = value;
78 }
81 return *this;
82 }
84 private:
85 Aws::String m_httpTokens;
86
87 int m_httpPutResponseHopLimit{0};
88 bool m_httpTokensHasBeenSet = false;
89 bool m_httpPutResponseHopLimitHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace imagebuilder
94} // 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