/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The codes to use when checking for a successful response from a target. If
* the protocol version is gRPC, these are gRPC codes. Otherwise, these are HTTP
* codes. See Also:
AWS
* API Reference
For Application Load Balancers, you can specify values between 200 and 499, * with the default value being 200. You can specify multiple values (for example, * "200,202") or a range of values (for example, "200-299").
For Network * Load Balancers, you can specify values between 200 and 599, with the default * value being 200-399. You can specify multiple values (for example, "200,202") or * a range of values (for example, "200-299").
For Gateway Load Balancers, * this must be "200–399".
Note that when using shorthand syntax, some * values such as commas need to be escaped.
*/ inline const Aws::String& GetHttpCode() const{ return m_httpCode; } /** *For Application Load Balancers, you can specify values between 200 and 499, * with the default value being 200. You can specify multiple values (for example, * "200,202") or a range of values (for example, "200-299").
For Network * Load Balancers, you can specify values between 200 and 599, with the default * value being 200-399. You can specify multiple values (for example, "200,202") or * a range of values (for example, "200-299").
For Gateway Load Balancers, * this must be "200–399".
Note that when using shorthand syntax, some * values such as commas need to be escaped.
*/ inline bool HttpCodeHasBeenSet() const { return m_httpCodeHasBeenSet; } /** *For Application Load Balancers, you can specify values between 200 and 499, * with the default value being 200. You can specify multiple values (for example, * "200,202") or a range of values (for example, "200-299").
For Network * Load Balancers, you can specify values between 200 and 599, with the default * value being 200-399. You can specify multiple values (for example, "200,202") or * a range of values (for example, "200-299").
For Gateway Load Balancers, * this must be "200–399".
Note that when using shorthand syntax, some * values such as commas need to be escaped.
*/ inline void SetHttpCode(const Aws::String& value) { m_httpCodeHasBeenSet = true; m_httpCode = value; } /** *For Application Load Balancers, you can specify values between 200 and 499, * with the default value being 200. You can specify multiple values (for example, * "200,202") or a range of values (for example, "200-299").
For Network * Load Balancers, you can specify values between 200 and 599, with the default * value being 200-399. You can specify multiple values (for example, "200,202") or * a range of values (for example, "200-299").
For Gateway Load Balancers, * this must be "200–399".
Note that when using shorthand syntax, some * values such as commas need to be escaped.
*/ inline void SetHttpCode(Aws::String&& value) { m_httpCodeHasBeenSet = true; m_httpCode = std::move(value); } /** *For Application Load Balancers, you can specify values between 200 and 499, * with the default value being 200. You can specify multiple values (for example, * "200,202") or a range of values (for example, "200-299").
For Network * Load Balancers, you can specify values between 200 and 599, with the default * value being 200-399. You can specify multiple values (for example, "200,202") or * a range of values (for example, "200-299").
For Gateway Load Balancers, * this must be "200–399".
Note that when using shorthand syntax, some * values such as commas need to be escaped.
*/ inline void SetHttpCode(const char* value) { m_httpCodeHasBeenSet = true; m_httpCode.assign(value); } /** *For Application Load Balancers, you can specify values between 200 and 499, * with the default value being 200. You can specify multiple values (for example, * "200,202") or a range of values (for example, "200-299").
For Network * Load Balancers, you can specify values between 200 and 599, with the default * value being 200-399. You can specify multiple values (for example, "200,202") or * a range of values (for example, "200-299").
For Gateway Load Balancers, * this must be "200–399".
Note that when using shorthand syntax, some * values such as commas need to be escaped.
*/ inline Matcher& WithHttpCode(const Aws::String& value) { SetHttpCode(value); return *this;} /** *For Application Load Balancers, you can specify values between 200 and 499, * with the default value being 200. You can specify multiple values (for example, * "200,202") or a range of values (for example, "200-299").
For Network * Load Balancers, you can specify values between 200 and 599, with the default * value being 200-399. You can specify multiple values (for example, "200,202") or * a range of values (for example, "200-299").
For Gateway Load Balancers, * this must be "200–399".
Note that when using shorthand syntax, some * values such as commas need to be escaped.
*/ inline Matcher& WithHttpCode(Aws::String&& value) { SetHttpCode(std::move(value)); return *this;} /** *For Application Load Balancers, you can specify values between 200 and 499, * with the default value being 200. You can specify multiple values (for example, * "200,202") or a range of values (for example, "200-299").
For Network * Load Balancers, you can specify values between 200 and 599, with the default * value being 200-399. You can specify multiple values (for example, "200,202") or * a range of values (for example, "200-299").
For Gateway Load Balancers, * this must be "200–399".
Note that when using shorthand syntax, some * values such as commas need to be escaped.
*/ inline Matcher& WithHttpCode(const char* value) { SetHttpCode(value); return *this;} /** *You can specify values between 0 and 99. You can specify multiple values (for * example, "0,1") or a range of values (for example, "0-5"). The default value is * 12.
*/ inline const Aws::String& GetGrpcCode() const{ return m_grpcCode; } /** *You can specify values between 0 and 99. You can specify multiple values (for * example, "0,1") or a range of values (for example, "0-5"). The default value is * 12.
*/ inline bool GrpcCodeHasBeenSet() const { return m_grpcCodeHasBeenSet; } /** *You can specify values between 0 and 99. You can specify multiple values (for * example, "0,1") or a range of values (for example, "0-5"). The default value is * 12.
*/ inline void SetGrpcCode(const Aws::String& value) { m_grpcCodeHasBeenSet = true; m_grpcCode = value; } /** *You can specify values between 0 and 99. You can specify multiple values (for * example, "0,1") or a range of values (for example, "0-5"). The default value is * 12.
*/ inline void SetGrpcCode(Aws::String&& value) { m_grpcCodeHasBeenSet = true; m_grpcCode = std::move(value); } /** *You can specify values between 0 and 99. You can specify multiple values (for * example, "0,1") or a range of values (for example, "0-5"). The default value is * 12.
*/ inline void SetGrpcCode(const char* value) { m_grpcCodeHasBeenSet = true; m_grpcCode.assign(value); } /** *You can specify values between 0 and 99. You can specify multiple values (for * example, "0,1") or a range of values (for example, "0-5"). The default value is * 12.
*/ inline Matcher& WithGrpcCode(const Aws::String& value) { SetGrpcCode(value); return *this;} /** *You can specify values between 0 and 99. You can specify multiple values (for * example, "0,1") or a range of values (for example, "0-5"). The default value is * 12.
*/ inline Matcher& WithGrpcCode(Aws::String&& value) { SetGrpcCode(std::move(value)); return *this;} /** *You can specify values between 0 and 99. You can specify multiple values (for * example, "0,1") or a range of values (for example, "0-5"). The default value is * 12.
*/ inline Matcher& WithGrpcCode(const char* value) { SetGrpcCode(value); return *this;} private: Aws::String m_httpCode; bool m_httpCodeHasBeenSet = false; Aws::String m_grpcCode; bool m_grpcCodeHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancingv2 } // namespace Aws