AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Origin.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/ResourceType.h>
10#include <aws/lightsail/model/RegionName.h>
11#include <aws/lightsail/model/OriginProtocolPolicyEnum.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail
25{
26namespace Model
27{
28
38 class Origin
39 {
40 public:
41 AWS_LIGHTSAIL_API Origin();
42 AWS_LIGHTSAIL_API Origin(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LIGHTSAIL_API Origin& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline Origin& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline Origin& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline Origin& WithName(const char* value) { SetName(value); return *this;}
60
62
65 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
66 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
67 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
68 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
69 inline Origin& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
70 inline Origin& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
72
74
77 inline const RegionName& GetRegionName() const{ return m_regionName; }
78 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
79 inline void SetRegionName(const RegionName& value) { m_regionNameHasBeenSet = true; m_regionName = value; }
80 inline void SetRegionName(RegionName&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); }
81 inline Origin& WithRegionName(const RegionName& value) { SetRegionName(value); return *this;}
82 inline Origin& WithRegionName(RegionName&& value) { SetRegionName(std::move(value)); return *this;}
84
86
90 inline const OriginProtocolPolicyEnum& GetProtocolPolicy() const{ return m_protocolPolicy; }
91 inline bool ProtocolPolicyHasBeenSet() const { return m_protocolPolicyHasBeenSet; }
92 inline void SetProtocolPolicy(const OriginProtocolPolicyEnum& value) { m_protocolPolicyHasBeenSet = true; m_protocolPolicy = value; }
93 inline void SetProtocolPolicy(OriginProtocolPolicyEnum&& value) { m_protocolPolicyHasBeenSet = true; m_protocolPolicy = std::move(value); }
94 inline Origin& WithProtocolPolicy(const OriginProtocolPolicyEnum& value) { SetProtocolPolicy(value); return *this;}
95 inline Origin& WithProtocolPolicy(OriginProtocolPolicyEnum&& value) { SetProtocolPolicy(std::move(value)); return *this;}
97
99
105 inline int GetResponseTimeout() const{ return m_responseTimeout; }
106 inline bool ResponseTimeoutHasBeenSet() const { return m_responseTimeoutHasBeenSet; }
107 inline void SetResponseTimeout(int value) { m_responseTimeoutHasBeenSet = true; m_responseTimeout = value; }
108 inline Origin& WithResponseTimeout(int value) { SetResponseTimeout(value); return *this;}
110 private:
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114
115 ResourceType m_resourceType;
116 bool m_resourceTypeHasBeenSet = false;
117
118 RegionName m_regionName;
119 bool m_regionNameHasBeenSet = false;
120
121 OriginProtocolPolicyEnum m_protocolPolicy;
122 bool m_protocolPolicyHasBeenSet = false;
123
124 int m_responseTimeout;
125 bool m_responseTimeoutHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Lightsail
130} // namespace Aws
int GetResponseTimeout() const
Definition Origin.h:105
AWS_LIGHTSAIL_API Origin()
const RegionName & GetRegionName() const
Definition Origin.h:77
bool ProtocolPolicyHasBeenSet() const
Definition Origin.h:91
void SetRegionName(const RegionName &value)
Definition Origin.h:79
void SetName(Aws::String &&value)
Definition Origin.h:54
AWS_LIGHTSAIL_API Origin(Aws::Utils::Json::JsonView jsonValue)
void SetResourceType(const ResourceType &value)
Definition Origin.h:67
void SetName(const char *value)
Definition Origin.h:55
bool NameHasBeenSet() const
Definition Origin.h:52
Origin & WithResponseTimeout(int value)
Definition Origin.h:108
void SetName(const Aws::String &value)
Definition Origin.h:53
void SetRegionName(RegionName &&value)
Definition Origin.h:80
bool ResponseTimeoutHasBeenSet() const
Definition Origin.h:106
Origin & WithProtocolPolicy(OriginProtocolPolicyEnum &&value)
Definition Origin.h:95
bool RegionNameHasBeenSet() const
Definition Origin.h:78
Origin & WithResourceType(const ResourceType &value)
Definition Origin.h:69
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Origin & WithResourceType(ResourceType &&value)
Definition Origin.h:70
Origin & WithName(const Aws::String &value)
Definition Origin.h:56
void SetResponseTimeout(int value)
Definition Origin.h:107
Origin & WithName(const char *value)
Definition Origin.h:58
Origin & WithProtocolPolicy(const OriginProtocolPolicyEnum &value)
Definition Origin.h:94
AWS_LIGHTSAIL_API Origin & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProtocolPolicy(OriginProtocolPolicyEnum &&value)
Definition Origin.h:93
void SetProtocolPolicy(const OriginProtocolPolicyEnum &value)
Definition Origin.h:92
const OriginProtocolPolicyEnum & GetProtocolPolicy() const
Definition Origin.h:90
bool ResourceTypeHasBeenSet() const
Definition Origin.h:66
void SetResourceType(ResourceType &&value)
Definition Origin.h:68
Origin & WithName(Aws::String &&value)
Definition Origin.h:57
const ResourceType & GetResourceType() const
Definition Origin.h:65
Origin & WithRegionName(RegionName &&value)
Definition Origin.h:82
const Aws::String & GetName() const
Definition Origin.h:51
Origin & WithRegionName(const RegionName &value)
Definition Origin.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue