AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCellRequest.h
1
6#pragma once
7#include <aws/route53-recovery-readiness/Route53RecoveryReadiness_EXPORTS.h>
8#include <aws/route53-recovery-readiness/Route53RecoveryReadinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Route53RecoveryReadiness
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ROUTE53RECOVERYREADINESS_API CreateCellRequest();
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 "CreateCell"; }
33
34 AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetCellName() const{ return m_cellName; }
42 inline bool CellNameHasBeenSet() const { return m_cellNameHasBeenSet; }
43 inline void SetCellName(const Aws::String& value) { m_cellNameHasBeenSet = true; m_cellName = value; }
44 inline void SetCellName(Aws::String&& value) { m_cellNameHasBeenSet = true; m_cellName = std::move(value); }
45 inline void SetCellName(const char* value) { m_cellNameHasBeenSet = true; m_cellName.assign(value); }
46 inline CreateCellRequest& WithCellName(const Aws::String& value) { SetCellName(value); return *this;}
47 inline CreateCellRequest& WithCellName(Aws::String&& value) { SetCellName(std::move(value)); return *this;}
48 inline CreateCellRequest& WithCellName(const char* value) { SetCellName(value); return *this;}
50
52
57 inline const Aws::Vector<Aws::String>& GetCells() const{ return m_cells; }
58 inline bool CellsHasBeenSet() const { return m_cellsHasBeenSet; }
59 inline void SetCells(const Aws::Vector<Aws::String>& value) { m_cellsHasBeenSet = true; m_cells = value; }
60 inline void SetCells(Aws::Vector<Aws::String>&& value) { m_cellsHasBeenSet = true; m_cells = std::move(value); }
61 inline CreateCellRequest& WithCells(const Aws::Vector<Aws::String>& value) { SetCells(value); return *this;}
62 inline CreateCellRequest& WithCells(Aws::Vector<Aws::String>&& value) { SetCells(std::move(value)); return *this;}
63 inline CreateCellRequest& AddCells(const Aws::String& value) { m_cellsHasBeenSet = true; m_cells.push_back(value); return *this; }
64 inline CreateCellRequest& AddCells(Aws::String&& value) { m_cellsHasBeenSet = true; m_cells.push_back(std::move(value)); return *this; }
65 inline CreateCellRequest& AddCells(const char* value) { m_cellsHasBeenSet = true; m_cells.push_back(value); return *this; }
67
69
70 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
73 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
74 inline CreateCellRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
75 inline CreateCellRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
76 inline CreateCellRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
77 inline CreateCellRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
78 inline CreateCellRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
79 inline CreateCellRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
80 inline CreateCellRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
81 inline CreateCellRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
82 inline CreateCellRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
84 private:
85
86 Aws::String m_cellName;
87 bool m_cellNameHasBeenSet = false;
88
90 bool m_cellsHasBeenSet = false;
91
93 bool m_tagsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Route53RecoveryReadiness
98} // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateCellRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateCellRequest & WithCellName(Aws::String &&value)
AWS_ROUTE53RECOVERYREADINESS_API CreateCellRequest()
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateCellRequest & AddTags(const char *key, const char *value)
CreateCellRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateCellRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
virtual const char * GetServiceRequestName() const override
CreateCellRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateCellRequest & WithCellName(const char *value)
const Aws::Vector< Aws::String > & GetCells() const
CreateCellRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateCellRequest & WithCells(Aws::Vector< Aws::String > &&value)
CreateCellRequest & AddCells(const Aws::String &value)
AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override
CreateCellRequest & AddCells(Aws::String &&value)
CreateCellRequest & AddCells(const char *value)
void SetCells(const Aws::Vector< Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateCellRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetCells(Aws::Vector< Aws::String > &&value)
CreateCellRequest & WithCells(const Aws::Vector< Aws::String > &value)
CreateCellRequest & WithCellName(const Aws::String &value)
CreateCellRequest & AddTags(const char *key, Aws::String &&value)
CreateCellRequest & AddTags(Aws::String &&key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector