AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetFsxFilesystemArn(const Aws::String& value) { m_fsxFilesystemArnHasBeenSet = true; m_fsxFilesystemArn = value; }
47 inline void SetFsxFilesystemArn(Aws::String&& value) { m_fsxFilesystemArnHasBeenSet = true; m_fsxFilesystemArn = std::move(value); }
48 inline void SetFsxFilesystemArn(const char* value) { m_fsxFilesystemArnHasBeenSet = true; m_fsxFilesystemArn.assign(value); }
50 inline CreateLocationFsxOpenZfsRequest& WithFsxFilesystemArn(Aws::String&& value) { SetFsxFilesystemArn(std::move(value)); return *this;}
51 inline CreateLocationFsxOpenZfsRequest& WithFsxFilesystemArn(const char* value) { SetFsxFilesystemArn(value); return *this;}
53
55
58 inline const FsxProtocol& GetProtocol() const{ return m_protocol; }
59 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
60 inline void SetProtocol(const FsxProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
61 inline void SetProtocol(FsxProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
62 inline CreateLocationFsxOpenZfsRequest& WithProtocol(const FsxProtocol& value) { SetProtocol(value); return *this;}
63 inline CreateLocationFsxOpenZfsRequest& WithProtocol(FsxProtocol&& value) { SetProtocol(std::move(value)); return *this;}
65
67
71 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const{ return m_securityGroupArns; }
72 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
73 inline void SetSecurityGroupArns(const Aws::Vector<Aws::String>& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; }
74 inline void SetSecurityGroupArns(Aws::Vector<Aws::String>&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); }
77 inline CreateLocationFsxOpenZfsRequest& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
78 inline CreateLocationFsxOpenZfsRequest& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; }
79 inline CreateLocationFsxOpenZfsRequest& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
81
83
88 inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
89 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
90 inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
91 inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
92 inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
93 inline CreateLocationFsxOpenZfsRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
94 inline CreateLocationFsxOpenZfsRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
95 inline CreateLocationFsxOpenZfsRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
97
99
105 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
108 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
109 inline CreateLocationFsxOpenZfsRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
110 inline CreateLocationFsxOpenZfsRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
111 inline CreateLocationFsxOpenZfsRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
112 inline CreateLocationFsxOpenZfsRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
114 private:
115
116 Aws::String m_fsxFilesystemArn;
117 bool m_fsxFilesystemArnHasBeenSet = false;
118
119 FsxProtocol m_protocol;
120 bool m_protocolHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_securityGroupArns;
123 bool m_securityGroupArnsHasBeenSet = false;
124
125 Aws::String m_subdirectory;
126 bool m_subdirectoryHasBeenSet = false;
127
129 bool m_tagsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace DataSync
134} // namespace Aws
CreateLocationFsxOpenZfsRequest & WithSecurityGroupArns(const Aws::Vector< Aws::String > &value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
CreateLocationFsxOpenZfsRequest & WithFsxFilesystemArn(const Aws::String &value)
CreateLocationFsxOpenZfsRequest & WithSubdirectory(Aws::String &&value)
CreateLocationFsxOpenZfsRequest & WithFsxFilesystemArn(const char *value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLocationFsxOpenZfsRequest & AddTags(TagListEntry &&value)
CreateLocationFsxOpenZfsRequest & WithSecurityGroupArns(Aws::Vector< Aws::String > &&value)
CreateLocationFsxOpenZfsRequest & WithProtocol(FsxProtocol &&value)
CreateLocationFsxOpenZfsRequest & WithTags(Aws::Vector< TagListEntry > &&value)
CreateLocationFsxOpenZfsRequest & WithProtocol(const FsxProtocol &value)
CreateLocationFsxOpenZfsRequest & WithSubdirectory(const Aws::String &value)
void SetSecurityGroupArns(const Aws::Vector< Aws::String > &value)
CreateLocationFsxOpenZfsRequest & AddSecurityGroupArns(Aws::String &&value)
CreateLocationFsxOpenZfsRequest & WithTags(const Aws::Vector< TagListEntry > &value)
CreateLocationFsxOpenZfsRequest & AddTags(const TagListEntry &value)
CreateLocationFsxOpenZfsRequest & AddSecurityGroupArns(const char *value)
const Aws::Vector< Aws::String > & GetSecurityGroupArns() const
CreateLocationFsxOpenZfsRequest & WithFsxFilesystemArn(Aws::String &&value)
CreateLocationFsxOpenZfsRequest & WithSubdirectory(const char *value)
CreateLocationFsxOpenZfsRequest & AddSecurityGroupArns(const Aws::String &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