AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OriginGroup.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudfront/model/OriginGroupFailoverCriteria.h>
10#include <aws/cloudfront/model/OriginGroupMembers.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_CLOUDFRONT_API OriginGroup();
41 AWS_CLOUDFRONT_API OriginGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_CLOUDFRONT_API OriginGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
46
48
51 inline const Aws::String& GetId() const{ return m_id; }
52 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
55 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
56 inline OriginGroup& WithId(const Aws::String& value) { SetId(value); return *this;}
57 inline OriginGroup& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
58 inline OriginGroup& WithId(const char* value) { SetId(value); return *this;}
60
62
66 inline const OriginGroupFailoverCriteria& GetFailoverCriteria() const{ return m_failoverCriteria; }
67 inline bool FailoverCriteriaHasBeenSet() const { return m_failoverCriteriaHasBeenSet; }
68 inline void SetFailoverCriteria(const OriginGroupFailoverCriteria& value) { m_failoverCriteriaHasBeenSet = true; m_failoverCriteria = value; }
69 inline void SetFailoverCriteria(OriginGroupFailoverCriteria&& value) { m_failoverCriteriaHasBeenSet = true; m_failoverCriteria = std::move(value); }
71 inline OriginGroup& WithFailoverCriteria(OriginGroupFailoverCriteria&& value) { SetFailoverCriteria(std::move(value)); return *this;}
73
75
79 inline const OriginGroupMembers& GetMembers() const{ return m_members; }
80 inline bool MembersHasBeenSet() const { return m_membersHasBeenSet; }
81 inline void SetMembers(const OriginGroupMembers& value) { m_membersHasBeenSet = true; m_members = value; }
82 inline void SetMembers(OriginGroupMembers&& value) { m_membersHasBeenSet = true; m_members = std::move(value); }
83 inline OriginGroup& WithMembers(const OriginGroupMembers& value) { SetMembers(value); return *this;}
84 inline OriginGroup& WithMembers(OriginGroupMembers&& value) { SetMembers(std::move(value)); return *this;}
86 private:
87
88 Aws::String m_id;
89 bool m_idHasBeenSet = false;
90
91 OriginGroupFailoverCriteria m_failoverCriteria;
92 bool m_failoverCriteriaHasBeenSet = false;
93
94 OriginGroupMembers m_members;
95 bool m_membersHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CloudFront
100} // namespace Aws
void SetId(Aws::String &&value)
Definition OriginGroup.h:54
void SetFailoverCriteria(const OriginGroupFailoverCriteria &value)
Definition OriginGroup.h:68
OriginGroup & WithId(Aws::String &&value)
Definition OriginGroup.h:57
OriginGroup & WithMembers(const OriginGroupMembers &value)
Definition OriginGroup.h:83
OriginGroup & WithMembers(OriginGroupMembers &&value)
Definition OriginGroup.h:84
OriginGroup & WithFailoverCriteria(const OriginGroupFailoverCriteria &value)
Definition OriginGroup.h:70
void SetId(const Aws::String &value)
Definition OriginGroup.h:53
const Aws::String & GetId() const
Definition OriginGroup.h:51
AWS_CLOUDFRONT_API OriginGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFailoverCriteria(OriginGroupFailoverCriteria &&value)
Definition OriginGroup.h:69
OriginGroup & WithFailoverCriteria(OriginGroupFailoverCriteria &&value)
Definition OriginGroup.h:71
AWS_CLOUDFRONT_API OriginGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetMembers(const OriginGroupMembers &value)
Definition OriginGroup.h:81
void SetId(const char *value)
Definition OriginGroup.h:55
OriginGroup & WithId(const Aws::String &value)
Definition OriginGroup.h:56
OriginGroup & WithId(const char *value)
Definition OriginGroup.h:58
void SetMembers(OriginGroupMembers &&value)
Definition OriginGroup.h:82
const OriginGroupFailoverCriteria & GetFailoverCriteria() const
Definition OriginGroup.h:66
AWS_CLOUDFRONT_API OriginGroup()
const OriginGroupMembers & GetMembers() const
Definition OriginGroup.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String