/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace EFS { namespace Model { /** *

See Also:

AWS * API Reference

*/ class ModifyMountTargetSecurityGroupsRequest : public EFSRequest { public: AWS_EFS_API ModifyMountTargetSecurityGroupsRequest(); // 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 "ModifyMountTargetSecurityGroups"; } AWS_EFS_API Aws::String SerializePayload() const override; /** *

The ID of the mount target whose security groups you want to modify.

*/ inline const Aws::String& GetMountTargetId() const{ return m_mountTargetId; } /** *

The ID of the mount target whose security groups you want to modify.

*/ inline bool MountTargetIdHasBeenSet() const { return m_mountTargetIdHasBeenSet; } /** *

The ID of the mount target whose security groups you want to modify.

*/ inline void SetMountTargetId(const Aws::String& value) { m_mountTargetIdHasBeenSet = true; m_mountTargetId = value; } /** *

The ID of the mount target whose security groups you want to modify.

*/ inline void SetMountTargetId(Aws::String&& value) { m_mountTargetIdHasBeenSet = true; m_mountTargetId = std::move(value); } /** *

The ID of the mount target whose security groups you want to modify.

*/ inline void SetMountTargetId(const char* value) { m_mountTargetIdHasBeenSet = true; m_mountTargetId.assign(value); } /** *

The ID of the mount target whose security groups you want to modify.

*/ inline ModifyMountTargetSecurityGroupsRequest& WithMountTargetId(const Aws::String& value) { SetMountTargetId(value); return *this;} /** *

The ID of the mount target whose security groups you want to modify.

*/ inline ModifyMountTargetSecurityGroupsRequest& WithMountTargetId(Aws::String&& value) { SetMountTargetId(std::move(value)); return *this;} /** *

The ID of the mount target whose security groups you want to modify.

*/ inline ModifyMountTargetSecurityGroupsRequest& WithMountTargetId(const char* value) { SetMountTargetId(value); return *this;} /** *

An array of up to five VPC security group IDs.

*/ inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } /** *

An array of up to five VPC security group IDs.

*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *

An array of up to five VPC security group IDs.

*/ inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } /** *

An array of up to five VPC security group IDs.

*/ inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } /** *

An array of up to five VPC security group IDs.

*/ inline ModifyMountTargetSecurityGroupsRequest& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} /** *

An array of up to five VPC security group IDs.

*/ inline ModifyMountTargetSecurityGroupsRequest& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

An array of up to five VPC security group IDs.

*/ inline ModifyMountTargetSecurityGroupsRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

An array of up to five VPC security group IDs.

*/ inline ModifyMountTargetSecurityGroupsRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *

An array of up to five VPC security group IDs.

*/ inline ModifyMountTargetSecurityGroupsRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } private: Aws::String m_mountTargetId; bool m_mountTargetIdHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; }; } // namespace Model } // namespace EFS } // namespace Aws