/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class ModifySecurityGroupRulesRequest : public EC2Request { public: AWS_EC2_API ModifySecurityGroupRulesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ModifySecurityGroupRules"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ID of the security group.

*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *

The ID of the security group.

*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *

The ID of the security group.

*/ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *

The ID of the security group.

*/ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *

The ID of the security group.

*/ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** *

The ID of the security group.

*/ inline ModifySecurityGroupRulesRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *

The ID of the security group.

*/ inline ModifySecurityGroupRulesRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *

The ID of the security group.

*/ inline ModifySecurityGroupRulesRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *

Information about the security group properties to update.

*/ inline const Aws::Vector& GetSecurityGroupRules() const{ return m_securityGroupRules; } /** *

Information about the security group properties to update.

*/ inline bool SecurityGroupRulesHasBeenSet() const { return m_securityGroupRulesHasBeenSet; } /** *

Information about the security group properties to update.

*/ inline void SetSecurityGroupRules(const Aws::Vector& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules = value; } /** *

Information about the security group properties to update.

*/ inline void SetSecurityGroupRules(Aws::Vector&& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules = std::move(value); } /** *

Information about the security group properties to update.

*/ inline ModifySecurityGroupRulesRequest& WithSecurityGroupRules(const Aws::Vector& value) { SetSecurityGroupRules(value); return *this;} /** *

Information about the security group properties to update.

*/ inline ModifySecurityGroupRulesRequest& WithSecurityGroupRules(Aws::Vector&& value) { SetSecurityGroupRules(std::move(value)); return *this;} /** *

Information about the security group properties to update.

*/ inline ModifySecurityGroupRulesRequest& AddSecurityGroupRules(const SecurityGroupRuleUpdate& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules.push_back(value); return *this; } /** *

Information about the security group properties to update.

*/ inline ModifySecurityGroupRulesRequest& AddSecurityGroupRules(SecurityGroupRuleUpdate&& value) { m_securityGroupRulesHasBeenSet = true; m_securityGroupRules.push_back(std::move(value)); return *this; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline ModifySecurityGroupRulesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_groupId; bool m_groupIdHasBeenSet = false; Aws::Vector m_securityGroupRules; bool m_securityGroupRulesHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws