AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateLocationFsxOntapRequest.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/datasync/model/FsxProtocol.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.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 CreateLocationFsxOntapRequest() = 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 "CreateLocationFsxOntap"; }
34
35 AWS_DATASYNC_API Aws::String SerializePayload() const override;
36
38
39
41
42 inline const FsxProtocol& GetProtocol() const { return m_protocol; }
43 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
44 template<typename ProtocolT = FsxProtocol>
45 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet = true; m_protocol = std::forward<ProtocolT>(value); }
46 template<typename ProtocolT = FsxProtocol>
47 CreateLocationFsxOntapRequest& WithProtocol(ProtocolT&& value) { SetProtocol(std::forward<ProtocolT>(value)); return *this;}
49
51
60 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const { return m_securityGroupArns; }
61 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
62 template<typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
63 void SetSecurityGroupArns(SecurityGroupArnsT&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::forward<SecurityGroupArnsT>(value); }
64 template<typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
65 CreateLocationFsxOntapRequest& WithSecurityGroupArns(SecurityGroupArnsT&& value) { SetSecurityGroupArns(std::forward<SecurityGroupArnsT>(value)); return *this;}
66 template<typename SecurityGroupArnsT = Aws::String>
67 CreateLocationFsxOntapRequest& AddSecurityGroupArns(SecurityGroupArnsT&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.emplace_back(std::forward<SecurityGroupArnsT>(value)); return *this; }
69
71
75 inline const Aws::String& GetStorageVirtualMachineArn() const { return m_storageVirtualMachineArn; }
76 inline bool StorageVirtualMachineArnHasBeenSet() const { return m_storageVirtualMachineArnHasBeenSet; }
77 template<typename StorageVirtualMachineArnT = Aws::String>
78 void SetStorageVirtualMachineArn(StorageVirtualMachineArnT&& value) { m_storageVirtualMachineArnHasBeenSet = true; m_storageVirtualMachineArn = std::forward<StorageVirtualMachineArnT>(value); }
79 template<typename StorageVirtualMachineArnT = Aws::String>
80 CreateLocationFsxOntapRequest& WithStorageVirtualMachineArn(StorageVirtualMachineArnT&& value) { SetStorageVirtualMachineArn(std::forward<StorageVirtualMachineArnT>(value)); return *this;}
82
84
95 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
96 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
97 template<typename SubdirectoryT = Aws::String>
98 void SetSubdirectory(SubdirectoryT&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::forward<SubdirectoryT>(value); }
99 template<typename SubdirectoryT = Aws::String>
100 CreateLocationFsxOntapRequest& WithSubdirectory(SubdirectoryT&& value) { SetSubdirectory(std::forward<SubdirectoryT>(value)); return *this;}
102
104
109 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template<typename TagsT = Aws::Vector<TagListEntry>>
112 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
113 template<typename TagsT = Aws::Vector<TagListEntry>>
114 CreateLocationFsxOntapRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
115 template<typename TagsT = TagListEntry>
116 CreateLocationFsxOntapRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
118 private:
119
120 FsxProtocol m_protocol;
121 bool m_protocolHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_securityGroupArns;
124 bool m_securityGroupArnsHasBeenSet = false;
125
126 Aws::String m_storageVirtualMachineArn;
127 bool m_storageVirtualMachineArnHasBeenSet = false;
128
129 Aws::String m_subdirectory;
130 bool m_subdirectoryHasBeenSet = false;
131
133 bool m_tagsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace DataSync
138} // namespace Aws
CreateLocationFsxOntapRequest & WithProtocol(ProtocolT &&value)
CreateLocationFsxOntapRequest & WithTags(TagsT &&value)
CreateLocationFsxOntapRequest & AddSecurityGroupArns(SecurityGroupArnsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupArns() const
CreateLocationFsxOntapRequest & WithSecurityGroupArns(SecurityGroupArnsT &&value)
CreateLocationFsxOntapRequest & WithStorageVirtualMachineArn(StorageVirtualMachineArnT &&value)
CreateLocationFsxOntapRequest & AddTags(TagsT &&value)
AWS_DATASYNC_API CreateLocationFsxOntapRequest()=default
CreateLocationFsxOntapRequest & WithSubdirectory(SubdirectoryT &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
void SetStorageVirtualMachineArn(StorageVirtualMachineArnT &&value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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