AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateLocationFsxOpenZfsRequest.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/FsxProtocol.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/datasync/model/TagListEntry.h>
13#include <utility>
14
15namespace Aws
16{
17namespace DataSync
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DATASYNC_API CreateLocationFsxOpenZfsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateLocationFsxOpenZfs"; }
34
35 AWS_DATASYNC_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetFsxFilesystemArn() const { return m_fsxFilesystemArn; }
45 inline bool FsxFilesystemArnHasBeenSet() const { return m_fsxFilesystemArnHasBeenSet; }
46 template<typename FsxFilesystemArnT = Aws::String>
47 void SetFsxFilesystemArn(FsxFilesystemArnT&& value) { m_fsxFilesystemArnHasBeenSet = true; m_fsxFilesystemArn = std::forward<FsxFilesystemArnT>(value); }
48 template<typename FsxFilesystemArnT = Aws::String>
49 CreateLocationFsxOpenZfsRequest& WithFsxFilesystemArn(FsxFilesystemArnT&& value) { SetFsxFilesystemArn(std::forward<FsxFilesystemArnT>(value)); return *this;}
51
53
56 inline const FsxProtocol& GetProtocol() const { return m_protocol; }
57 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
58 template<typename ProtocolT = FsxProtocol>
59 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet = true; m_protocol = std::forward<ProtocolT>(value); }
60 template<typename ProtocolT = FsxProtocol>
61 CreateLocationFsxOpenZfsRequest& WithProtocol(ProtocolT&& value) { SetProtocol(std::forward<ProtocolT>(value)); return *this;}
63
65
69 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const { return m_securityGroupArns; }
70 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
71 template<typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
72 void SetSecurityGroupArns(SecurityGroupArnsT&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::forward<SecurityGroupArnsT>(value); }
73 template<typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
74 CreateLocationFsxOpenZfsRequest& WithSecurityGroupArns(SecurityGroupArnsT&& value) { SetSecurityGroupArns(std::forward<SecurityGroupArnsT>(value)); return *this;}
75 template<typename SecurityGroupArnsT = Aws::String>
76 CreateLocationFsxOpenZfsRequest& AddSecurityGroupArns(SecurityGroupArnsT&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.emplace_back(std::forward<SecurityGroupArnsT>(value)); return *this; }
78
80
85 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
86 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
87 template<typename SubdirectoryT = Aws::String>
88 void SetSubdirectory(SubdirectoryT&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::forward<SubdirectoryT>(value); }
89 template<typename SubdirectoryT = Aws::String>
90 CreateLocationFsxOpenZfsRequest& WithSubdirectory(SubdirectoryT&& value) { SetSubdirectory(std::forward<SubdirectoryT>(value)); return *this;}
92
94
100 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 template<typename TagsT = Aws::Vector<TagListEntry>>
103 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
104 template<typename TagsT = Aws::Vector<TagListEntry>>
105 CreateLocationFsxOpenZfsRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
106 template<typename TagsT = TagListEntry>
107 CreateLocationFsxOpenZfsRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
109 private:
110
111 Aws::String m_fsxFilesystemArn;
112 bool m_fsxFilesystemArnHasBeenSet = false;
113
114 FsxProtocol m_protocol;
115 bool m_protocolHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_securityGroupArns;
118 bool m_securityGroupArnsHasBeenSet = false;
119
120 Aws::String m_subdirectory;
121 bool m_subdirectoryHasBeenSet = false;
122
124 bool m_tagsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace DataSync
129} // namespace Aws
CreateLocationFsxOpenZfsRequest & AddTags(TagsT &&value)
CreateLocationFsxOpenZfsRequest & WithSubdirectory(SubdirectoryT &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLocationFsxOpenZfsRequest & WithFsxFilesystemArn(FsxFilesystemArnT &&value)
CreateLocationFsxOpenZfsRequest & WithProtocol(ProtocolT &&value)
CreateLocationFsxOpenZfsRequest & WithTags(TagsT &&value)
CreateLocationFsxOpenZfsRequest & WithSecurityGroupArns(SecurityGroupArnsT &&value)
CreateLocationFsxOpenZfsRequest & AddSecurityGroupArns(SecurityGroupArnsT &&value)
AWS_DATASYNC_API CreateLocationFsxOpenZfsRequest()=default
const Aws::Vector< Aws::String > & GetSecurityGroupArns() 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