AWS SDK for C++  1.9.104
AWS SDK for C++
InputOrigin.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Lightsail
24 {
25 namespace Model
26 {
27 
38  {
39  public:
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 InputOrigin& WithName(const Aws::String& value) { SetName(value); return *this;}
75 
79  inline InputOrigin& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 
84  inline InputOrigin& WithName(const char* value) { SetName(value); return *this;}
85 
86 
90  inline const RegionName& GetRegionName() const{ return m_regionName; }
91 
95  inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
96 
100  inline void SetRegionName(const RegionName& value) { m_regionNameHasBeenSet = true; m_regionName = value; }
101 
105  inline void SetRegionName(RegionName&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); }
106 
110  inline InputOrigin& WithRegionName(const RegionName& value) { SetRegionName(value); return *this;}
111 
115  inline InputOrigin& WithRegionName(RegionName&& value) { SetRegionName(std::move(value)); return *this;}
116 
117 
122  inline const OriginProtocolPolicyEnum& GetProtocolPolicy() const{ return m_protocolPolicy; }
123 
128  inline bool ProtocolPolicyHasBeenSet() const { return m_protocolPolicyHasBeenSet; }
129 
134  inline void SetProtocolPolicy(const OriginProtocolPolicyEnum& value) { m_protocolPolicyHasBeenSet = true; m_protocolPolicy = value; }
135 
140  inline void SetProtocolPolicy(OriginProtocolPolicyEnum&& value) { m_protocolPolicyHasBeenSet = true; m_protocolPolicy = std::move(value); }
141 
146  inline InputOrigin& WithProtocolPolicy(const OriginProtocolPolicyEnum& value) { SetProtocolPolicy(value); return *this;}
147 
152  inline InputOrigin& WithProtocolPolicy(OriginProtocolPolicyEnum&& value) { SetProtocolPolicy(std::move(value)); return *this;}
153 
154  private:
155 
156  Aws::String m_name;
157  bool m_nameHasBeenSet;
158 
159  RegionName m_regionName;
160  bool m_regionNameHasBeenSet;
161 
162  OriginProtocolPolicyEnum m_protocolPolicy;
163  bool m_protocolPolicyHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace Lightsail
168 } // namespace Aws
Aws::Lightsail::Model::InputOrigin::WithProtocolPolicy
InputOrigin & WithProtocolPolicy(OriginProtocolPolicyEnum &&value)
Definition: InputOrigin.h:152
Aws::Lightsail::Model::RegionName
RegionName
Definition: RegionName.h:17
Aws::Lightsail::Model::InputOrigin::WithRegionName
InputOrigin & WithRegionName(const RegionName &value)
Definition: InputOrigin.h:110
Aws::Lightsail::Model::InputOrigin::SetName
void SetName(const Aws::String &value)
Definition: InputOrigin.h:59
Aws::Lightsail::Model::InputOrigin::SetProtocolPolicy
void SetProtocolPolicy(OriginProtocolPolicyEnum &&value)
Definition: InputOrigin.h:140
Aws::Lightsail::Model::InputOrigin::GetProtocolPolicy
const OriginProtocolPolicyEnum & GetProtocolPolicy() const
Definition: InputOrigin.h:122
Aws::Lightsail::Model::InputOrigin::GetRegionName
const RegionName & GetRegionName() const
Definition: InputOrigin.h:90
Aws::Lightsail::Model::InputOrigin::SetName
void SetName(Aws::String &&value)
Definition: InputOrigin.h:64
Aws::Lightsail::Model::InputOrigin::SetRegionName
void SetRegionName(RegionName &&value)
Definition: InputOrigin.h:105
Aws::Lightsail::Model::OriginProtocolPolicyEnum
OriginProtocolPolicyEnum
Definition: OriginProtocolPolicyEnum.h:17
Aws::Lightsail::Model::InputOrigin::operator=
InputOrigin & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::InputOrigin::NameHasBeenSet
bool NameHasBeenSet() const
Definition: InputOrigin.h:54
Aws::Lightsail::Model::InputOrigin::InputOrigin
InputOrigin(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::InputOrigin::WithName
InputOrigin & WithName(const Aws::String &value)
Definition: InputOrigin.h:74
Aws::Lightsail::Model::InputOrigin::SetProtocolPolicy
void SetProtocolPolicy(const OriginProtocolPolicyEnum &value)
Definition: InputOrigin.h:134
RegionName.h
Aws::Lightsail::Model::InputOrigin::RegionNameHasBeenSet
bool RegionNameHasBeenSet() const
Definition: InputOrigin.h:95
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Lightsail::Model::InputOrigin::WithProtocolPolicy
InputOrigin & WithProtocolPolicy(const OriginProtocolPolicyEnum &value)
Definition: InputOrigin.h:146
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::InputOrigin::SetName
void SetName(const char *value)
Definition: InputOrigin.h:69
OriginProtocolPolicyEnum.h
Lightsail_EXPORTS.h
Aws::Lightsail::Model::InputOrigin::SetRegionName
void SetRegionName(const RegionName &value)
Definition: InputOrigin.h:100
Aws::Lightsail::Model::InputOrigin::InputOrigin
InputOrigin()
Aws::Lightsail::Model::InputOrigin::WithRegionName
InputOrigin & WithRegionName(RegionName &&value)
Definition: InputOrigin.h:115
Aws::Lightsail::Model::InputOrigin::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::InputOrigin::WithName
InputOrigin & WithName(const char *value)
Definition: InputOrigin.h:84
Aws::Lightsail::Model::InputOrigin
Definition: InputOrigin.h:38
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::InputOrigin::WithName
InputOrigin & WithName(Aws::String &&value)
Definition: InputOrigin.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::InputOrigin::GetName
const Aws::String & GetName() const
Definition: InputOrigin.h:49
Aws::Lightsail::Model::InputOrigin::ProtocolPolicyHasBeenSet
bool ProtocolPolicyHasBeenSet() const
Definition: InputOrigin.h:128