AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetProtocol(const FsxProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
45 inline void SetProtocol(FsxProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
46 inline CreateLocationFsxOntapRequest& WithProtocol(const FsxProtocol& value) { SetProtocol(value); return *this;}
47 inline CreateLocationFsxOntapRequest& WithProtocol(FsxProtocol&& value) { SetProtocol(std::move(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 inline void SetSecurityGroupArns(const Aws::Vector<Aws::String>& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; }
63 inline void SetSecurityGroupArns(Aws::Vector<Aws::String>&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); }
66 inline CreateLocationFsxOntapRequest& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
67 inline CreateLocationFsxOntapRequest& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; }
68 inline CreateLocationFsxOntapRequest& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
70
72
76 inline const Aws::String& GetStorageVirtualMachineArn() const{ return m_storageVirtualMachineArn; }
77 inline bool StorageVirtualMachineArnHasBeenSet() const { return m_storageVirtualMachineArnHasBeenSet; }
78 inline void SetStorageVirtualMachineArn(const Aws::String& value) { m_storageVirtualMachineArnHasBeenSet = true; m_storageVirtualMachineArn = value; }
79 inline void SetStorageVirtualMachineArn(Aws::String&& value) { m_storageVirtualMachineArnHasBeenSet = true; m_storageVirtualMachineArn = std::move(value); }
80 inline void SetStorageVirtualMachineArn(const char* value) { m_storageVirtualMachineArnHasBeenSet = true; m_storageVirtualMachineArn.assign(value); }
85
87
98 inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
99 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
100 inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
101 inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
102 inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
103 inline CreateLocationFsxOntapRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
104 inline CreateLocationFsxOntapRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
105 inline CreateLocationFsxOntapRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
107
109
114 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
117 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
118 inline CreateLocationFsxOntapRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
119 inline CreateLocationFsxOntapRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
120 inline CreateLocationFsxOntapRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
121 inline CreateLocationFsxOntapRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
123 private:
124
125 FsxProtocol m_protocol;
126 bool m_protocolHasBeenSet = false;
127
128 Aws::Vector<Aws::String> m_securityGroupArns;
129 bool m_securityGroupArnsHasBeenSet = false;
130
131 Aws::String m_storageVirtualMachineArn;
132 bool m_storageVirtualMachineArnHasBeenSet = false;
133
134 Aws::String m_subdirectory;
135 bool m_subdirectoryHasBeenSet = false;
136
138 bool m_tagsHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace DataSync
143} // namespace Aws
CreateLocationFsxOntapRequest & WithSecurityGroupArns(Aws::Vector< Aws::String > &&value)
CreateLocationFsxOntapRequest & WithTags(Aws::Vector< TagListEntry > &&value)
CreateLocationFsxOntapRequest & WithSubdirectory(const char *value)
CreateLocationFsxOntapRequest & AddTags(const TagListEntry &value)
CreateLocationFsxOntapRequest & WithSubdirectory(const Aws::String &value)
CreateLocationFsxOntapRequest & WithTags(const Aws::Vector< TagListEntry > &value)
CreateLocationFsxOntapRequest & WithProtocol(FsxProtocol &&value)
CreateLocationFsxOntapRequest & AddSecurityGroupArns(Aws::String &&value)
void SetTags(const Aws::Vector< TagListEntry > &value)
CreateLocationFsxOntapRequest & WithStorageVirtualMachineArn(Aws::String &&value)
void SetSecurityGroupArns(const Aws::Vector< Aws::String > &value)
CreateLocationFsxOntapRequest & AddTags(TagListEntry &&value)
CreateLocationFsxOntapRequest & WithSecurityGroupArns(const Aws::Vector< Aws::String > &value)
CreateLocationFsxOntapRequest & AddSecurityGroupArns(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSecurityGroupArns() const
CreateLocationFsxOntapRequest & WithStorageVirtualMachineArn(const char *value)
CreateLocationFsxOntapRequest & WithProtocol(const FsxProtocol &value)
void SetSecurityGroupArns(Aws::Vector< Aws::String > &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
CreateLocationFsxOntapRequest & AddSecurityGroupArns(const char *value)
CreateLocationFsxOntapRequest & WithStorageVirtualMachineArn(const Aws::String &value)
CreateLocationFsxOntapRequest & WithSubdirectory(Aws::String &&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