AWS SDK for C++  1.9.129
AWS SDK for C++
OriginGroupFailoverCriteria.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace CloudFront
21 {
22 namespace Model
23 {
24 
33  {
34  public:
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
46  inline const StatusCodes& GetStatusCodes() const{ return m_statusCodes; }
47 
52  inline bool StatusCodesHasBeenSet() const { return m_statusCodesHasBeenSet; }
53 
58  inline void SetStatusCodes(const StatusCodes& value) { m_statusCodesHasBeenSet = true; m_statusCodes = value; }
59 
64  inline void SetStatusCodes(StatusCodes&& value) { m_statusCodesHasBeenSet = true; m_statusCodes = std::move(value); }
65 
70  inline OriginGroupFailoverCriteria& WithStatusCodes(const StatusCodes& value) { SetStatusCodes(value); return *this;}
71 
76  inline OriginGroupFailoverCriteria& WithStatusCodes(StatusCodes&& value) { SetStatusCodes(std::move(value)); return *this;}
77 
78  private:
79 
80  StatusCodes m_statusCodes;
81  bool m_statusCodesHasBeenSet;
82  };
83 
84 } // namespace Model
85 } // namespace CloudFront
86 } // namespace Aws
Aws::CloudFront::Model::OriginGroupFailoverCriteria::StatusCodesHasBeenSet
bool StatusCodesHasBeenSet() const
Definition: OriginGroupFailoverCriteria.h:52
Aws::CloudFront::Model::OriginGroupFailoverCriteria::WithStatusCodes
OriginGroupFailoverCriteria & WithStatusCodes(const StatusCodes &value)
Definition: OriginGroupFailoverCriteria.h:70
Aws::CloudFront::Model::OriginGroupFailoverCriteria::OriginGroupFailoverCriteria
OriginGroupFailoverCriteria()
Aws::CloudFront::Model::OriginGroupFailoverCriteria::OriginGroupFailoverCriteria
OriginGroupFailoverCriteria(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::StatusCodes
Definition: StatusCodes.h:33
StatusCodes.h
Aws::CloudFront::Model::OriginGroupFailoverCriteria::SetStatusCodes
void SetStatusCodes(StatusCodes &&value)
Definition: OriginGroupFailoverCriteria.h:64
Aws::CloudFront::Model::OriginGroupFailoverCriteria::SetStatusCodes
void SetStatusCodes(const StatusCodes &value)
Definition: OriginGroupFailoverCriteria.h:58
Aws::CloudFront::Model::OriginGroupFailoverCriteria::WithStatusCodes
OriginGroupFailoverCriteria & WithStatusCodes(StatusCodes &&value)
Definition: OriginGroupFailoverCriteria.h:76
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::OriginGroupFailoverCriteria::operator=
OriginGroupFailoverCriteria & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::OriginGroupFailoverCriteria
Definition: OriginGroupFailoverCriteria.h:33
Aws::CloudFront::Model::OriginGroupFailoverCriteria::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::OriginGroupFailoverCriteria::GetStatusCodes
const StatusCodes & GetStatusCodes() const
Definition: OriginGroupFailoverCriteria.h:46