AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
CidrCollectionChange.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/route53/Route53_EXPORTS.h>
10#include <aws/route53/model/CidrCollectionChangeAction.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace Route53 {
21namespace Model {
22
30 public:
31 AWS_ROUTE53_API CidrCollectionChange() = default;
32 AWS_ROUTE53_API CidrCollectionChange(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
36
38
41 inline const Aws::String& GetLocationName() const { return m_locationName; }
42 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
43 template <typename LocationNameT = Aws::String>
44 void SetLocationName(LocationNameT&& value) {
45 m_locationNameHasBeenSet = true;
46 m_locationName = std::forward<LocationNameT>(value);
47 }
48 template <typename LocationNameT = Aws::String>
49 CidrCollectionChange& WithLocationName(LocationNameT&& value) {
50 SetLocationName(std::forward<LocationNameT>(value));
51 return *this;
52 }
54
56
59 inline CidrCollectionChangeAction GetAction() const { return m_action; }
60 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
62 m_actionHasBeenSet = true;
63 m_action = value;
64 }
66 SetAction(value);
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Aws::String>& GetCidrList() const { return m_cidrList; }
76 inline bool CidrListHasBeenSet() const { return m_cidrListHasBeenSet; }
77 template <typename CidrListT = Aws::Vector<Aws::String>>
78 void SetCidrList(CidrListT&& value) {
79 m_cidrListHasBeenSet = true;
80 m_cidrList = std::forward<CidrListT>(value);
81 }
82 template <typename CidrListT = Aws::Vector<Aws::String>>
83 CidrCollectionChange& WithCidrList(CidrListT&& value) {
84 SetCidrList(std::forward<CidrListT>(value));
85 return *this;
86 }
87 template <typename CidrListT = Aws::String>
88 CidrCollectionChange& AddCidrList(CidrListT&& value) {
89 m_cidrListHasBeenSet = true;
90 m_cidrList.emplace_back(std::forward<CidrListT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_locationName;
96
98
99 Aws::Vector<Aws::String> m_cidrList;
100 bool m_locationNameHasBeenSet = false;
101 bool m_actionHasBeenSet = false;
102 bool m_cidrListHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Route53
107} // namespace Aws
CidrCollectionChange & WithAction(CidrCollectionChangeAction value)
CidrCollectionChange & WithLocationName(LocationNameT &&value)
AWS_ROUTE53_API CidrCollectionChange(const Aws::Utils::Xml::XmlNode &xmlNode)
CidrCollectionChange & WithCidrList(CidrListT &&value)
CidrCollectionChange & AddCidrList(CidrListT &&value)
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CidrCollectionChangeAction GetAction() const
const Aws::Vector< Aws::String > & GetCidrList() const
void SetAction(CidrCollectionChangeAction value)
AWS_ROUTE53_API CidrCollectionChange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ROUTE53_API CidrCollectionChange()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector