/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the description of a security group rule. You can use this
* when you want to update the security group rule description for either an
* inbound or outbound rule.See Also:
AWS
* API Reference
The ID of the security group rule.
*/ inline const Aws::String& GetSecurityGroupRuleId() const{ return m_securityGroupRuleId; } /** *The ID of the security group rule.
*/ inline bool SecurityGroupRuleIdHasBeenSet() const { return m_securityGroupRuleIdHasBeenSet; } /** *The ID of the security group rule.
*/ inline void SetSecurityGroupRuleId(const Aws::String& value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId = value; } /** *The ID of the security group rule.
*/ inline void SetSecurityGroupRuleId(Aws::String&& value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId = std::move(value); } /** *The ID of the security group rule.
*/ inline void SetSecurityGroupRuleId(const char* value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId.assign(value); } /** *The ID of the security group rule.
*/ inline SecurityGroupRuleDescription& WithSecurityGroupRuleId(const Aws::String& value) { SetSecurityGroupRuleId(value); return *this;} /** *The ID of the security group rule.
*/ inline SecurityGroupRuleDescription& WithSecurityGroupRuleId(Aws::String&& value) { SetSecurityGroupRuleId(std::move(value)); return *this;} /** *The ID of the security group rule.
*/ inline SecurityGroupRuleDescription& WithSecurityGroupRuleId(const char* value) { SetSecurityGroupRuleId(value); return *this;} /** *The description of the security group rule.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the security group rule.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the security group rule.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the security group rule.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the security group rule.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the security group rule.
*/ inline SecurityGroupRuleDescription& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the security group rule.
*/ inline SecurityGroupRuleDescription& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the security group rule.
*/ inline SecurityGroupRuleDescription& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_securityGroupRuleId; bool m_securityGroupRuleIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws