AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ChangeCidrCollectionRequest.h
1
6#pragma once
7#include <aws/route53/Route53_EXPORTS.h>
8#include <aws/route53/Route53Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/route53/model/CidrCollectionChange.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Route53
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ROUTE53_API ChangeCidrCollectionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ChangeCidrCollection"; }
33
34 AWS_ROUTE53_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template<typename IdT = Aws::String>
44 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
45 template<typename IdT = Aws::String>
46 ChangeCidrCollectionRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
48
50
64 inline long long GetCollectionVersion() const { return m_collectionVersion; }
65 inline bool CollectionVersionHasBeenSet() const { return m_collectionVersionHasBeenSet; }
66 inline void SetCollectionVersion(long long value) { m_collectionVersionHasBeenSet = true; m_collectionVersion = value; }
67 inline ChangeCidrCollectionRequest& WithCollectionVersion(long long value) { SetCollectionVersion(value); return *this;}
69
71
74 inline const Aws::Vector<CidrCollectionChange>& GetChanges() const { return m_changes; }
75 inline bool ChangesHasBeenSet() const { return m_changesHasBeenSet; }
76 template<typename ChangesT = Aws::Vector<CidrCollectionChange>>
77 void SetChanges(ChangesT&& value) { m_changesHasBeenSet = true; m_changes = std::forward<ChangesT>(value); }
78 template<typename ChangesT = Aws::Vector<CidrCollectionChange>>
79 ChangeCidrCollectionRequest& WithChanges(ChangesT&& value) { SetChanges(std::forward<ChangesT>(value)); return *this;}
80 template<typename ChangesT = CidrCollectionChange>
81 ChangeCidrCollectionRequest& AddChanges(ChangesT&& value) { m_changesHasBeenSet = true; m_changes.emplace_back(std::forward<ChangesT>(value)); return *this; }
83 private:
84
85 Aws::String m_id;
86 bool m_idHasBeenSet = false;
87
88 long long m_collectionVersion{0};
89 bool m_collectionVersionHasBeenSet = false;
90
92 bool m_changesHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Route53
97} // 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