/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an action that returns a custom HTTP
* response.See Also:
AWS
* API Reference
The message.
*/ inline const Aws::String& GetMessageBody() const{ return m_messageBody; } /** *The message.
*/ inline bool MessageBodyHasBeenSet() const { return m_messageBodyHasBeenSet; } /** *The message.
*/ inline void SetMessageBody(const Aws::String& value) { m_messageBodyHasBeenSet = true; m_messageBody = value; } /** *The message.
*/ inline void SetMessageBody(Aws::String&& value) { m_messageBodyHasBeenSet = true; m_messageBody = std::move(value); } /** *The message.
*/ inline void SetMessageBody(const char* value) { m_messageBodyHasBeenSet = true; m_messageBody.assign(value); } /** *The message.
*/ inline FixedResponseActionConfig& WithMessageBody(const Aws::String& value) { SetMessageBody(value); return *this;} /** *The message.
*/ inline FixedResponseActionConfig& WithMessageBody(Aws::String&& value) { SetMessageBody(std::move(value)); return *this;} /** *The message.
*/ inline FixedResponseActionConfig& WithMessageBody(const char* value) { SetMessageBody(value); return *this;} /** *The HTTP response code (2XX, 4XX, or 5XX).
*/ inline const Aws::String& GetStatusCode() const{ return m_statusCode; } /** *The HTTP response code (2XX, 4XX, or 5XX).
*/ inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } /** *The HTTP response code (2XX, 4XX, or 5XX).
*/ inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } /** *The HTTP response code (2XX, 4XX, or 5XX).
*/ inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); } /** *The HTTP response code (2XX, 4XX, or 5XX).
*/ inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); } /** *The HTTP response code (2XX, 4XX, or 5XX).
*/ inline FixedResponseActionConfig& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;} /** *The HTTP response code (2XX, 4XX, or 5XX).
*/ inline FixedResponseActionConfig& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;} /** *The HTTP response code (2XX, 4XX, or 5XX).
*/ inline FixedResponseActionConfig& WithStatusCode(const char* value) { SetStatusCode(value); return *this;} /** *The content type.
Valid Values: text/plain | text/css | text/html | * application/javascript | application/json
*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *The content type.
Valid Values: text/plain | text/css | text/html | * application/javascript | application/json
*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *The content type.
Valid Values: text/plain | text/css | text/html | * application/javascript | application/json
*/ inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *The content type.
Valid Values: text/plain | text/css | text/html | * application/javascript | application/json
*/ inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *The content type.
Valid Values: text/plain | text/css | text/html | * application/javascript | application/json
*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *The content type.
Valid Values: text/plain | text/css | text/html | * application/javascript | application/json
*/ inline FixedResponseActionConfig& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *The content type.
Valid Values: text/plain | text/css | text/html | * application/javascript | application/json
*/ inline FixedResponseActionConfig& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *The content type.
Valid Values: text/plain | text/css | text/html | * application/javascript | application/json
*/ inline FixedResponseActionConfig& WithContentType(const char* value) { SetContentType(value); return *this;} private: Aws::String m_messageBody; bool m_messageBodyHasBeenSet = false; Aws::String m_statusCode; bool m_statusCodeHasBeenSet = false; Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancingv2 } // namespace Aws