AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateFileSystemAssociationRequest.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/storagegateway/model/CacheAttributes.h>
11#include <utility>
12
13namespace Aws
14{
15namespace StorageGateway
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_STORAGEGATEWAY_API UpdateFileSystemAssociationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateFileSystemAssociation"; }
32
33 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
34
35 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetFileSystemAssociationARN() const { return m_fileSystemAssociationARN; }
44 inline bool FileSystemAssociationARNHasBeenSet() const { return m_fileSystemAssociationARNHasBeenSet; }
45 template<typename FileSystemAssociationARNT = Aws::String>
46 void SetFileSystemAssociationARN(FileSystemAssociationARNT&& value) { m_fileSystemAssociationARNHasBeenSet = true; m_fileSystemAssociationARN = std::forward<FileSystemAssociationARNT>(value); }
47 template<typename FileSystemAssociationARNT = Aws::String>
48 UpdateFileSystemAssociationRequest& WithFileSystemAssociationARN(FileSystemAssociationARNT&& value) { SetFileSystemAssociationARN(std::forward<FileSystemAssociationARNT>(value)); return *this;}
50
52
57 inline const Aws::String& GetUserName() const { return m_userName; }
58 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
59 template<typename UserNameT = Aws::String>
60 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
61 template<typename UserNameT = Aws::String>
62 UpdateFileSystemAssociationRequest& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetPassword() const { return m_password; }
70 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
71 template<typename PasswordT = Aws::String>
72 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
73 template<typename PasswordT = Aws::String>
74 UpdateFileSystemAssociationRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
76
78
81 inline const Aws::String& GetAuditDestinationARN() const { return m_auditDestinationARN; }
82 inline bool AuditDestinationARNHasBeenSet() const { return m_auditDestinationARNHasBeenSet; }
83 template<typename AuditDestinationARNT = Aws::String>
84 void SetAuditDestinationARN(AuditDestinationARNT&& value) { m_auditDestinationARNHasBeenSet = true; m_auditDestinationARN = std::forward<AuditDestinationARNT>(value); }
85 template<typename AuditDestinationARNT = Aws::String>
86 UpdateFileSystemAssociationRequest& WithAuditDestinationARN(AuditDestinationARNT&& value) { SetAuditDestinationARN(std::forward<AuditDestinationARNT>(value)); return *this;}
88
90
91 inline const CacheAttributes& GetCacheAttributes() const { return m_cacheAttributes; }
92 inline bool CacheAttributesHasBeenSet() const { return m_cacheAttributesHasBeenSet; }
93 template<typename CacheAttributesT = CacheAttributes>
94 void SetCacheAttributes(CacheAttributesT&& value) { m_cacheAttributesHasBeenSet = true; m_cacheAttributes = std::forward<CacheAttributesT>(value); }
95 template<typename CacheAttributesT = CacheAttributes>
96 UpdateFileSystemAssociationRequest& WithCacheAttributes(CacheAttributesT&& value) { SetCacheAttributes(std::forward<CacheAttributesT>(value)); return *this;}
98 private:
99
100 Aws::String m_fileSystemAssociationARN;
101 bool m_fileSystemAssociationARNHasBeenSet = false;
102
103 Aws::String m_userName;
104 bool m_userNameHasBeenSet = false;
105
106 Aws::String m_password;
107 bool m_passwordHasBeenSet = false;
108
109 Aws::String m_auditDestinationARN;
110 bool m_auditDestinationARNHasBeenSet = false;
111
112 CacheAttributes m_cacheAttributes;
113 bool m_cacheAttributesHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace StorageGateway
118} // namespace Aws
AWS_STORAGEGATEWAY_API UpdateFileSystemAssociationRequest()=default
UpdateFileSystemAssociationRequest & WithPassword(PasswordT &&value)
UpdateFileSystemAssociationRequest & WithCacheAttributes(CacheAttributesT &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateFileSystemAssociationRequest & WithFileSystemAssociationARN(FileSystemAssociationARNT &&value)
UpdateFileSystemAssociationRequest & WithAuditDestinationARN(AuditDestinationARNT &&value)
UpdateFileSystemAssociationRequest & WithUserName(UserNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String