AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLocationFsxLustreRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/datasync/model/TagListEntry.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DataSync
17{
18namespace Model
19{
20
24 {
25 public:
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 "CreateLocationFsxLustre"; }
33
34 AWS_DATASYNC_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetFsxFilesystemArn() const{ return m_fsxFilesystemArn; }
44 inline bool FsxFilesystemArnHasBeenSet() const { return m_fsxFilesystemArnHasBeenSet; }
45 inline void SetFsxFilesystemArn(const Aws::String& value) { m_fsxFilesystemArnHasBeenSet = true; m_fsxFilesystemArn = value; }
46 inline void SetFsxFilesystemArn(Aws::String&& value) { m_fsxFilesystemArnHasBeenSet = true; m_fsxFilesystemArn = std::move(value); }
47 inline void SetFsxFilesystemArn(const char* value) { m_fsxFilesystemArnHasBeenSet = true; m_fsxFilesystemArn.assign(value); }
49 inline CreateLocationFsxLustreRequest& WithFsxFilesystemArn(Aws::String&& value) { SetFsxFilesystemArn(std::move(value)); return *this;}
50 inline CreateLocationFsxLustreRequest& WithFsxFilesystemArn(const char* value) { SetFsxFilesystemArn(value); return *this;}
52
54
58 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const{ return m_securityGroupArns; }
59 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
60 inline void SetSecurityGroupArns(const Aws::Vector<Aws::String>& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; }
61 inline void SetSecurityGroupArns(Aws::Vector<Aws::String>&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); }
64 inline CreateLocationFsxLustreRequest& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
65 inline CreateLocationFsxLustreRequest& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; }
66 inline CreateLocationFsxLustreRequest& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
68
70
75 inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
76 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
77 inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
78 inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
79 inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
80 inline CreateLocationFsxLustreRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
81 inline CreateLocationFsxLustreRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
82 inline CreateLocationFsxLustreRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
84
86
92 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 inline CreateLocationFsxLustreRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
97 inline CreateLocationFsxLustreRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
98 inline CreateLocationFsxLustreRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
99 inline CreateLocationFsxLustreRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
101 private:
102
103 Aws::String m_fsxFilesystemArn;
104 bool m_fsxFilesystemArnHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_securityGroupArns;
107 bool m_securityGroupArnsHasBeenSet = false;
108
109 Aws::String m_subdirectory;
110 bool m_subdirectoryHasBeenSet = false;
111
113 bool m_tagsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace DataSync
118} // namespace Aws
CreateLocationFsxLustreRequest & AddSecurityGroupArns(const char *value)
CreateLocationFsxLustreRequest & WithTags(const Aws::Vector< TagListEntry > &value)
const Aws::Vector< Aws::String > & GetSecurityGroupArns() const
void SetSecurityGroupArns(const Aws::Vector< Aws::String > &value)
CreateLocationFsxLustreRequest & WithSubdirectory(const char *value)
CreateLocationFsxLustreRequest & AddTags(const TagListEntry &value)
CreateLocationFsxLustreRequest & AddTags(TagListEntry &&value)
CreateLocationFsxLustreRequest & WithSubdirectory(Aws::String &&value)
CreateLocationFsxLustreRequest & AddSecurityGroupArns(const Aws::String &value)
CreateLocationFsxLustreRequest & WithSecurityGroupArns(Aws::Vector< Aws::String > &&value)
CreateLocationFsxLustreRequest & WithSecurityGroupArns(const Aws::Vector< Aws::String > &value)
CreateLocationFsxLustreRequest & WithFsxFilesystemArn(Aws::String &&value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLocationFsxLustreRequest & WithTags(Aws::Vector< TagListEntry > &&value)
CreateLocationFsxLustreRequest & WithFsxFilesystemArn(const Aws::String &value)
CreateLocationFsxLustreRequest & AddSecurityGroupArns(Aws::String &&value)
CreateLocationFsxLustreRequest & WithFsxFilesystemArn(const char *value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
CreateLocationFsxLustreRequest & WithSubdirectory(const Aws::String &value)
void SetTags(const Aws::Vector< TagListEntry > &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