AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRecoveryGroupRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.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 CreateRecoveryGroupRequest();
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 "CreateRecoveryGroup"; }
33
34 AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::Vector<Aws::String>& GetCells() const{ return m_cells; }
42 inline bool CellsHasBeenSet() const { return m_cellsHasBeenSet; }
43 inline void SetCells(const Aws::Vector<Aws::String>& value) { m_cellsHasBeenSet = true; m_cells = value; }
44 inline void SetCells(Aws::Vector<Aws::String>&& value) { m_cellsHasBeenSet = true; m_cells = std::move(value); }
45 inline CreateRecoveryGroupRequest& WithCells(const Aws::Vector<Aws::String>& value) { SetCells(value); return *this;}
46 inline CreateRecoveryGroupRequest& WithCells(Aws::Vector<Aws::String>&& value) { SetCells(std::move(value)); return *this;}
47 inline CreateRecoveryGroupRequest& AddCells(const Aws::String& value) { m_cellsHasBeenSet = true; m_cells.push_back(value); return *this; }
48 inline CreateRecoveryGroupRequest& AddCells(Aws::String&& value) { m_cellsHasBeenSet = true; m_cells.push_back(std::move(value)); return *this; }
49 inline CreateRecoveryGroupRequest& AddCells(const char* value) { m_cellsHasBeenSet = true; m_cells.push_back(value); return *this; }
51
53
56 inline const Aws::String& GetRecoveryGroupName() const{ return m_recoveryGroupName; }
57 inline bool RecoveryGroupNameHasBeenSet() const { return m_recoveryGroupNameHasBeenSet; }
58 inline void SetRecoveryGroupName(const Aws::String& value) { m_recoveryGroupNameHasBeenSet = true; m_recoveryGroupName = value; }
59 inline void SetRecoveryGroupName(Aws::String&& value) { m_recoveryGroupNameHasBeenSet = true; m_recoveryGroupName = std::move(value); }
60 inline void SetRecoveryGroupName(const char* value) { m_recoveryGroupNameHasBeenSet = true; m_recoveryGroupName.assign(value); }
62 inline CreateRecoveryGroupRequest& WithRecoveryGroupName(Aws::String&& value) { SetRecoveryGroupName(std::move(value)); return *this;}
63 inline CreateRecoveryGroupRequest& WithRecoveryGroupName(const char* value) { SetRecoveryGroupName(value); return *this;}
65
67
68 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
69 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
70 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
71 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
73 inline CreateRecoveryGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
74 inline CreateRecoveryGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
75 inline CreateRecoveryGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
76 inline CreateRecoveryGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
77 inline CreateRecoveryGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
78 inline CreateRecoveryGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
79 inline CreateRecoveryGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
80 inline CreateRecoveryGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
82 private:
83
85 bool m_cellsHasBeenSet = false;
86
87 Aws::String m_recoveryGroupName;
88 bool m_recoveryGroupNameHasBeenSet = false;
89
91 bool m_tagsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Route53RecoveryReadiness
96} // namespace Aws
CreateRecoveryGroupRequest & AddTags(const char *key, const char *value)
CreateRecoveryGroupRequest & WithRecoveryGroupName(Aws::String &&value)
CreateRecoveryGroupRequest & AddTags(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRecoveryGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateRecoveryGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateRecoveryGroupRequest & WithRecoveryGroupName(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRecoveryGroupRequest & WithCells(Aws::Vector< Aws::String > &&value)
CreateRecoveryGroupRequest & WithRecoveryGroupName(const Aws::String &value)
CreateRecoveryGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRecoveryGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateRecoveryGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateRecoveryGroupRequest & AddTags(Aws::String &&key, const char *value)
CreateRecoveryGroupRequest & AddCells(const Aws::String &value)
AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override
CreateRecoveryGroupRequest & WithCells(const Aws::Vector< Aws::String > &value)
CreateRecoveryGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&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