AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InputOrigin.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/RegionName.h>
10#include <aws/lightsail/model/OriginProtocolPolicyEnum.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Lightsail
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_LIGHTSAIL_API InputOrigin();
41 AWS_LIGHTSAIL_API InputOrigin(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LIGHTSAIL_API InputOrigin& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline InputOrigin& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline InputOrigin& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline InputOrigin& WithName(const char* value) { SetName(value); return *this;}
59
61
64 inline const RegionName& GetRegionName() const{ return m_regionName; }
65 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
66 inline void SetRegionName(const RegionName& value) { m_regionNameHasBeenSet = true; m_regionName = value; }
67 inline void SetRegionName(RegionName&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); }
68 inline InputOrigin& WithRegionName(const RegionName& value) { SetRegionName(value); return *this;}
69 inline InputOrigin& WithRegionName(RegionName&& value) { SetRegionName(std::move(value)); return *this;}
71
73
77 inline const OriginProtocolPolicyEnum& GetProtocolPolicy() const{ return m_protocolPolicy; }
78 inline bool ProtocolPolicyHasBeenSet() const { return m_protocolPolicyHasBeenSet; }
79 inline void SetProtocolPolicy(const OriginProtocolPolicyEnum& value) { m_protocolPolicyHasBeenSet = true; m_protocolPolicy = value; }
80 inline void SetProtocolPolicy(OriginProtocolPolicyEnum&& value) { m_protocolPolicyHasBeenSet = true; m_protocolPolicy = std::move(value); }
81 inline InputOrigin& WithProtocolPolicy(const OriginProtocolPolicyEnum& value) { SetProtocolPolicy(value); return *this;}
82 inline InputOrigin& WithProtocolPolicy(OriginProtocolPolicyEnum&& value) { SetProtocolPolicy(std::move(value)); return *this;}
84
86
92 inline int GetResponseTimeout() const{ return m_responseTimeout; }
93 inline bool ResponseTimeoutHasBeenSet() const { return m_responseTimeoutHasBeenSet; }
94 inline void SetResponseTimeout(int value) { m_responseTimeoutHasBeenSet = true; m_responseTimeout = value; }
95 inline InputOrigin& WithResponseTimeout(int value) { SetResponseTimeout(value); return *this;}
97 private:
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 RegionName m_regionName;
103 bool m_regionNameHasBeenSet = false;
104
105 OriginProtocolPolicyEnum m_protocolPolicy;
106 bool m_protocolPolicyHasBeenSet = false;
107
108 int m_responseTimeout;
109 bool m_responseTimeoutHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Lightsail
114} // namespace Aws
InputOrigin & WithProtocolPolicy(OriginProtocolPolicyEnum &&value)
Definition InputOrigin.h:82
void SetName(const char *value)
Definition InputOrigin.h:54
InputOrigin & WithRegionName(const RegionName &value)
Definition InputOrigin.h:68
void SetRegionName(RegionName &&value)
Definition InputOrigin.h:67
InputOrigin & WithName(const char *value)
Definition InputOrigin.h:57
void SetProtocolPolicy(OriginProtocolPolicyEnum &&value)
Definition InputOrigin.h:80
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProtocolPolicy(const OriginProtocolPolicyEnum &value)
Definition InputOrigin.h:79
AWS_LIGHTSAIL_API InputOrigin(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition InputOrigin.h:53
InputOrigin & WithName(const Aws::String &value)
Definition InputOrigin.h:55
const OriginProtocolPolicyEnum & GetProtocolPolicy() const
Definition InputOrigin.h:77
void SetName(const Aws::String &value)
Definition InputOrigin.h:52
InputOrigin & WithRegionName(RegionName &&value)
Definition InputOrigin.h:69
AWS_LIGHTSAIL_API InputOrigin & operator=(Aws::Utils::Json::JsonView jsonValue)
const RegionName & GetRegionName() const
Definition InputOrigin.h:64
InputOrigin & WithProtocolPolicy(const OriginProtocolPolicyEnum &value)
Definition InputOrigin.h:81
void SetRegionName(const RegionName &value)
Definition InputOrigin.h:66
InputOrigin & WithName(Aws::String &&value)
Definition InputOrigin.h:56
InputOrigin & WithResponseTimeout(int value)
Definition InputOrigin.h:95
const Aws::String & GetName() const
Definition InputOrigin.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue