/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the state of a network interface permission.See
* Also:
AWS
* API Reference
The state of the permission.
*/ inline const NetworkInterfacePermissionStateCode& GetState() const{ return m_state; } /** *The state of the permission.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the permission.
*/ inline void SetState(const NetworkInterfacePermissionStateCode& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the permission.
*/ inline void SetState(NetworkInterfacePermissionStateCode&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the permission.
*/ inline NetworkInterfacePermissionState& WithState(const NetworkInterfacePermissionStateCode& value) { SetState(value); return *this;} /** *The state of the permission.
*/ inline NetworkInterfacePermissionState& WithState(NetworkInterfacePermissionStateCode&& value) { SetState(std::move(value)); return *this;} /** *A status message, if applicable.
*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *A status message, if applicable.
*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *A status message, if applicable.
*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *A status message, if applicable.
*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *A status message, if applicable.
*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *A status message, if applicable.
*/ inline NetworkInterfacePermissionState& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *A status message, if applicable.
*/ inline NetworkInterfacePermissionState& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *A status message, if applicable.
*/ inline NetworkInterfacePermissionState& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} private: NetworkInterfacePermissionStateCode m_state; bool m_stateHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws