AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceMetadataOptions.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace imagebuilder
22{
23namespace Model
24{
25
40 {
41 public:
42 AWS_IMAGEBUILDER_API InstanceMetadataOptions();
43 AWS_IMAGEBUILDER_API InstanceMetadataOptions(Aws::Utils::Json::JsonView jsonValue);
45 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
59 inline const Aws::String& GetHttpTokens() const{ return m_httpTokens; }
60 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
61 inline void SetHttpTokens(const Aws::String& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
62 inline void SetHttpTokens(Aws::String&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
63 inline void SetHttpTokens(const char* value) { m_httpTokensHasBeenSet = true; m_httpTokens.assign(value); }
64 inline InstanceMetadataOptions& WithHttpTokens(const Aws::String& value) { SetHttpTokens(value); return *this;}
65 inline InstanceMetadataOptions& WithHttpTokens(Aws::String&& value) { SetHttpTokens(std::move(value)); return *this;}
66 inline InstanceMetadataOptions& WithHttpTokens(const char* value) { SetHttpTokens(value); return *this;}
68
70
75 inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
76 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
77 inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
80 private:
81
82 Aws::String m_httpTokens;
83 bool m_httpTokensHasBeenSet = false;
84
85 int m_httpPutResponseHopLimit;
86 bool m_httpPutResponseHopLimitHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace imagebuilder
91} // namespace Aws
InstanceMetadataOptions & WithHttpTokens(Aws::String &&value)
InstanceMetadataOptions & WithHttpPutResponseHopLimit(int value)
AWS_IMAGEBUILDER_API InstanceMetadataOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API InstanceMetadataOptions(Aws::Utils::Json::JsonView jsonValue)
InstanceMetadataOptions & WithHttpTokens(const char *value)
InstanceMetadataOptions & WithHttpTokens(const Aws::String &value)
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