Interface EC2SecurityGroup.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<EC2SecurityGroup.Builder,,- EC2SecurityGroup> - SdkBuilder<EC2SecurityGroup.Builder,,- EC2SecurityGroup> - SdkPojo
- Enclosing class:
- EC2SecurityGroup
@Mutable
@NotThreadSafe
public static interface EC2SecurityGroup.Builder
extends SdkPojo, CopyableBuilder<EC2SecurityGroup.Builder,EC2SecurityGroup> 
- 
Method SummaryModifier and TypeMethodDescriptionec2SecurityGroupName(String ec2SecurityGroupName) The name of the EC2 Security Group.ec2SecurityGroupOwnerId(String ec2SecurityGroupOwnerId) The Amazon Web Services account ID of the owner of the EC2 security group specified in theEC2SecurityGroupNamefield.The status of the EC2 security group.tags(Collection<Tag> tags) The list of tags for the EC2 security group.tags(Consumer<Tag.Builder>... tags) The list of tags for the EC2 security group.The list of tags for the EC2 security group.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
statusThe status of the EC2 security group. - Parameters:
- status- The status of the EC2 security group.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
ec2SecurityGroupNameThe name of the EC2 Security Group. - Parameters:
- ec2SecurityGroupName- The name of the EC2 Security Group.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
ec2SecurityGroupOwnerIdThe Amazon Web Services account ID of the owner of the EC2 security group specified in the EC2SecurityGroupNamefield.- Parameters:
- ec2SecurityGroupOwnerId- The Amazon Web Services account ID of the owner of the EC2 security group specified in the- EC2SecurityGroupNamefield.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
tagsThe list of tags for the EC2 security group. - Parameters:
- tags- The list of tags for the EC2 security group.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
tagsThe list of tags for the EC2 security group. - Parameters:
- tags- The list of tags for the EC2 security group.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
tagsThe list of tags for the EC2 security group. This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
- tags- a consumer that will call methods on- Tag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-