Interface CreateScopeRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateScopeRequest.Builder,
,CreateScopeRequest> NetworkFlowMonitorRequest.Builder
,SdkBuilder<CreateScopeRequest.Builder,
,CreateScopeRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateScopeRequest
@Mutable
@NotThreadSafe
public static interface CreateScopeRequest.Builder
extends NetworkFlowMonitorRequest.Builder, SdkPojo, CopyableBuilder<CreateScopeRequest.Builder,CreateScopeRequest>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The tags for a scope.targets
(Collection<TargetResource> targets) The targets to define the scope to be monitored.targets
(Consumer<TargetResource.Builder>... targets) The targets to define the scope to be monitored.targets
(TargetResource... targets) The targets to define the scope to be monitored.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.networkflowmonitor.model.NetworkFlowMonitorRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
targets
The targets to define the scope to be monitored. Currently, a target is an Amazon Web Services account.
- Parameters:
targets
- The targets to define the scope to be monitored. Currently, a target is an Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets to define the scope to be monitored. Currently, a target is an Amazon Web Services account.
- Parameters:
targets
- The targets to define the scope to be monitored. Currently, a target is an Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
The targets to define the scope to be monitored. Currently, a target is an Amazon Web Services account.
This is a convenience method that creates an instance of theTargetResource.Builder
avoiding the need to create one manually viaTargetResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargets(List<TargetResource>)
.- Parameters:
targets
- a consumer that will call methods onTargetResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. Don't reuse the same client token for other API requests.
- Parameters:
clientToken
- A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. Don't reuse the same client token for other API requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for a scope. You can add a maximum of 200 tags.
- Parameters:
tags
- The tags for a scope. You can add a maximum of 200 tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateScopeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateScopeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-