public class ModifyMountTargetSecurityGroupsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
ModifyMountTargetSecurityGroups operation
.
Modifies the set of security groups in effect for a mount target.
When you create a mount target, Amazon EFS also creates a new network
interface (see CreateMountTarget). This operation replaces the
security groups in effect for the network interface associated with a
mount target, with the SecurityGroups
provided in the
request. This operation requires that the network interface of the
mount target has been created and the life cycle state of the mount
target is not "deleted".
The operation requires permissions for the following actions:
elasticfilesystem:ModifyMountTargetSecurityGroups
action on the mount target's file system. ec2:ModifyNetworkInterfaceAttribute
action on the
mount target's network interface. NOOP
Constructor and Description |
---|
ModifyMountTargetSecurityGroupsRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyMountTargetSecurityGroupsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getMountTargetId()
The ID of the mount target whose security groups you want to modify.
|
List<String> |
getSecurityGroups()
An array of up to five VPC security group IDs.
|
int |
hashCode() |
void |
setMountTargetId(String mountTargetId)
The ID of the mount target whose security groups you want to modify.
|
void |
setSecurityGroups(Collection<String> securityGroups)
An array of up to five VPC security group IDs.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ModifyMountTargetSecurityGroupsRequest |
withMountTargetId(String mountTargetId)
The ID of the mount target whose security groups you want to modify.
|
ModifyMountTargetSecurityGroupsRequest |
withSecurityGroups(Collection<String> securityGroups)
An array of up to five VPC security group IDs.
|
ModifyMountTargetSecurityGroupsRequest |
withSecurityGroups(String... securityGroups)
An array of up to five VPC security group IDs.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ModifyMountTargetSecurityGroupsRequest()
public String getMountTargetId()
Constraints:
Pattern: fsmt-[0-9a-f]{8}
public void setMountTargetId(String mountTargetId)
Constraints:
Pattern: fsmt-[0-9a-f]{8}
mountTargetId
- The ID of the mount target whose security groups you want to modify.public ModifyMountTargetSecurityGroupsRequest withMountTargetId(String mountTargetId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: fsmt-[0-9a-f]{8}
mountTargetId
- The ID of the mount target whose security groups you want to modify.public List<String> getSecurityGroups()
Constraints:
Length: 0 - 5
public void setSecurityGroups(Collection<String> securityGroups)
Constraints:
Length: 0 - 5
securityGroups
- An array of up to five VPC security group IDs.public ModifyMountTargetSecurityGroupsRequest withSecurityGroups(String... securityGroups)
NOTE: This method appends the values to the existing list (if
any). Use setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 5
securityGroups
- An array of up to five VPC security group IDs.public ModifyMountTargetSecurityGroupsRequest withSecurityGroups(Collection<String> securityGroups)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 5
securityGroups
- An array of up to five VPC security group IDs.public String toString()
toString
in class Object
Object.toString()
public ModifyMountTargetSecurityGroupsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.