AWS SDK for C++

AWS SDK for C++ Version 1.11.853

Loading...
Searching...
No Matches
SourceIpConditionConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11#include <aws/elasticloadbalancingv2/model/SourceIpAddressTypeEnum.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticLoadBalancingv2 {
22namespace Model {
23
36 public:
37 AWS_ELASTICLOADBALANCINGV2_API SourceIpConditionConfig() = default;
38 AWS_ELASTICLOADBALANCINGV2_API SourceIpConditionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICLOADBALANCINGV2_API SourceIpConditionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
42 const char* locationValue) const;
43 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
46
57 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
58 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
59 template <typename ValuesT = Aws::Vector<Aws::String>>
60 void SetValues(ValuesT&& value) {
61 m_valuesHasBeenSet = true;
62 m_values = std::forward<ValuesT>(value);
63 }
64 template <typename ValuesT = Aws::Vector<Aws::String>>
66 SetValues(std::forward<ValuesT>(value));
67 return *this;
68 }
69 template <typename ValuesT = Aws::String>
71 m_valuesHasBeenSet = true;
72 m_values.emplace_back(std::forward<ValuesT>(value));
73 return *this;
74 }
76
78
83 inline SourceIpAddressTypeEnum GetIpAddressType() const { return m_ipAddressType; }
84 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
86 m_ipAddressTypeHasBeenSet = true;
87 m_ipAddressType = value;
88 }
90 SetIpAddressType(value);
91 return *this;
92 }
94 private:
96
98 bool m_valuesHasBeenSet = false;
99 bool m_ipAddressTypeHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace ElasticLoadBalancingv2
104} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API SourceIpConditionConfig()=default
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API SourceIpConditionConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API SourceIpConditionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SourceIpConditionConfig & WithIpAddressType(SourceIpAddressTypeEnum value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream