/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace FSx { namespace Model { /** */ class UpdateFileCacheRequest : public FSxRequest { public: AWS_FSX_API UpdateFileCacheRequest(); // 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 "UpdateFileCache"; } AWS_FSX_API Aws::String SerializePayload() const override; AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the cache that you are updating.

*/ inline const Aws::String& GetFileCacheId() const{ return m_fileCacheId; } /** *

The ID of the cache that you are updating.

*/ inline bool FileCacheIdHasBeenSet() const { return m_fileCacheIdHasBeenSet; } /** *

The ID of the cache that you are updating.

*/ inline void SetFileCacheId(const Aws::String& value) { m_fileCacheIdHasBeenSet = true; m_fileCacheId = value; } /** *

The ID of the cache that you are updating.

*/ inline void SetFileCacheId(Aws::String&& value) { m_fileCacheIdHasBeenSet = true; m_fileCacheId = std::move(value); } /** *

The ID of the cache that you are updating.

*/ inline void SetFileCacheId(const char* value) { m_fileCacheIdHasBeenSet = true; m_fileCacheId.assign(value); } /** *

The ID of the cache that you are updating.

*/ inline UpdateFileCacheRequest& WithFileCacheId(const Aws::String& value) { SetFileCacheId(value); return *this;} /** *

The ID of the cache that you are updating.

*/ inline UpdateFileCacheRequest& WithFileCacheId(Aws::String&& value) { SetFileCacheId(std::move(value)); return *this;} /** *

The ID of the cache that you are updating.

*/ inline UpdateFileCacheRequest& WithFileCacheId(const char* value) { SetFileCacheId(value); return *this;} inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } inline UpdateFileCacheRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} inline UpdateFileCacheRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} inline UpdateFileCacheRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The configuration updates for an Amazon File Cache resource.

*/ inline const UpdateFileCacheLustreConfiguration& GetLustreConfiguration() const{ return m_lustreConfiguration; } /** *

The configuration updates for an Amazon File Cache resource.

*/ inline bool LustreConfigurationHasBeenSet() const { return m_lustreConfigurationHasBeenSet; } /** *

The configuration updates for an Amazon File Cache resource.

*/ inline void SetLustreConfiguration(const UpdateFileCacheLustreConfiguration& value) { m_lustreConfigurationHasBeenSet = true; m_lustreConfiguration = value; } /** *

The configuration updates for an Amazon File Cache resource.

*/ inline void SetLustreConfiguration(UpdateFileCacheLustreConfiguration&& value) { m_lustreConfigurationHasBeenSet = true; m_lustreConfiguration = std::move(value); } /** *

The configuration updates for an Amazon File Cache resource.

*/ inline UpdateFileCacheRequest& WithLustreConfiguration(const UpdateFileCacheLustreConfiguration& value) { SetLustreConfiguration(value); return *this;} /** *

The configuration updates for an Amazon File Cache resource.

*/ inline UpdateFileCacheRequest& WithLustreConfiguration(UpdateFileCacheLustreConfiguration&& value) { SetLustreConfiguration(std::move(value)); return *this;} private: Aws::String m_fileCacheId; bool m_fileCacheIdHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; UpdateFileCacheLustreConfiguration m_lustreConfiguration; bool m_lustreConfigurationHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws