/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace VPCLattice { namespace Model { /** *

Information about an action that returns a custom HTTP response. *

See Also:

AWS * API Reference

*/ class FixedResponseAction { public: AWS_VPCLATTICE_API FixedResponseAction(); AWS_VPCLATTICE_API FixedResponseAction(Aws::Utils::Json::JsonView jsonValue); AWS_VPCLATTICE_API FixedResponseAction& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The HTTP response code.

*/ inline int GetStatusCode() const{ return m_statusCode; } /** *

The HTTP response code.

*/ inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } /** *

The HTTP response code.

*/ inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } /** *

The HTTP response code.

*/ inline FixedResponseAction& WithStatusCode(int value) { SetStatusCode(value); return *this;} private: int m_statusCode; bool m_statusCodeHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws