AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFrameworkRequest.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/BackupRequest.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 <aws/backup/model/FrameworkControl.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Backup
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BACKUP_API CreateFrameworkRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateFramework"; }
35
36 AWS_BACKUP_API Aws::String SerializePayload() const override;
37
38
40
45 inline const Aws::String& GetFrameworkName() const{ return m_frameworkName; }
46 inline bool FrameworkNameHasBeenSet() const { return m_frameworkNameHasBeenSet; }
47 inline void SetFrameworkName(const Aws::String& value) { m_frameworkNameHasBeenSet = true; m_frameworkName = value; }
48 inline void SetFrameworkName(Aws::String&& value) { m_frameworkNameHasBeenSet = true; m_frameworkName = std::move(value); }
49 inline void SetFrameworkName(const char* value) { m_frameworkNameHasBeenSet = true; m_frameworkName.assign(value); }
50 inline CreateFrameworkRequest& WithFrameworkName(const Aws::String& value) { SetFrameworkName(value); return *this;}
51 inline CreateFrameworkRequest& WithFrameworkName(Aws::String&& value) { SetFrameworkName(std::move(value)); return *this;}
52 inline CreateFrameworkRequest& WithFrameworkName(const char* value) { SetFrameworkName(value); return *this;}
54
56
60 inline const Aws::String& GetFrameworkDescription() const{ return m_frameworkDescription; }
61 inline bool FrameworkDescriptionHasBeenSet() const { return m_frameworkDescriptionHasBeenSet; }
62 inline void SetFrameworkDescription(const Aws::String& value) { m_frameworkDescriptionHasBeenSet = true; m_frameworkDescription = value; }
63 inline void SetFrameworkDescription(Aws::String&& value) { m_frameworkDescriptionHasBeenSet = true; m_frameworkDescription = std::move(value); }
64 inline void SetFrameworkDescription(const char* value) { m_frameworkDescriptionHasBeenSet = true; m_frameworkDescription.assign(value); }
66 inline CreateFrameworkRequest& WithFrameworkDescription(Aws::String&& value) { SetFrameworkDescription(std::move(value)); return *this;}
67 inline CreateFrameworkRequest& WithFrameworkDescription(const char* value) { SetFrameworkDescription(value); return *this;}
69
71
75 inline const Aws::Vector<FrameworkControl>& GetFrameworkControls() const{ return m_frameworkControls; }
76 inline bool FrameworkControlsHasBeenSet() const { return m_frameworkControlsHasBeenSet; }
77 inline void SetFrameworkControls(const Aws::Vector<FrameworkControl>& value) { m_frameworkControlsHasBeenSet = true; m_frameworkControls = value; }
78 inline void SetFrameworkControls(Aws::Vector<FrameworkControl>&& value) { m_frameworkControlsHasBeenSet = true; m_frameworkControls = std::move(value); }
81 inline CreateFrameworkRequest& AddFrameworkControls(const FrameworkControl& value) { m_frameworkControlsHasBeenSet = true; m_frameworkControls.push_back(value); return *this; }
82 inline CreateFrameworkRequest& AddFrameworkControls(FrameworkControl&& value) { m_frameworkControlsHasBeenSet = true; m_frameworkControls.push_back(std::move(value)); return *this; }
84
86
92 inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
93 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
94 inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
95 inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
96 inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
97 inline CreateFrameworkRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
98 inline CreateFrameworkRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
99 inline CreateFrameworkRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
101
103
106 inline const Aws::Map<Aws::String, Aws::String>& GetFrameworkTags() const{ return m_frameworkTags; }
107 inline bool FrameworkTagsHasBeenSet() const { return m_frameworkTagsHasBeenSet; }
108 inline void SetFrameworkTags(const Aws::Map<Aws::String, Aws::String>& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags = value; }
109 inline void SetFrameworkTags(Aws::Map<Aws::String, Aws::String>&& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags = std::move(value); }
112 inline CreateFrameworkRequest& AddFrameworkTags(const Aws::String& key, const Aws::String& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(key, value); return *this; }
113 inline CreateFrameworkRequest& AddFrameworkTags(Aws::String&& key, const Aws::String& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(std::move(key), value); return *this; }
114 inline CreateFrameworkRequest& AddFrameworkTags(const Aws::String& key, Aws::String&& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(key, std::move(value)); return *this; }
115 inline CreateFrameworkRequest& AddFrameworkTags(Aws::String&& key, Aws::String&& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(std::move(key), std::move(value)); return *this; }
116 inline CreateFrameworkRequest& AddFrameworkTags(const char* key, Aws::String&& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(key, std::move(value)); return *this; }
117 inline CreateFrameworkRequest& AddFrameworkTags(Aws::String&& key, const char* value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(std::move(key), value); return *this; }
118 inline CreateFrameworkRequest& AddFrameworkTags(const char* key, const char* value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(key, value); return *this; }
120 private:
121
122 Aws::String m_frameworkName;
123 bool m_frameworkNameHasBeenSet = false;
124
125 Aws::String m_frameworkDescription;
126 bool m_frameworkDescriptionHasBeenSet = false;
127
128 Aws::Vector<FrameworkControl> m_frameworkControls;
129 bool m_frameworkControlsHasBeenSet = false;
130
131 Aws::String m_idempotencyToken;
132 bool m_idempotencyTokenHasBeenSet = false;
133
135 bool m_frameworkTagsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace Backup
140} // namespace Aws
CreateFrameworkRequest & WithFrameworkName(Aws::String &&value)
CreateFrameworkRequest & AddFrameworkTags(Aws::String &&key, const char *value)
void SetFrameworkControls(Aws::Vector< FrameworkControl > &&value)
CreateFrameworkRequest & AddFrameworkControls(FrameworkControl &&value)
CreateFrameworkRequest & AddFrameworkTags(const Aws::String &key, Aws::String &&value)
CreateFrameworkRequest & AddFrameworkTags(Aws::String &&key, Aws::String &&value)
void SetFrameworkName(const Aws::String &value)
CreateFrameworkRequest & WithIdempotencyToken(const Aws::String &value)
CreateFrameworkRequest & AddFrameworkTags(const char *key, const char *value)
CreateFrameworkRequest & WithFrameworkDescription(Aws::String &&value)
CreateFrameworkRequest & WithFrameworkDescription(const Aws::String &value)
void SetFrameworkTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateFrameworkRequest & WithFrameworkControls(const Aws::Vector< FrameworkControl > &value)
CreateFrameworkRequest & WithIdempotencyToken(const char *value)
void SetFrameworkTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetFrameworkTags() const
AWS_BACKUP_API Aws::String SerializePayload() const override
void SetFrameworkControls(const Aws::Vector< FrameworkControl > &value)
void SetIdempotencyToken(const Aws::String &value)
CreateFrameworkRequest & WithFrameworkDescription(const char *value)
CreateFrameworkRequest & WithFrameworkName(const Aws::String &value)
CreateFrameworkRequest & WithFrameworkTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateFrameworkRequest & AddFrameworkControls(const FrameworkControl &value)
CreateFrameworkRequest & AddFrameworkTags(const Aws::String &key, const Aws::String &value)
CreateFrameworkRequest & WithFrameworkControls(Aws::Vector< FrameworkControl > &&value)
CreateFrameworkRequest & WithFrameworkName(const char *value)
CreateFrameworkRequest & WithFrameworkTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateFrameworkRequest & AddFrameworkTags(const char *key, Aws::String &&value)
CreateFrameworkRequest & AddFrameworkTags(Aws::String &&key, const Aws::String &value)
const Aws::Vector< FrameworkControl > & GetFrameworkControls() const
void SetFrameworkDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateFrameworkRequest & WithIdempotencyToken(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