/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a single cache security group and its status.See
* Also:
AWS
* API Reference
The identifier of the cache security group.
*/ inline const Aws::String& GetSecurityGroupId() const{ return m_securityGroupId; } /** *The identifier of the cache security group.
*/ inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; } /** *The identifier of the cache security group.
*/ inline void SetSecurityGroupId(const Aws::String& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = value; } /** *The identifier of the cache security group.
*/ inline void SetSecurityGroupId(Aws::String&& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = std::move(value); } /** *The identifier of the cache security group.
*/ inline void SetSecurityGroupId(const char* value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId.assign(value); } /** *The identifier of the cache security group.
*/ inline SecurityGroupMembership& WithSecurityGroupId(const Aws::String& value) { SetSecurityGroupId(value); return *this;} /** *The identifier of the cache security group.
*/ inline SecurityGroupMembership& WithSecurityGroupId(Aws::String&& value) { SetSecurityGroupId(std::move(value)); return *this;} /** *The identifier of the cache security group.
*/ inline SecurityGroupMembership& WithSecurityGroupId(const char* value) { SetSecurityGroupId(value); return *this;} /** *The status of the cache security group membership. The status changes * whenever a cache security group is modified, or when the cache security groups * assigned to a cluster are modified.
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *The status of the cache security group membership. The status changes * whenever a cache security group is modified, or when the cache security groups * assigned to a cluster are modified.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the cache security group membership. The status changes * whenever a cache security group is modified, or when the cache 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 cache security group membership. The status changes * whenever a cache security group is modified, or when the cache 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 cache security group membership. The status changes * whenever a cache security group is modified, or when the cache 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 cache security group membership. The status changes * whenever a cache security group is modified, or when the cache security groups * assigned to a cluster are modified.
*/ inline SecurityGroupMembership& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *The status of the cache security group membership. The status changes * whenever a cache security group is modified, or when the cache security groups * assigned to a cluster are modified.
*/ inline SecurityGroupMembership& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *The status of the cache security group membership. The status changes * whenever a cache security group is modified, or when the cache 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 ElastiCache } // namespace Aws