AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RoutingRule.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/Condition.h>
9#include <aws/s3-crt/model/Redirect.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Crt
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_S3CRT_API RoutingRule();
39 AWS_S3CRT_API RoutingRule(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_S3CRT_API RoutingRule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
53 inline const Condition& GetCondition() const{ return m_condition; }
54 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
55 inline void SetCondition(const Condition& value) { m_conditionHasBeenSet = true; m_condition = value; }
56 inline void SetCondition(Condition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
57 inline RoutingRule& WithCondition(const Condition& value) { SetCondition(value); return *this;}
58 inline RoutingRule& WithCondition(Condition&& value) { SetCondition(std::move(value)); return *this;}
60
62
67 inline const Redirect& GetRedirect() const{ return m_redirect; }
68 inline bool RedirectHasBeenSet() const { return m_redirectHasBeenSet; }
69 inline void SetRedirect(const Redirect& value) { m_redirectHasBeenSet = true; m_redirect = value; }
70 inline void SetRedirect(Redirect&& value) { m_redirectHasBeenSet = true; m_redirect = std::move(value); }
71 inline RoutingRule& WithRedirect(const Redirect& value) { SetRedirect(value); return *this;}
72 inline RoutingRule& WithRedirect(Redirect&& value) { SetRedirect(std::move(value)); return *this;}
74 private:
75
76 Condition m_condition;
77 bool m_conditionHasBeenSet = false;
78
79 Redirect m_redirect;
80 bool m_redirectHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace S3Crt
85} // namespace Aws
RoutingRule & WithCondition(const Condition &value)
Definition RoutingRule.h:57
RoutingRule & WithRedirect(Redirect &&value)
Definition RoutingRule.h:72
void SetCondition(const Condition &value)
Definition RoutingRule.h:55
void SetRedirect(Redirect &&value)
Definition RoutingRule.h:70
const Condition & GetCondition() const
Definition RoutingRule.h:53
RoutingRule & WithRedirect(const Redirect &value)
Definition RoutingRule.h:71
AWS_S3CRT_API RoutingRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CRT_API RoutingRule(const Aws::Utils::Xml::XmlNode &xmlNode)
const Redirect & GetRedirect() const
Definition RoutingRule.h:67
void SetRedirect(const Redirect &value)
Definition RoutingRule.h:69
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
RoutingRule & WithCondition(Condition &&value)
Definition RoutingRule.h:58
void SetCondition(Condition &&value)
Definition RoutingRule.h:56