AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssociateFileSystemRequest.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/storagegateway/model/CacheAttributes.h>
12#include <aws/storagegateway/model/EndpointNetworkConfiguration.h>
13#include <aws/storagegateway/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace StorageGateway
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_STORAGEGATEWAY_API AssociateFileSystemRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "AssociateFileSystem"; }
35
36 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
37
38 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
47 inline const Aws::String& GetUserName() const { return m_userName; }
48 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
49 template<typename UserNameT = Aws::String>
50 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
51 template<typename UserNameT = Aws::String>
52 AssociateFileSystemRequest& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetPassword() const { return m_password; }
60 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
61 template<typename PasswordT = Aws::String>
62 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
63 template<typename PasswordT = Aws::String>
64 AssociateFileSystemRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
66
68
72 inline const Aws::String& GetClientToken() const { return m_clientToken; }
73 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
74 template<typename ClientTokenT = Aws::String>
75 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
76 template<typename ClientTokenT = Aws::String>
77 AssociateFileSystemRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
79
81
82 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
83 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
84 template<typename GatewayARNT = Aws::String>
85 void SetGatewayARN(GatewayARNT&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::forward<GatewayARNT>(value); }
86 template<typename GatewayARNT = Aws::String>
87 AssociateFileSystemRequest& WithGatewayARN(GatewayARNT&& value) { SetGatewayARN(std::forward<GatewayARNT>(value)); return *this;}
89
91
95 inline const Aws::String& GetLocationARN() const { return m_locationARN; }
96 inline bool LocationARNHasBeenSet() const { return m_locationARNHasBeenSet; }
97 template<typename LocationARNT = Aws::String>
98 void SetLocationARN(LocationARNT&& value) { m_locationARNHasBeenSet = true; m_locationARN = std::forward<LocationARNT>(value); }
99 template<typename LocationARNT = Aws::String>
100 AssociateFileSystemRequest& WithLocationARN(LocationARNT&& value) { SetLocationARN(std::forward<LocationARNT>(value)); return *this;}
102
104
108 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template<typename TagsT = Aws::Vector<Tag>>
111 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
112 template<typename TagsT = Aws::Vector<Tag>>
113 AssociateFileSystemRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
114 template<typename TagsT = Tag>
115 AssociateFileSystemRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
117
119
122 inline const Aws::String& GetAuditDestinationARN() const { return m_auditDestinationARN; }
123 inline bool AuditDestinationARNHasBeenSet() const { return m_auditDestinationARNHasBeenSet; }
124 template<typename AuditDestinationARNT = Aws::String>
125 void SetAuditDestinationARN(AuditDestinationARNT&& value) { m_auditDestinationARNHasBeenSet = true; m_auditDestinationARN = std::forward<AuditDestinationARNT>(value); }
126 template<typename AuditDestinationARNT = Aws::String>
127 AssociateFileSystemRequest& WithAuditDestinationARN(AuditDestinationARNT&& value) { SetAuditDestinationARN(std::forward<AuditDestinationARNT>(value)); return *this;}
129
131
132 inline const CacheAttributes& GetCacheAttributes() const { return m_cacheAttributes; }
133 inline bool CacheAttributesHasBeenSet() const { return m_cacheAttributesHasBeenSet; }
134 template<typename CacheAttributesT = CacheAttributes>
135 void SetCacheAttributes(CacheAttributesT&& value) { m_cacheAttributesHasBeenSet = true; m_cacheAttributes = std::forward<CacheAttributesT>(value); }
136 template<typename CacheAttributesT = CacheAttributes>
137 AssociateFileSystemRequest& WithCacheAttributes(CacheAttributesT&& value) { SetCacheAttributes(std::forward<CacheAttributesT>(value)); return *this;}
139
141
147 inline const EndpointNetworkConfiguration& GetEndpointNetworkConfiguration() const { return m_endpointNetworkConfiguration; }
148 inline bool EndpointNetworkConfigurationHasBeenSet() const { return m_endpointNetworkConfigurationHasBeenSet; }
149 template<typename EndpointNetworkConfigurationT = EndpointNetworkConfiguration>
150 void SetEndpointNetworkConfiguration(EndpointNetworkConfigurationT&& value) { m_endpointNetworkConfigurationHasBeenSet = true; m_endpointNetworkConfiguration = std::forward<EndpointNetworkConfigurationT>(value); }
151 template<typename EndpointNetworkConfigurationT = EndpointNetworkConfiguration>
152 AssociateFileSystemRequest& WithEndpointNetworkConfiguration(EndpointNetworkConfigurationT&& value) { SetEndpointNetworkConfiguration(std::forward<EndpointNetworkConfigurationT>(value)); return *this;}
154 private:
155
156 Aws::String m_userName;
157 bool m_userNameHasBeenSet = false;
158
159 Aws::String m_password;
160 bool m_passwordHasBeenSet = false;
161
162 Aws::String m_clientToken;
163 bool m_clientTokenHasBeenSet = false;
164
165 Aws::String m_gatewayARN;
166 bool m_gatewayARNHasBeenSet = false;
167
168 Aws::String m_locationARN;
169 bool m_locationARNHasBeenSet = false;
170
171 Aws::Vector<Tag> m_tags;
172 bool m_tagsHasBeenSet = false;
173
174 Aws::String m_auditDestinationARN;
175 bool m_auditDestinationARNHasBeenSet = false;
176
177 CacheAttributes m_cacheAttributes;
178 bool m_cacheAttributesHasBeenSet = false;
179
180 EndpointNetworkConfiguration m_endpointNetworkConfiguration;
181 bool m_endpointNetworkConfigurationHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace StorageGateway
186} // namespace Aws
const EndpointNetworkConfiguration & GetEndpointNetworkConfiguration() const
AssociateFileSystemRequest & WithAuditDestinationARN(AuditDestinationARNT &&value)
AssociateFileSystemRequest & WithEndpointNetworkConfiguration(EndpointNetworkConfigurationT &&value)
AWS_STORAGEGATEWAY_API AssociateFileSystemRequest()=default
AssociateFileSystemRequest & WithPassword(PasswordT &&value)
void SetEndpointNetworkConfiguration(EndpointNetworkConfigurationT &&value)
AssociateFileSystemRequest & WithUserName(UserNameT &&value)
AssociateFileSystemRequest & WithCacheAttributes(CacheAttributesT &&value)
AssociateFileSystemRequest & WithGatewayARN(GatewayARNT &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
AssociateFileSystemRequest & WithClientToken(ClientTokenT &&value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateFileSystemRequest & WithLocationARN(LocationARNT &&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