AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
ChangeCidrCollectionRequest.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/Route53Request.h>
10#include <aws/route53/Route53_EXPORTS.h>
11#include <aws/route53/model/CidrCollectionChange.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Route53 {
17namespace Model {
18
22 public:
23 AWS_ROUTE53_API ChangeCidrCollectionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ChangeCidrCollection"; }
30
31 AWS_ROUTE53_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetId() const { return m_id; }
38 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
39 template <typename IdT = Aws::String>
40 void SetId(IdT&& value) {
41 m_idHasBeenSet = true;
42 m_id = std::forward<IdT>(value);
43 }
44 template <typename IdT = Aws::String>
46 SetId(std::forward<IdT>(value));
47 return *this;
48 }
50
52
66 inline long long GetCollectionVersion() const { return m_collectionVersion; }
67 inline bool CollectionVersionHasBeenSet() const { return m_collectionVersionHasBeenSet; }
68 inline void SetCollectionVersion(long long value) {
69 m_collectionVersionHasBeenSet = true;
70 m_collectionVersion = value;
71 }
74 return *this;
75 }
77
79
82 inline const Aws::Vector<CidrCollectionChange>& GetChanges() const { return m_changes; }
83 inline bool ChangesHasBeenSet() const { return m_changesHasBeenSet; }
84 template <typename ChangesT = Aws::Vector<CidrCollectionChange>>
85 void SetChanges(ChangesT&& value) {
86 m_changesHasBeenSet = true;
87 m_changes = std::forward<ChangesT>(value);
88 }
89 template <typename ChangesT = Aws::Vector<CidrCollectionChange>>
91 SetChanges(std::forward<ChangesT>(value));
92 return *this;
93 }
94 template <typename ChangesT = CidrCollectionChange>
96 m_changesHasBeenSet = true;
97 m_changes.emplace_back(std::forward<ChangesT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_id;
103 bool m_idHasBeenSet = false;
104
105 long long m_collectionVersion{0};
106 bool m_collectionVersionHasBeenSet = false;
107
109 bool m_changesHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Route53
114} // namespace Aws
ChangeCidrCollectionRequest & WithId(IdT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< CidrCollectionChange > & GetChanges() const
ChangeCidrCollectionRequest & WithChanges(ChangesT &&value)
ChangeCidrCollectionRequest & AddChanges(ChangesT &&value)
ChangeCidrCollectionRequest & WithCollectionVersion(long long value)
AWS_ROUTE53_API ChangeCidrCollectionRequest()=default
AWS_ROUTE53_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector