Interface ResourceState.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ResourceState.Builder,ResourceState>,SdkBuilder<ResourceState.Builder,ResourceState>,SdkPojo
- Enclosing class:
- ResourceState
public static interface ResourceState.Builder extends SdkPojo, CopyableBuilder<ResourceState.Builder,ResourceState>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ResourceState.Builderec2(Consumer<State.Builder> ec2)An object detailing the state of Amazon Inspector scanning for Amazon EC2 resources.ResourceState.Builderec2(State ec2)An object detailing the state of Amazon Inspector scanning for Amazon EC2 resources.default ResourceState.Builderecr(Consumer<State.Builder> ecr)An object detailing the state of Amazon Inspector scanning for Amazon ECR resources.ResourceState.Builderecr(State ecr)An object detailing the state of Amazon Inspector scanning for Amazon ECR resources.default ResourceState.Builderlambda(Consumer<State.Builder> lambda)Sets the value of the Lambda property for this object.ResourceState.Builderlambda(State lambda)Sets the value of the Lambda property for this object.default ResourceState.BuilderlambdaCode(Consumer<State.Builder> lambdaCode)Sets the value of the LambdaCode property for this object.ResourceState.BuilderlambdaCode(State lambdaCode)Sets the value of the LambdaCode property for this object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
ec2
ResourceState.Builder ec2(State ec2)
An object detailing the state of Amazon Inspector scanning for Amazon EC2 resources.
- Parameters:
ec2- An object detailing the state of Amazon Inspector scanning for Amazon EC2 resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2
default ResourceState.Builder ec2(Consumer<State.Builder> ec2)
An object detailing the state of Amazon Inspector scanning for Amazon EC2 resources.
This is a convenience method that creates an instance of theState.Builderavoiding the need to create one manually viaState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toec2(State).- Parameters:
ec2- a consumer that will call methods onState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ec2(State)
-
ecr
ResourceState.Builder ecr(State ecr)
An object detailing the state of Amazon Inspector scanning for Amazon ECR resources.
- Parameters:
ecr- An object detailing the state of Amazon Inspector scanning for Amazon ECR resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ecr
default ResourceState.Builder ecr(Consumer<State.Builder> ecr)
An object detailing the state of Amazon Inspector scanning for Amazon ECR resources.
This is a convenience method that creates an instance of theState.Builderavoiding the need to create one manually viaState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toecr(State).- Parameters:
ecr- a consumer that will call methods onState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ecr(State)
-
lambda
ResourceState.Builder lambda(State lambda)
Sets the value of the Lambda property for this object.- Parameters:
lambda- The new value for the Lambda property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambda
default ResourceState.Builder lambda(Consumer<State.Builder> lambda)
Sets the value of the Lambda property for this object. This is a convenience method that creates an instance of theState.Builderavoiding the need to create one manually viaState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolambda(State).- Parameters:
lambda- a consumer that will call methods onState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
lambda(State)
-
lambdaCode
ResourceState.Builder lambdaCode(State lambdaCode)
Sets the value of the LambdaCode property for this object.- Parameters:
lambdaCode- The new value for the LambdaCode property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambdaCode
default ResourceState.Builder lambdaCode(Consumer<State.Builder> lambdaCode)
Sets the value of the LambdaCode property for this object. This is a convenience method that creates an instance of theState.Builderavoiding the need to create one manually viaState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolambdaCode(State).- Parameters:
lambdaCode- a consumer that will call methods onState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
lambdaCode(State)
-
-