/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The error information.See Also:
AWS
* API Reference
The object key name to use when a 4XX class error occurs.
*Replacement must be made for object keys containing special characters (such * as carriage returns) when using XML requests. For more information, see * XML related object key constraints.
*/ inline const Aws::String& GetKey() const{ return m_key; } /** *The object key name to use when a 4XX class error occurs.
*Replacement must be made for object keys containing special characters (such * as carriage returns) when using XML requests. For more information, see * XML related object key constraints.
*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *The object key name to use when a 4XX class error occurs.
*Replacement must be made for object keys containing special characters (such * as carriage returns) when using XML requests. For more information, see * XML related object key constraints.
*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *The object key name to use when a 4XX class error occurs.
*Replacement must be made for object keys containing special characters (such * as carriage returns) when using XML requests. For more information, see * XML related object key constraints.
*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *The object key name to use when a 4XX class error occurs.
*Replacement must be made for object keys containing special characters (such * as carriage returns) when using XML requests. For more information, see * XML related object key constraints.
*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *The object key name to use when a 4XX class error occurs.
*Replacement must be made for object keys containing special characters (such * as carriage returns) when using XML requests. For more information, see * XML related object key constraints.
*/ inline ErrorDocument& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *The object key name to use when a 4XX class error occurs.
*Replacement must be made for object keys containing special characters (such * as carriage returns) when using XML requests. For more information, see * XML related object key constraints.
*/ inline ErrorDocument& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *The object key name to use when a 4XX class error occurs.
*Replacement must be made for object keys containing special characters (such * as carriage returns) when using XML requests. For more information, see * XML related object key constraints.
*/ inline ErrorDocument& WithKey(const char* value) { SetKey(value); return *this;} private: Aws::String m_key; bool m_keyHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws