AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLocationEfsRequest.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datasync/model/Ec2Config.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/datasync/model/EfsInTransitEncryption.h>
13#include <aws/datasync/model/TagListEntry.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DataSync
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_DATASYNC_API CreateLocationEfsRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateLocationEfs"; }
38
39 AWS_DATASYNC_API Aws::String SerializePayload() const override;
40
42
43
45
55 inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
56 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
57 inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
58 inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
59 inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
60 inline CreateLocationEfsRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
61 inline CreateLocationEfsRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
62 inline CreateLocationEfsRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
64
66
69 inline const Aws::String& GetEfsFilesystemArn() const{ return m_efsFilesystemArn; }
70 inline bool EfsFilesystemArnHasBeenSet() const { return m_efsFilesystemArnHasBeenSet; }
71 inline void SetEfsFilesystemArn(const Aws::String& value) { m_efsFilesystemArnHasBeenSet = true; m_efsFilesystemArn = value; }
72 inline void SetEfsFilesystemArn(Aws::String&& value) { m_efsFilesystemArnHasBeenSet = true; m_efsFilesystemArn = std::move(value); }
73 inline void SetEfsFilesystemArn(const char* value) { m_efsFilesystemArnHasBeenSet = true; m_efsFilesystemArn.assign(value); }
75 inline CreateLocationEfsRequest& WithEfsFilesystemArn(Aws::String&& value) { SetEfsFilesystemArn(std::move(value)); return *this;}
76 inline CreateLocationEfsRequest& WithEfsFilesystemArn(const char* value) { SetEfsFilesystemArn(value); return *this;}
78
80
86 inline const Ec2Config& GetEc2Config() const{ return m_ec2Config; }
87 inline bool Ec2ConfigHasBeenSet() const { return m_ec2ConfigHasBeenSet; }
88 inline void SetEc2Config(const Ec2Config& value) { m_ec2ConfigHasBeenSet = true; m_ec2Config = value; }
89 inline void SetEc2Config(Ec2Config&& value) { m_ec2ConfigHasBeenSet = true; m_ec2Config = std::move(value); }
90 inline CreateLocationEfsRequest& WithEc2Config(const Ec2Config& value) { SetEc2Config(value); return *this;}
91 inline CreateLocationEfsRequest& WithEc2Config(Ec2Config&& value) { SetEc2Config(std::move(value)); return *this;}
93
95
101 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
104 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
105 inline CreateLocationEfsRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
106 inline CreateLocationEfsRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
107 inline CreateLocationEfsRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
108 inline CreateLocationEfsRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
110
112
118 inline const Aws::String& GetAccessPointArn() const{ return m_accessPointArn; }
119 inline bool AccessPointArnHasBeenSet() const { return m_accessPointArnHasBeenSet; }
120 inline void SetAccessPointArn(const Aws::String& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = value; }
121 inline void SetAccessPointArn(Aws::String&& value) { m_accessPointArnHasBeenSet = true; m_accessPointArn = std::move(value); }
122 inline void SetAccessPointArn(const char* value) { m_accessPointArnHasBeenSet = true; m_accessPointArn.assign(value); }
123 inline CreateLocationEfsRequest& WithAccessPointArn(const Aws::String& value) { SetAccessPointArn(value); return *this;}
124 inline CreateLocationEfsRequest& WithAccessPointArn(Aws::String&& value) { SetAccessPointArn(std::move(value)); return *this;}
125 inline CreateLocationEfsRequest& WithAccessPointArn(const char* value) { SetAccessPointArn(value); return *this;}
127
129
136 inline const Aws::String& GetFileSystemAccessRoleArn() const{ return m_fileSystemAccessRoleArn; }
137 inline bool FileSystemAccessRoleArnHasBeenSet() const { return m_fileSystemAccessRoleArnHasBeenSet; }
138 inline void SetFileSystemAccessRoleArn(const Aws::String& value) { m_fileSystemAccessRoleArnHasBeenSet = true; m_fileSystemAccessRoleArn = value; }
139 inline void SetFileSystemAccessRoleArn(Aws::String&& value) { m_fileSystemAccessRoleArnHasBeenSet = true; m_fileSystemAccessRoleArn = std::move(value); }
140 inline void SetFileSystemAccessRoleArn(const char* value) { m_fileSystemAccessRoleArnHasBeenSet = true; m_fileSystemAccessRoleArn.assign(value); }
143 inline CreateLocationEfsRequest& WithFileSystemAccessRoleArn(const char* value) { SetFileSystemAccessRoleArn(value); return *this;}
145
147
154 inline const EfsInTransitEncryption& GetInTransitEncryption() const{ return m_inTransitEncryption; }
155 inline bool InTransitEncryptionHasBeenSet() const { return m_inTransitEncryptionHasBeenSet; }
156 inline void SetInTransitEncryption(const EfsInTransitEncryption& value) { m_inTransitEncryptionHasBeenSet = true; m_inTransitEncryption = value; }
157 inline void SetInTransitEncryption(EfsInTransitEncryption&& value) { m_inTransitEncryptionHasBeenSet = true; m_inTransitEncryption = std::move(value); }
161 private:
162
163 Aws::String m_subdirectory;
164 bool m_subdirectoryHasBeenSet = false;
165
166 Aws::String m_efsFilesystemArn;
167 bool m_efsFilesystemArnHasBeenSet = false;
168
169 Ec2Config m_ec2Config;
170 bool m_ec2ConfigHasBeenSet = false;
171
173 bool m_tagsHasBeenSet = false;
174
175 Aws::String m_accessPointArn;
176 bool m_accessPointArnHasBeenSet = false;
177
178 Aws::String m_fileSystemAccessRoleArn;
179 bool m_fileSystemAccessRoleArnHasBeenSet = false;
180
181 EfsInTransitEncryption m_inTransitEncryption;
182 bool m_inTransitEncryptionHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace DataSync
187} // namespace Aws
CreateLocationEfsRequest & AddTags(const TagListEntry &value)
CreateLocationEfsRequest & WithEfsFilesystemArn(const Aws::String &value)
CreateLocationEfsRequest & WithSubdirectory(const Aws::String &value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLocationEfsRequest & WithAccessPointArn(const Aws::String &value)
void SetTags(const Aws::Vector< TagListEntry > &value)
CreateLocationEfsRequest & AddTags(TagListEntry &&value)
CreateLocationEfsRequest & WithEfsFilesystemArn(Aws::String &&value)
CreateLocationEfsRequest & WithSubdirectory(const char *value)
CreateLocationEfsRequest & WithTags(const Aws::Vector< TagListEntry > &value)
void SetInTransitEncryption(EfsInTransitEncryption &&value)
virtual const char * GetServiceRequestName() const override
const EfsInTransitEncryption & GetInTransitEncryption() const
void SetTags(Aws::Vector< TagListEntry > &&value)
CreateLocationEfsRequest & WithAccessPointArn(const char *value)
CreateLocationEfsRequest & WithTags(Aws::Vector< TagListEntry > &&value)
CreateLocationEfsRequest & WithInTransitEncryption(const EfsInTransitEncryption &value)
CreateLocationEfsRequest & WithAccessPointArn(Aws::String &&value)
CreateLocationEfsRequest & WithSubdirectory(Aws::String &&value)
CreateLocationEfsRequest & WithFileSystemAccessRoleArn(const char *value)
CreateLocationEfsRequest & WithFileSystemAccessRoleArn(const Aws::String &value)
CreateLocationEfsRequest & WithEc2Config(const Ec2Config &value)
CreateLocationEfsRequest & WithEc2Config(Ec2Config &&value)
CreateLocationEfsRequest & WithInTransitEncryption(EfsInTransitEncryption &&value)
void SetInTransitEncryption(const EfsInTransitEncryption &value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
CreateLocationEfsRequest & WithEfsFilesystemArn(const char *value)
CreateLocationEfsRequest & WithFileSystemAccessRoleArn(Aws::String &&value)
const Aws::Vector< TagListEntry > & GetTags() const
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