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

An individual VPC security group and its status.

See Also:

* AWS * API Reference

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

The unique ID for this security group.

*/ inline const Aws::String& GetSecurityGroupIdentifier() const{ return m_securityGroupIdentifier; } /** *

The unique ID for this security group.

*/ inline bool SecurityGroupIdentifierHasBeenSet() const { return m_securityGroupIdentifierHasBeenSet; } /** *

The unique ID for this security group.

*/ inline void SetSecurityGroupIdentifier(const Aws::String& value) { m_securityGroupIdentifierHasBeenSet = true; m_securityGroupIdentifier = value; } /** *

The unique ID for this security group.

*/ inline void SetSecurityGroupIdentifier(Aws::String&& value) { m_securityGroupIdentifierHasBeenSet = true; m_securityGroupIdentifier = std::move(value); } /** *

The unique ID for this security group.

*/ inline void SetSecurityGroupIdentifier(const char* value) { m_securityGroupIdentifierHasBeenSet = true; m_securityGroupIdentifier.assign(value); } /** *

The unique ID for this security group.

*/ inline SecurityGroupMembership& WithSecurityGroupIdentifier(const Aws::String& value) { SetSecurityGroupIdentifier(value); return *this;} /** *

The unique ID for this security group.

*/ inline SecurityGroupMembership& WithSecurityGroupIdentifier(Aws::String&& value) { SetSecurityGroupIdentifier(std::move(value)); return *this;} /** *

The unique ID for this security group.

*/ inline SecurityGroupMembership& WithSecurityGroupIdentifier(const char* value) { SetSecurityGroupIdentifier(value); return *this;} /** *

The status of this security group.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of this security group.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of this security group.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of this security group.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of this security group.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of this security group.

*/ inline SecurityGroupMembership& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of this security group.

*/ inline SecurityGroupMembership& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of this security group.

*/ inline SecurityGroupMembership& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_securityGroupIdentifier; bool m_securityGroupIdentifierHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace DAX } // namespace Aws