AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CidrCollectionChange.h
1
6#pragma once
7#include <aws/route53/Route53_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53/model/CidrCollectionChangeAction.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Route53
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ROUTE53_API CidrCollectionChange() = default;
37 AWS_ROUTE53_API CidrCollectionChange(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
47 inline const Aws::String& GetLocationName() const { return m_locationName; }
48 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
49 template<typename LocationNameT = Aws::String>
50 void SetLocationName(LocationNameT&& value) { m_locationNameHasBeenSet = true; m_locationName = std::forward<LocationNameT>(value); }
51 template<typename LocationNameT = Aws::String>
52 CidrCollectionChange& WithLocationName(LocationNameT&& value) { SetLocationName(std::forward<LocationNameT>(value)); return *this;}
54
56
59 inline CidrCollectionChangeAction GetAction() const { return m_action; }
60 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
61 inline void SetAction(CidrCollectionChangeAction value) { m_actionHasBeenSet = true; m_action = value; }
64
66
69 inline const Aws::Vector<Aws::String>& GetCidrList() const { return m_cidrList; }
70 inline bool CidrListHasBeenSet() const { return m_cidrListHasBeenSet; }
71 template<typename CidrListT = Aws::Vector<Aws::String>>
72 void SetCidrList(CidrListT&& value) { m_cidrListHasBeenSet = true; m_cidrList = std::forward<CidrListT>(value); }
73 template<typename CidrListT = Aws::Vector<Aws::String>>
74 CidrCollectionChange& WithCidrList(CidrListT&& value) { SetCidrList(std::forward<CidrListT>(value)); return *this;}
75 template<typename CidrListT = Aws::String>
76 CidrCollectionChange& AddCidrList(CidrListT&& value) { m_cidrListHasBeenSet = true; m_cidrList.emplace_back(std::forward<CidrListT>(value)); return *this; }
78 private:
79
80 Aws::String m_locationName;
81 bool m_locationNameHasBeenSet = false;
82
84 bool m_actionHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_cidrList;
87 bool m_cidrListHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Route53
92} // 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