/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about the state of the load balancer.See Also:
* AWS
* API Reference
The state code. The initial state of the load balancer is provisioning.
*After the load balancer is fully set up and ready to route traffic, its state * is active.
If the load balancer could not be set up, its state is failed. *
*/ inline const Aws::String& GetCode() const{ return m_code; } /** *The state code. The initial state of the load balancer is provisioning.
*After the load balancer is fully set up and ready to route traffic, its state * is active.
If the load balancer could not be set up, its state is failed. *
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The state code. The initial state of the load balancer is provisioning.
*After the load balancer is fully set up and ready to route traffic, its state * is active.
If the load balancer could not be set up, its state is failed. *
*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *The state code. The initial state of the load balancer is provisioning.
*After the load balancer is fully set up and ready to route traffic, its state * is active.
If the load balancer could not be set up, its state is failed. *
*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The state code. The initial state of the load balancer is provisioning.
*After the load balancer is fully set up and ready to route traffic, its state * is active.
If the load balancer could not be set up, its state is failed. *
*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *The state code. The initial state of the load balancer is provisioning.
*After the load balancer is fully set up and ready to route traffic, its state * is active.
If the load balancer could not be set up, its state is failed. *
*/ inline LoadBalancerState& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *The state code. The initial state of the load balancer is provisioning.
*After the load balancer is fully set up and ready to route traffic, its state * is active.
If the load balancer could not be set up, its state is failed. *
*/ inline LoadBalancerState& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *The state code. The initial state of the load balancer is provisioning.
*After the load balancer is fully set up and ready to route traffic, its state * is active.
If the load balancer could not be set up, its state is failed. *
*/ inline LoadBalancerState& WithCode(const char* value) { SetCode(value); return *this;} /** *A description of the state.
*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *A description of the state.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *A description of the state.
*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *A description of the state.
*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *A description of the state.
*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *A description of the state.
*/ inline LoadBalancerState& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *A description of the state.
*/ inline LoadBalancerState& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *A description of the state.
*/ inline LoadBalancerState& WithReason(const char* value) { SetReason(value); return *this;} private: Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws