AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVolumeFromBackupRequest.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/FSxRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/fsx/model/CreateOntapVolumeConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/fsx/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace FSx
19{
20namespace Model
21{
22
26 {
27 public:
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 "CreateVolumeFromBackup"; }
35
36 AWS_FSX_API Aws::String SerializePayload() const override;
37
39
40
42
43 inline const Aws::String& GetBackupId() const{ return m_backupId; }
44 inline bool BackupIdHasBeenSet() const { return m_backupIdHasBeenSet; }
45 inline void SetBackupId(const Aws::String& value) { m_backupIdHasBeenSet = true; m_backupId = value; }
46 inline void SetBackupId(Aws::String&& value) { m_backupIdHasBeenSet = true; m_backupId = std::move(value); }
47 inline void SetBackupId(const char* value) { m_backupIdHasBeenSet = true; m_backupId.assign(value); }
48 inline CreateVolumeFromBackupRequest& WithBackupId(const Aws::String& value) { SetBackupId(value); return *this;}
49 inline CreateVolumeFromBackupRequest& WithBackupId(Aws::String&& value) { SetBackupId(std::move(value)); return *this;}
50 inline CreateVolumeFromBackupRequest& WithBackupId(const char* value) { SetBackupId(value); return *this;}
52
54
55 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
56 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
57 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
58 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
59 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
62 inline CreateVolumeFromBackupRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
64
66
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline CreateVolumeFromBackupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline CreateVolumeFromBackupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline CreateVolumeFromBackupRequest& WithName(const char* value) { SetName(value); return *this;}
78
80
83 inline const CreateOntapVolumeConfiguration& GetOntapConfiguration() const{ return m_ontapConfiguration; }
84 inline bool OntapConfigurationHasBeenSet() const { return m_ontapConfigurationHasBeenSet; }
85 inline void SetOntapConfiguration(const CreateOntapVolumeConfiguration& value) { m_ontapConfigurationHasBeenSet = true; m_ontapConfiguration = value; }
86 inline void SetOntapConfiguration(CreateOntapVolumeConfiguration&& value) { m_ontapConfigurationHasBeenSet = true; m_ontapConfiguration = std::move(value); }
90
92
93 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
96 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
97 inline CreateVolumeFromBackupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
98 inline CreateVolumeFromBackupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
99 inline CreateVolumeFromBackupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
100 inline CreateVolumeFromBackupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
102 private:
103
104 Aws::String m_backupId;
105 bool m_backupIdHasBeenSet = false;
106
107 Aws::String m_clientRequestToken;
108 bool m_clientRequestTokenHasBeenSet = false;
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
113 CreateOntapVolumeConfiguration m_ontapConfiguration;
114 bool m_ontapConfigurationHasBeenSet = false;
115
116 Aws::Vector<Tag> m_tags;
117 bool m_tagsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace FSx
122} // namespace Aws
void SetOntapConfiguration(const CreateOntapVolumeConfiguration &value)
CreateVolumeFromBackupRequest & WithName(Aws::String &&value)
CreateVolumeFromBackupRequest & WithOntapConfiguration(CreateOntapVolumeConfiguration &&value)
CreateVolumeFromBackupRequest & WithName(const char *value)
AWS_FSX_API Aws::String SerializePayload() const override
CreateVolumeFromBackupRequest & WithName(const Aws::String &value)
void SetOntapConfiguration(CreateOntapVolumeConfiguration &&value)
CreateVolumeFromBackupRequest & WithClientRequestToken(const Aws::String &value)
CreateVolumeFromBackupRequest & AddTags(const Tag &value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateVolumeFromBackupRequest & WithBackupId(const char *value)
CreateVolumeFromBackupRequest & WithOntapConfiguration(const CreateOntapVolumeConfiguration &value)
CreateVolumeFromBackupRequest & WithClientRequestToken(Aws::String &&value)
CreateVolumeFromBackupRequest & WithBackupId(const Aws::String &value)
CreateVolumeFromBackupRequest & WithBackupId(Aws::String &&value)
CreateVolumeFromBackupRequest & WithClientRequestToken(const char *value)
CreateVolumeFromBackupRequest & WithTags(Aws::Vector< Tag > &&value)
const CreateOntapVolumeConfiguration & GetOntapConfiguration() const
CreateVolumeFromBackupRequest & AddTags(Tag &&value)
virtual const char * GetServiceRequestName() const override
CreateVolumeFromBackupRequest & WithTags(const Aws::Vector< Tag > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector