AWS SDK for C++  1.9.20
AWS SDK for C++
OriginGroup.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 Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace CloudFront
23 {
24 namespace Model
25 {
26 
38  {
39  public:
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
46 
50  inline const Aws::String& GetId() const{ return m_id; }
51 
55  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
56 
60  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
61 
65  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
66 
70  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
71 
75  inline OriginGroup& WithId(const Aws::String& value) { SetId(value); return *this;}
76 
80  inline OriginGroup& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
81 
85  inline OriginGroup& WithId(const char* value) { SetId(value); return *this;}
86 
87 
92  inline const OriginGroupFailoverCriteria& GetFailoverCriteria() const{ return m_failoverCriteria; }
93 
98  inline bool FailoverCriteriaHasBeenSet() const { return m_failoverCriteriaHasBeenSet; }
99 
104  inline void SetFailoverCriteria(const OriginGroupFailoverCriteria& value) { m_failoverCriteriaHasBeenSet = true; m_failoverCriteria = value; }
105 
110  inline void SetFailoverCriteria(OriginGroupFailoverCriteria&& value) { m_failoverCriteriaHasBeenSet = true; m_failoverCriteria = std::move(value); }
111 
116  inline OriginGroup& WithFailoverCriteria(const OriginGroupFailoverCriteria& value) { SetFailoverCriteria(value); return *this;}
117 
122  inline OriginGroup& WithFailoverCriteria(OriginGroupFailoverCriteria&& value) { SetFailoverCriteria(std::move(value)); return *this;}
123 
124 
129  inline const OriginGroupMembers& GetMembers() const{ return m_members; }
130 
135  inline bool MembersHasBeenSet() const { return m_membersHasBeenSet; }
136 
141  inline void SetMembers(const OriginGroupMembers& value) { m_membersHasBeenSet = true; m_members = value; }
142 
147  inline void SetMembers(OriginGroupMembers&& value) { m_membersHasBeenSet = true; m_members = std::move(value); }
148 
153  inline OriginGroup& WithMembers(const OriginGroupMembers& value) { SetMembers(value); return *this;}
154 
159  inline OriginGroup& WithMembers(OriginGroupMembers&& value) { SetMembers(std::move(value)); return *this;}
160 
161  private:
162 
163  Aws::String m_id;
164  bool m_idHasBeenSet;
165 
166  OriginGroupFailoverCriteria m_failoverCriteria;
167  bool m_failoverCriteriaHasBeenSet;
168 
169  OriginGroupMembers m_members;
170  bool m_membersHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace CloudFront
175 } // namespace Aws
Aws::CloudFront::Model::OriginGroup::GetFailoverCriteria
const OriginGroupFailoverCriteria & GetFailoverCriteria() const
Definition: OriginGroup.h:92
Aws::CloudFront::Model::OriginGroup
Definition: OriginGroup.h:38
Aws::CloudFront::Model::OriginGroup::WithId
OriginGroup & WithId(Aws::String &&value)
Definition: OriginGroup.h:80
Aws::CloudFront::Model::OriginGroup::WithId
OriginGroup & WithId(const Aws::String &value)
Definition: OriginGroup.h:75
OriginGroupFailoverCriteria.h
Aws::CloudFront::Model::OriginGroupMembers
Definition: OriginGroupMembers.h:33
Aws::CloudFront::Model::OriginGroup::SetId
void SetId(const Aws::String &value)
Definition: OriginGroup.h:60
Aws::CloudFront::Model::OriginGroup::SetMembers
void SetMembers(OriginGroupMembers &&value)
Definition: OriginGroup.h:147
Aws::CloudFront::Model::OriginGroup::OriginGroup
OriginGroup()
Aws::CloudFront::Model::OriginGroup::SetId
void SetId(Aws::String &&value)
Definition: OriginGroup.h:65
Aws::CloudFront::Model::OriginGroup::SetId
void SetId(const char *value)
Definition: OriginGroup.h:70
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::OriginGroup::WithId
OriginGroup & WithId(const char *value)
Definition: OriginGroup.h:85
OriginGroupMembers.h
Aws::CloudFront::Model::OriginGroup::WithMembers
OriginGroup & WithMembers(OriginGroupMembers &&value)
Definition: OriginGroup.h:159
Aws::CloudFront::Model::OriginGroup::IdHasBeenSet
bool IdHasBeenSet() const
Definition: OriginGroup.h:55
Aws::CloudFront::Model::OriginGroup::SetMembers
void SetMembers(const OriginGroupMembers &value)
Definition: OriginGroup.h:141
AWSString.h
Aws::CloudFront::Model::OriginGroup::WithMembers
OriginGroup & WithMembers(const OriginGroupMembers &value)
Definition: OriginGroup.h:153
Aws::CloudFront::Model::OriginGroup::WithFailoverCriteria
OriginGroup & WithFailoverCriteria(const OriginGroupFailoverCriteria &value)
Definition: OriginGroup.h:116
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::OriginGroup::FailoverCriteriaHasBeenSet
bool FailoverCriteriaHasBeenSet() const
Definition: OriginGroup.h:98
Aws::CloudFront::Model::OriginGroup::operator=
OriginGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginGroup::GetMembers
const OriginGroupMembers & GetMembers() const
Definition: OriginGroup.h:129
Aws::CloudFront::Model::OriginGroup::WithFailoverCriteria
OriginGroup & WithFailoverCriteria(OriginGroupFailoverCriteria &&value)
Definition: OriginGroup.h:122
CloudFront_EXPORTS.h
Aws::CloudFront::Model::OriginGroup::SetFailoverCriteria
void SetFailoverCriteria(const OriginGroupFailoverCriteria &value)
Definition: OriginGroup.h:104
Aws::CloudFront::Model::OriginGroup::SetFailoverCriteria
void SetFailoverCriteria(OriginGroupFailoverCriteria &&value)
Definition: OriginGroup.h:110
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::OriginGroupFailoverCriteria
Definition: OriginGroupFailoverCriteria.h:33
Aws::CloudFront::Model::OriginGroup::OriginGroup
OriginGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginGroup::GetId
const Aws::String & GetId() const
Definition: OriginGroup.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::OriginGroup::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::OriginGroup::MembersHasBeenSet
bool MembersHasBeenSet() const
Definition: OriginGroup.h:135