AWS SDK for C++  1.9.104
AWS SDK for C++
Origin.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Lightsail
25 {
26 namespace Model
27 {
28 
38  {
39  public:
40  Origin();
44 
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
59  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 
69  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 
74  inline Origin& WithName(const Aws::String& value) { SetName(value); return *this;}
75 
79  inline Origin& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 
84  inline Origin& WithName(const char* value) { SetName(value); return *this;}
85 
86 
90  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
91 
95  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
96 
100  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
101 
105  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
106 
110  inline Origin& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
111 
115  inline Origin& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
116 
117 
121  inline const RegionName& GetRegionName() const{ return m_regionName; }
122 
126  inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
127 
131  inline void SetRegionName(const RegionName& value) { m_regionNameHasBeenSet = true; m_regionName = value; }
132 
136  inline void SetRegionName(RegionName&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); }
137 
141  inline Origin& WithRegionName(const RegionName& value) { SetRegionName(value); return *this;}
142 
146  inline Origin& WithRegionName(RegionName&& value) { SetRegionName(std::move(value)); return *this;}
147 
148 
153  inline const OriginProtocolPolicyEnum& GetProtocolPolicy() const{ return m_protocolPolicy; }
154 
159  inline bool ProtocolPolicyHasBeenSet() const { return m_protocolPolicyHasBeenSet; }
160 
165  inline void SetProtocolPolicy(const OriginProtocolPolicyEnum& value) { m_protocolPolicyHasBeenSet = true; m_protocolPolicy = value; }
166 
171  inline void SetProtocolPolicy(OriginProtocolPolicyEnum&& value) { m_protocolPolicyHasBeenSet = true; m_protocolPolicy = std::move(value); }
172 
177  inline Origin& WithProtocolPolicy(const OriginProtocolPolicyEnum& value) { SetProtocolPolicy(value); return *this;}
178 
183  inline Origin& WithProtocolPolicy(OriginProtocolPolicyEnum&& value) { SetProtocolPolicy(std::move(value)); return *this;}
184 
185  private:
186 
187  Aws::String m_name;
188  bool m_nameHasBeenSet;
189 
190  ResourceType m_resourceType;
191  bool m_resourceTypeHasBeenSet;
192 
193  RegionName m_regionName;
194  bool m_regionNameHasBeenSet;
195 
196  OriginProtocolPolicyEnum m_protocolPolicy;
197  bool m_protocolPolicyHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace Lightsail
202 } // namespace Aws
Aws::Lightsail::Model::Origin::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: Origin.h:100
Aws::Lightsail::Model::Origin
Definition: Origin.h:38
Aws::Lightsail::Model::Origin::GetName
const Aws::String & GetName() const
Definition: Origin.h:49
Aws::Lightsail::Model::Origin::WithResourceType
Origin & WithResourceType(const ResourceType &value)
Definition: Origin.h:110
Aws::Lightsail::Model::Origin::WithName
Origin & WithName(Aws::String &&value)
Definition: Origin.h:79
Aws::Lightsail::Model::RegionName
RegionName
Definition: RegionName.h:17
Aws::Lightsail::Model::Origin::SetRegionName
void SetRegionName(const RegionName &value)
Definition: Origin.h:131
Aws::Lightsail::Model::Origin::WithProtocolPolicy
Origin & WithProtocolPolicy(const OriginProtocolPolicyEnum &value)
Definition: Origin.h:177
ResourceType.h
Aws::Lightsail::Model::Origin::WithName
Origin & WithName(const Aws::String &value)
Definition: Origin.h:74
Aws::Lightsail::Model::Origin::Origin
Origin()
Aws::Lightsail::Model::Origin::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: Origin.h:105
Aws::Lightsail::Model::Origin::GetProtocolPolicy
const OriginProtocolPolicyEnum & GetProtocolPolicy() const
Definition: Origin.h:153
Aws::Lightsail::Model::Origin::Origin
Origin(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::Origin::SetRegionName
void SetRegionName(RegionName &&value)
Definition: Origin.h:136
Aws::Lightsail::Model::Origin::operator=
Origin & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::Origin::WithRegionName
Origin & WithRegionName(const RegionName &value)
Definition: Origin.h:141
Aws::Lightsail::Model::OriginProtocolPolicyEnum
OriginProtocolPolicyEnum
Definition: OriginProtocolPolicyEnum.h:17
Aws::Lightsail::Model::Origin::WithResourceType
Origin & WithResourceType(ResourceType &&value)
Definition: Origin.h:115
Aws::Lightsail::Model::Origin::SetProtocolPolicy
void SetProtocolPolicy(OriginProtocolPolicyEnum &&value)
Definition: Origin.h:171
Aws::Lightsail::Model::Origin::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Origin.h:54
Aws::Lightsail::Model::Origin::SetName
void SetName(const Aws::String &value)
Definition: Origin.h:59
Aws::Lightsail::Model::Origin::WithRegionName
Origin & WithRegionName(RegionName &&value)
Definition: Origin.h:146
Aws::Lightsail::Model::Origin::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: Origin.h:95
Aws::Lightsail::Model::Origin::SetName
void SetName(const char *value)
Definition: Origin.h:69
RegionName.h
Aws::Lightsail::Model::Origin::WithProtocolPolicy
Origin & WithProtocolPolicy(OriginProtocolPolicyEnum &&value)
Definition: Origin.h:183
Aws::Lightsail::Model::Origin::GetResourceType
const ResourceType & GetResourceType() const
Definition: Origin.h:90
Aws::Lightsail::Model::Origin::ProtocolPolicyHasBeenSet
bool ProtocolPolicyHasBeenSet() const
Definition: Origin.h:159
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
OriginProtocolPolicyEnum.h
Aws::Lightsail::Model::Origin::GetRegionName
const RegionName & GetRegionName() const
Definition: Origin.h:121
Aws::Lightsail::Model::Origin::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Lightsail_EXPORTS.h
Aws::Lightsail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::Origin::RegionNameHasBeenSet
bool RegionNameHasBeenSet() const
Definition: Origin.h:126
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::Origin::SetProtocolPolicy
void SetProtocolPolicy(const OriginProtocolPolicyEnum &value)
Definition: Origin.h:165
Aws::Lightsail::Model::Origin::SetName
void SetName(Aws::String &&value)
Definition: Origin.h:64
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::Origin::WithName
Origin & WithName(const char *value)
Definition: Origin.h:84