/** * 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 MemoryDB { namespace Model { /** *

Represents a single security group and its status.

See Also:

* AWS * API Reference

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

The identifier of the security group.

*/ inline const Aws::String& GetSecurityGroupId() const{ return m_securityGroupId; } /** *

The identifier of the security group.

*/ inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; } /** *

The identifier of the security group.

*/ inline void SetSecurityGroupId(const Aws::String& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = value; } /** *

The identifier of the security group.

*/ inline void SetSecurityGroupId(Aws::String&& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = std::move(value); } /** *

The identifier of the security group.

*/ inline void SetSecurityGroupId(const char* value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId.assign(value); } /** *

The identifier of the security group.

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

The identifier of the security group.

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

The identifier of the security group.

*/ inline SecurityGroupMembership& WithSecurityGroupId(const char* value) { SetSecurityGroupId(value); return *this;} /** *

The status of the security group membership. The status changes whenever a * security group is modified, or when the security groups assigned to a cluster * are modified.

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

The status of the security group membership. The status changes whenever a * security group is modified, or when the security groups assigned to a cluster * are modified.

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

The status of the security group membership. The status changes whenever a * security group is modified, or when the security groups assigned to a cluster * are modified.

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

The status of the security group membership. The status changes whenever a * security group is modified, or when the security groups assigned to a cluster * are modified.

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

The status of the security group membership. The status changes whenever a * security group is modified, or when the security groups assigned to a cluster * are modified.

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

The status of the security group membership. The status changes whenever a * security group is modified, or when the security groups assigned to a cluster * are modified.

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

The status of the security group membership. The status changes whenever a * security group is modified, or when the security groups assigned to a cluster * are modified.

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

The status of the security group membership. The status changes whenever a * security group is modified, or when the security groups assigned to a cluster * are modified.

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