Interface CreateScopeRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateScopeRequest.Builder,,CreateScopeRequest> NetworkFlowMonitorRequest.Builder,SdkBuilder<CreateScopeRequest.Builder,,CreateScopeRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.networkflowmonitor.model.NetworkFlowMonitorRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
targets
The targets to define the scope to be monitored. A target is an array of targetResources, which are currently Region-account pairs, defined by targetResource constructs.
- Parameters:
targets- The targets to define the scope to be monitored. A target is an array of targetResources, which are currently Region-account pairs, defined by targetResource constructs.- 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. A target is an array of targetResources, which are currently Region-account pairs, defined by targetResource constructs.
- Parameters:
targets- The targets to define the scope to be monitored. A target is an array of targetResources, which are currently Region-account pairs, defined by targetResource constructs.- 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. A target is an array of targetResources, which are currently Region-account pairs, defined by targetResource constructs.
This is a convenience method that creates an instance of theTargetResource.Builderavoiding the need to create one manually viaTargetResource.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.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.
-