AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
44 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
45 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
46 inline ChangeCidrCollectionRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
47 inline ChangeCidrCollectionRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
48 inline ChangeCidrCollectionRequest& WithId(const char* value) { SetId(value); return *this;}
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) { m_collectionVersionHasBeenSet = true; m_collectionVersion = value; }
69 inline ChangeCidrCollectionRequest& WithCollectionVersion(long long value) { SetCollectionVersion(value); return *this;}
71
73
76 inline const Aws::Vector<CidrCollectionChange>& GetChanges() const{ return m_changes; }
77 inline bool ChangesHasBeenSet() const { return m_changesHasBeenSet; }
78 inline void SetChanges(const Aws::Vector<CidrCollectionChange>& value) { m_changesHasBeenSet = true; m_changes = value; }
79 inline void SetChanges(Aws::Vector<CidrCollectionChange>&& value) { m_changesHasBeenSet = true; m_changes = std::move(value); }
81 inline ChangeCidrCollectionRequest& WithChanges(Aws::Vector<CidrCollectionChange>&& value) { SetChanges(std::move(value)); return *this;}
82 inline ChangeCidrCollectionRequest& AddChanges(const CidrCollectionChange& value) { m_changesHasBeenSet = true; m_changes.push_back(value); return *this; }
83 inline ChangeCidrCollectionRequest& AddChanges(CidrCollectionChange&& value) { m_changesHasBeenSet = true; m_changes.push_back(std::move(value)); return *this; }
85 private:
86
87 Aws::String m_id;
88 bool m_idHasBeenSet = false;
89
90 long long m_collectionVersion;
91 bool m_collectionVersionHasBeenSet = false;
92
94 bool m_changesHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Route53
99} // namespace Aws
ChangeCidrCollectionRequest & AddChanges(CidrCollectionChange &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< CidrCollectionChange > & GetChanges() const
ChangeCidrCollectionRequest & WithId(const Aws::String &value)
ChangeCidrCollectionRequest & WithId(Aws::String &&value)
ChangeCidrCollectionRequest & WithChanges(Aws::Vector< CidrCollectionChange > &&value)
ChangeCidrCollectionRequest & WithCollectionVersion(long long value)
ChangeCidrCollectionRequest & WithChanges(const Aws::Vector< CidrCollectionChange > &value)
void SetChanges(const Aws::Vector< CidrCollectionChange > &value)
AWS_ROUTE53_API Aws::String SerializePayload() const override
void SetChanges(Aws::Vector< CidrCollectionChange > &&value)
ChangeCidrCollectionRequest & WithId(const char *value)
ChangeCidrCollectionRequest & AddChanges(const CidrCollectionChange &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector