AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContinuousDeploymentSingleWeightConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/SessionStickinessConfig.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront
21{
22namespace Model
23{
24
32 {
33 public:
37
38 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
47 inline double GetWeight() const{ return m_weight; }
48 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
49 inline void SetWeight(double value) { m_weightHasBeenSet = true; m_weight = value; }
50 inline ContinuousDeploymentSingleWeightConfig& WithWeight(double value) { SetWeight(value); return *this;}
52
54
55 inline const SessionStickinessConfig& GetSessionStickinessConfig() const{ return m_sessionStickinessConfig; }
56 inline bool SessionStickinessConfigHasBeenSet() const { return m_sessionStickinessConfigHasBeenSet; }
57 inline void SetSessionStickinessConfig(const SessionStickinessConfig& value) { m_sessionStickinessConfigHasBeenSet = true; m_sessionStickinessConfig = value; }
58 inline void SetSessionStickinessConfig(SessionStickinessConfig&& value) { m_sessionStickinessConfigHasBeenSet = true; m_sessionStickinessConfig = std::move(value); }
62 private:
63
64 double m_weight;
65 bool m_weightHasBeenSet = false;
66
67 SessionStickinessConfig m_sessionStickinessConfig;
68 bool m_sessionStickinessConfigHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace CloudFront
73} // namespace Aws
AWS_CLOUDFRONT_API ContinuousDeploymentSingleWeightConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
ContinuousDeploymentSingleWeightConfig & WithSessionStickinessConfig(const SessionStickinessConfig &value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ContinuousDeploymentSingleWeightConfig & WithSessionStickinessConfig(SessionStickinessConfig &&value)
AWS_CLOUDFRONT_API ContinuousDeploymentSingleWeightConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)