AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
50 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
51 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
52 inline AssociateFileSystemRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
53 inline AssociateFileSystemRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
54 inline AssociateFileSystemRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
56
58
61 inline const Aws::String& GetPassword() const{ return m_password; }
62 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
63 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
64 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
65 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
66 inline AssociateFileSystemRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
67 inline AssociateFileSystemRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
68 inline AssociateFileSystemRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
70
72
76 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
77 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
78 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
79 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
80 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
81 inline AssociateFileSystemRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
82 inline AssociateFileSystemRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
83 inline AssociateFileSystemRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
85
87
88 inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
89 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
90 inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
91 inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
92 inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
93 inline AssociateFileSystemRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
94 inline AssociateFileSystemRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
95 inline AssociateFileSystemRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
97
99
103 inline const Aws::String& GetLocationARN() const{ return m_locationARN; }
104 inline bool LocationARNHasBeenSet() const { return m_locationARNHasBeenSet; }
105 inline void SetLocationARN(const Aws::String& value) { m_locationARNHasBeenSet = true; m_locationARN = value; }
106 inline void SetLocationARN(Aws::String&& value) { m_locationARNHasBeenSet = true; m_locationARN = std::move(value); }
107 inline void SetLocationARN(const char* value) { m_locationARNHasBeenSet = true; m_locationARN.assign(value); }
108 inline AssociateFileSystemRequest& WithLocationARN(const Aws::String& value) { SetLocationARN(value); return *this;}
109 inline AssociateFileSystemRequest& WithLocationARN(Aws::String&& value) { SetLocationARN(std::move(value)); return *this;}
110 inline AssociateFileSystemRequest& WithLocationARN(const char* value) { SetLocationARN(value); return *this;}
112
114
118 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
121 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
122 inline AssociateFileSystemRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
123 inline AssociateFileSystemRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
124 inline AssociateFileSystemRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
125 inline AssociateFileSystemRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
127
129
132 inline const Aws::String& GetAuditDestinationARN() const{ return m_auditDestinationARN; }
133 inline bool AuditDestinationARNHasBeenSet() const { return m_auditDestinationARNHasBeenSet; }
134 inline void SetAuditDestinationARN(const Aws::String& value) { m_auditDestinationARNHasBeenSet = true; m_auditDestinationARN = value; }
135 inline void SetAuditDestinationARN(Aws::String&& value) { m_auditDestinationARNHasBeenSet = true; m_auditDestinationARN = std::move(value); }
136 inline void SetAuditDestinationARN(const char* value) { m_auditDestinationARNHasBeenSet = true; m_auditDestinationARN.assign(value); }
139 inline AssociateFileSystemRequest& WithAuditDestinationARN(const char* value) { SetAuditDestinationARN(value); return *this;}
141
143
144 inline const CacheAttributes& GetCacheAttributes() const{ return m_cacheAttributes; }
145 inline bool CacheAttributesHasBeenSet() const { return m_cacheAttributesHasBeenSet; }
146 inline void SetCacheAttributes(const CacheAttributes& value) { m_cacheAttributesHasBeenSet = true; m_cacheAttributes = value; }
147 inline void SetCacheAttributes(CacheAttributes&& value) { m_cacheAttributesHasBeenSet = true; m_cacheAttributes = std::move(value); }
149 inline AssociateFileSystemRequest& WithCacheAttributes(CacheAttributes&& value) { SetCacheAttributes(std::move(value)); return *this;}
151
153
159 inline const EndpointNetworkConfiguration& GetEndpointNetworkConfiguration() const{ return m_endpointNetworkConfiguration; }
160 inline bool EndpointNetworkConfigurationHasBeenSet() const { return m_endpointNetworkConfigurationHasBeenSet; }
161 inline void SetEndpointNetworkConfiguration(const EndpointNetworkConfiguration& value) { m_endpointNetworkConfigurationHasBeenSet = true; m_endpointNetworkConfiguration = value; }
162 inline void SetEndpointNetworkConfiguration(EndpointNetworkConfiguration&& value) { m_endpointNetworkConfigurationHasBeenSet = true; m_endpointNetworkConfiguration = std::move(value); }
166 private:
167
168 Aws::String m_userName;
169 bool m_userNameHasBeenSet = false;
170
171 Aws::String m_password;
172 bool m_passwordHasBeenSet = false;
173
174 Aws::String m_clientToken;
175 bool m_clientTokenHasBeenSet = false;
176
177 Aws::String m_gatewayARN;
178 bool m_gatewayARNHasBeenSet = false;
179
180 Aws::String m_locationARN;
181 bool m_locationARNHasBeenSet = false;
182
183 Aws::Vector<Tag> m_tags;
184 bool m_tagsHasBeenSet = false;
185
186 Aws::String m_auditDestinationARN;
187 bool m_auditDestinationARNHasBeenSet = false;
188
189 CacheAttributes m_cacheAttributes;
190 bool m_cacheAttributesHasBeenSet = false;
191
192 EndpointNetworkConfiguration m_endpointNetworkConfiguration;
193 bool m_endpointNetworkConfigurationHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace StorageGateway
198} // namespace Aws
AssociateFileSystemRequest & WithCacheAttributes(const CacheAttributes &value)
AssociateFileSystemRequest & WithClientToken(Aws::String &&value)
AssociateFileSystemRequest & WithEndpointNetworkConfiguration(EndpointNetworkConfiguration &&value)
const EndpointNetworkConfiguration & GetEndpointNetworkConfiguration() const
AssociateFileSystemRequest & WithPassword(Aws::String &&value)
AssociateFileSystemRequest & WithUserName(const Aws::String &value)
AssociateFileSystemRequest & WithEndpointNetworkConfiguration(const EndpointNetworkConfiguration &value)
void SetEndpointNetworkConfiguration(const EndpointNetworkConfiguration &value)
AssociateFileSystemRequest & AddTags(const Tag &value)
AssociateFileSystemRequest & WithUserName(const char *value)
AssociateFileSystemRequest & WithGatewayARN(const char *value)
AssociateFileSystemRequest & WithTags(const Aws::Vector< Tag > &value)
AssociateFileSystemRequest & WithLocationARN(const char *value)
AssociateFileSystemRequest & WithAuditDestinationARN(const Aws::String &value)
AssociateFileSystemRequest & WithLocationARN(const Aws::String &value)
AssociateFileSystemRequest & WithUserName(Aws::String &&value)
AssociateFileSystemRequest & WithCacheAttributes(CacheAttributes &&value)
AssociateFileSystemRequest & WithClientToken(const Aws::String &value)
AssociateFileSystemRequest & WithLocationARN(Aws::String &&value)
void SetEndpointNetworkConfiguration(EndpointNetworkConfiguration &&value)
AssociateFileSystemRequest & WithGatewayARN(Aws::String &&value)
AssociateFileSystemRequest & WithClientToken(const char *value)
AssociateFileSystemRequest & WithAuditDestinationARN(Aws::String &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
AssociateFileSystemRequest & WithAuditDestinationARN(const char *value)
AssociateFileSystemRequest & WithGatewayARN(const Aws::String &value)
AssociateFileSystemRequest & WithPassword(const char *value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateFileSystemRequest & WithPassword(const Aws::String &value)
AssociateFileSystemRequest & WithTags(Aws::Vector< Tag > &&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