/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace StorageGateway { namespace Model { /** */ class UpdateFileSystemAssociationRequest : public StorageGatewayRequest { public: AWS_STORAGEGATEWAY_API UpdateFileSystemAssociationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateFileSystemAssociation"; } AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override; AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the file system association that you want * to update.

*/ inline const Aws::String& GetFileSystemAssociationARN() const{ return m_fileSystemAssociationARN; } /** *

The Amazon Resource Name (ARN) of the file system association that you want * to update.

*/ inline bool FileSystemAssociationARNHasBeenSet() const { return m_fileSystemAssociationARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the file system association that you want * to update.

*/ inline void SetFileSystemAssociationARN(const Aws::String& value) { m_fileSystemAssociationARNHasBeenSet = true; m_fileSystemAssociationARN = value; } /** *

The Amazon Resource Name (ARN) of the file system association that you want * to update.

*/ inline void SetFileSystemAssociationARN(Aws::String&& value) { m_fileSystemAssociationARNHasBeenSet = true; m_fileSystemAssociationARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the file system association that you want * to update.

*/ inline void SetFileSystemAssociationARN(const char* value) { m_fileSystemAssociationARNHasBeenSet = true; m_fileSystemAssociationARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the file system association that you want * to update.

*/ inline UpdateFileSystemAssociationRequest& WithFileSystemAssociationARN(const Aws::String& value) { SetFileSystemAssociationARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the file system association that you want * to update.

*/ inline UpdateFileSystemAssociationRequest& WithFileSystemAssociationARN(Aws::String&& value) { SetFileSystemAssociationARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the file system association that you want * to update.

*/ inline UpdateFileSystemAssociationRequest& WithFileSystemAssociationARN(const char* value) { SetFileSystemAssociationARN(value); return *this;} /** *

The user name of the user credential that has permission to access the root * share D$ of the Amazon FSx file system. The user account must belong to the * Amazon FSx delegated admin user group.

*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *

The user name of the user credential that has permission to access the root * share D$ of the Amazon FSx file system. The user account must belong to the * Amazon FSx delegated admin user group.

*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *

The user name of the user credential that has permission to access the root * share D$ of the Amazon FSx file system. The user account must belong to the * Amazon FSx delegated admin user group.

*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *

The user name of the user credential that has permission to access the root * share D$ of the Amazon FSx file system. The user account must belong to the * Amazon FSx delegated admin user group.

*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *

The user name of the user credential that has permission to access the root * share D$ of the Amazon FSx file system. The user account must belong to the * Amazon FSx delegated admin user group.

*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *

The user name of the user credential that has permission to access the root * share D$ of the Amazon FSx file system. The user account must belong to the * Amazon FSx delegated admin user group.

*/ inline UpdateFileSystemAssociationRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *

The user name of the user credential that has permission to access the root * share D$ of the Amazon FSx file system. The user account must belong to the * Amazon FSx delegated admin user group.

*/ inline UpdateFileSystemAssociationRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *

The user name of the user credential that has permission to access the root * share D$ of the Amazon FSx file system. The user account must belong to the * Amazon FSx delegated admin user group.

*/ inline UpdateFileSystemAssociationRequest& WithUserName(const char* value) { SetUserName(value); return *this;} /** *

The password of the user credential.

*/ inline const Aws::String& GetPassword() const{ return m_password; } /** *

The password of the user credential.

*/ inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; } /** *

The password of the user credential.

*/ inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; } /** *

The password of the user credential.

*/ inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); } /** *

The password of the user credential.

*/ inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); } /** *

The password of the user credential.

*/ inline UpdateFileSystemAssociationRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;} /** *

The password of the user credential.

*/ inline UpdateFileSystemAssociationRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;} /** *

The password of the user credential.

*/ inline UpdateFileSystemAssociationRequest& WithPassword(const char* value) { SetPassword(value); return *this;} /** *

The Amazon Resource Name (ARN) of the storage used for the audit logs.

*/ inline const Aws::String& GetAuditDestinationARN() const{ return m_auditDestinationARN; } /** *

The Amazon Resource Name (ARN) of the storage used for the audit logs.

*/ inline bool AuditDestinationARNHasBeenSet() const { return m_auditDestinationARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the storage used for the audit logs.

*/ inline void SetAuditDestinationARN(const Aws::String& value) { m_auditDestinationARNHasBeenSet = true; m_auditDestinationARN = value; } /** *

The Amazon Resource Name (ARN) of the storage used for the audit logs.

*/ inline void SetAuditDestinationARN(Aws::String&& value) { m_auditDestinationARNHasBeenSet = true; m_auditDestinationARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the storage used for the audit logs.

*/ inline void SetAuditDestinationARN(const char* value) { m_auditDestinationARNHasBeenSet = true; m_auditDestinationARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the storage used for the audit logs.

*/ inline UpdateFileSystemAssociationRequest& WithAuditDestinationARN(const Aws::String& value) { SetAuditDestinationARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the storage used for the audit logs.

*/ inline UpdateFileSystemAssociationRequest& WithAuditDestinationARN(Aws::String&& value) { SetAuditDestinationARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the storage used for the audit logs.

*/ inline UpdateFileSystemAssociationRequest& WithAuditDestinationARN(const char* value) { SetAuditDestinationARN(value); return *this;} inline const CacheAttributes& GetCacheAttributes() const{ return m_cacheAttributes; } inline bool CacheAttributesHasBeenSet() const { return m_cacheAttributesHasBeenSet; } inline void SetCacheAttributes(const CacheAttributes& value) { m_cacheAttributesHasBeenSet = true; m_cacheAttributes = value; } inline void SetCacheAttributes(CacheAttributes&& value) { m_cacheAttributesHasBeenSet = true; m_cacheAttributes = std::move(value); } inline UpdateFileSystemAssociationRequest& WithCacheAttributes(const CacheAttributes& value) { SetCacheAttributes(value); return *this;} inline UpdateFileSystemAssociationRequest& WithCacheAttributes(CacheAttributes&& value) { SetCacheAttributes(std::move(value)); return *this;} private: Aws::String m_fileSystemAssociationARN; bool m_fileSystemAssociationARNHasBeenSet = false; Aws::String m_userName; bool m_userNameHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; Aws::String m_auditDestinationARN; bool m_auditDestinationARNHasBeenSet = false; CacheAttributes m_cacheAttributes; bool m_cacheAttributesHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws