Interface UpdateSecurityGroupRuleDescriptionsIngressRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateSecurityGroupRuleDescriptionsIngressRequest.Builder,,UpdateSecurityGroupRuleDescriptionsIngressRequest> Ec2Request.Builder,SdkBuilder<UpdateSecurityGroupRuleDescriptionsIngressRequest.Builder,,UpdateSecurityGroupRuleDescriptionsIngressRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateSecurityGroupRuleDescriptionsIngressRequest
-
Method Summary
Modifier and TypeMethodDescriptionChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.The ID of the security group.[Default VPC] The name of the security group.ipPermissions(Collection<IpPermission> ipPermissions) The IP permissions for the security group rule.ipPermissions(Consumer<IpPermission.Builder>... ipPermissions) The IP permissions for the security group rule.ipPermissions(IpPermission... ipPermissions) The IP permissions for the security group rule.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.securityGroupRuleDescriptions(Collection<SecurityGroupRuleDescription> securityGroupRuleDescriptions) The description for the ingress security group rules.securityGroupRuleDescriptions(Consumer<SecurityGroupRuleDescription.Builder>... securityGroupRuleDescriptions) The description for the ingress security group rules.securityGroupRuleDescriptions(SecurityGroupRuleDescription... securityGroupRuleDescriptions) The description for the ingress security group rules.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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 isUnauthorizedOperation.- Parameters:
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 isDryRunOperation. Otherwise, it isUnauthorizedOperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupId
The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.
- Parameters:
groupId- The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupName
[Default VPC] The name of the security group. You must specify either the security group ID or the security group name. For security groups in a nondefault VPC, you must specify the security group ID.
- Parameters:
groupName- [Default VPC] The name of the security group. You must specify either the security group ID or the security group name. For security groups in a nondefault VPC, you must specify the security group ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipPermissions
UpdateSecurityGroupRuleDescriptionsIngressRequest.Builder ipPermissions(Collection<IpPermission> ipPermissions) The IP permissions for the security group rule. You must specify either IP permissions or a description.
- Parameters:
ipPermissions- The IP permissions for the security group rule. You must specify either IP permissions or a description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipPermissions
UpdateSecurityGroupRuleDescriptionsIngressRequest.Builder ipPermissions(IpPermission... ipPermissions) The IP permissions for the security group rule. You must specify either IP permissions or a description.
- Parameters:
ipPermissions- The IP permissions for the security group rule. You must specify either IP permissions or a description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipPermissions
UpdateSecurityGroupRuleDescriptionsIngressRequest.Builder ipPermissions(Consumer<IpPermission.Builder>... ipPermissions) The IP permissions for the security group rule. You must specify either IP permissions or a description.
This is a convenience method that creates an instance of theIpPermission.Builderavoiding the need to create one manually viaIpPermission.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toipPermissions(List<IpPermission>).- Parameters:
ipPermissions- a consumer that will call methods onIpPermission.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
securityGroupRuleDescriptions
UpdateSecurityGroupRuleDescriptionsIngressRequest.Builder securityGroupRuleDescriptions(Collection<SecurityGroupRuleDescription> securityGroupRuleDescriptions) The description for the ingress security group rules. You must specify either a description or IP permissions.
- Parameters:
securityGroupRuleDescriptions- The description for the ingress security group rules. You must specify either a description or IP permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupRuleDescriptions
UpdateSecurityGroupRuleDescriptionsIngressRequest.Builder securityGroupRuleDescriptions(SecurityGroupRuleDescription... securityGroupRuleDescriptions) The description for the ingress security group rules. You must specify either a description or IP permissions.
- Parameters:
securityGroupRuleDescriptions- The description for the ingress security group rules. You must specify either a description or IP permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupRuleDescriptions
UpdateSecurityGroupRuleDescriptionsIngressRequest.Builder securityGroupRuleDescriptions(Consumer<SecurityGroupRuleDescription.Builder>... securityGroupRuleDescriptions) The description for the ingress security group rules. You must specify either a description or IP permissions.
This is a convenience method that creates an instance of theSecurityGroupRuleDescription.Builderavoiding the need to create one manually viaSecurityGroupRuleDescription.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosecurityGroupRuleDescriptions(List<SecurityGroupRuleDescription>).- Parameters:
securityGroupRuleDescriptions- a consumer that will call methods onSecurityGroupRuleDescription.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateSecurityGroupRuleDescriptionsIngressRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateSecurityGroupRuleDescriptionsIngressRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-