AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrafficConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/ContinuousDeploymentSingleWeightConfig.h>
9#include <aws/cloudfront/model/ContinuousDeploymentSingleHeaderConfig.h>
10#include <aws/cloudfront/model/ContinuousDeploymentPolicyType.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
34 {
35 public:
36 AWS_CLOUDFRONT_API TrafficConfig();
37 AWS_CLOUDFRONT_API TrafficConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFRONT_API TrafficConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
47 inline const ContinuousDeploymentSingleWeightConfig& GetSingleWeightConfig() const{ return m_singleWeightConfig; }
48 inline bool SingleWeightConfigHasBeenSet() const { return m_singleWeightConfigHasBeenSet; }
49 inline void SetSingleWeightConfig(const ContinuousDeploymentSingleWeightConfig& value) { m_singleWeightConfigHasBeenSet = true; m_singleWeightConfig = value; }
50 inline void SetSingleWeightConfig(ContinuousDeploymentSingleWeightConfig&& value) { m_singleWeightConfigHasBeenSet = true; m_singleWeightConfig = std::move(value); }
54
56
59 inline const ContinuousDeploymentSingleHeaderConfig& GetSingleHeaderConfig() const{ return m_singleHeaderConfig; }
60 inline bool SingleHeaderConfigHasBeenSet() const { return m_singleHeaderConfigHasBeenSet; }
61 inline void SetSingleHeaderConfig(const ContinuousDeploymentSingleHeaderConfig& value) { m_singleHeaderConfigHasBeenSet = true; m_singleHeaderConfig = value; }
62 inline void SetSingleHeaderConfig(ContinuousDeploymentSingleHeaderConfig&& value) { m_singleHeaderConfigHasBeenSet = true; m_singleHeaderConfig = std::move(value); }
66
68
71 inline const ContinuousDeploymentPolicyType& GetType() const{ return m_type; }
72 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
73 inline void SetType(const ContinuousDeploymentPolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
74 inline void SetType(ContinuousDeploymentPolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
75 inline TrafficConfig& WithType(const ContinuousDeploymentPolicyType& value) { SetType(value); return *this;}
76 inline TrafficConfig& WithType(ContinuousDeploymentPolicyType&& value) { SetType(std::move(value)); return *this;}
78 private:
79
80 ContinuousDeploymentSingleWeightConfig m_singleWeightConfig;
81 bool m_singleWeightConfigHasBeenSet = false;
82
83 ContinuousDeploymentSingleHeaderConfig m_singleHeaderConfig;
84 bool m_singleHeaderConfigHasBeenSet = false;
85
87 bool m_typeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CloudFront
92} // namespace Aws
void SetSingleHeaderConfig(ContinuousDeploymentSingleHeaderConfig &&value)
TrafficConfig & WithType(const ContinuousDeploymentPolicyType &value)
AWS_CLOUDFRONT_API TrafficConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const ContinuousDeploymentSingleWeightConfig & GetSingleWeightConfig() const
void SetSingleWeightConfig(ContinuousDeploymentSingleWeightConfig &&value)
void SetType(const ContinuousDeploymentPolicyType &value)
TrafficConfig & WithSingleWeightConfig(ContinuousDeploymentSingleWeightConfig &&value)
const ContinuousDeploymentSingleHeaderConfig & GetSingleHeaderConfig() const
TrafficConfig & WithType(ContinuousDeploymentPolicyType &&value)
const ContinuousDeploymentPolicyType & GetType() const
AWS_CLOUDFRONT_API TrafficConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
TrafficConfig & WithSingleHeaderConfig(ContinuousDeploymentSingleHeaderConfig &&value)
TrafficConfig & WithSingleWeightConfig(const ContinuousDeploymentSingleWeightConfig &value)
void SetSingleWeightConfig(const ContinuousDeploymentSingleWeightConfig &value)
void SetSingleHeaderConfig(const ContinuousDeploymentSingleHeaderConfig &value)
TrafficConfig & WithSingleHeaderConfig(const ContinuousDeploymentSingleHeaderConfig &value)
void SetType(ContinuousDeploymentPolicyType &&value)