Interface CreateMonitorRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateMonitorRequest.Builder,
,CreateMonitorRequest> NetworkMonitorRequest.Builder
,SdkBuilder<CreateMonitorRequest.Builder,
,CreateMonitorRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateMonitorRequest
-
Method Summary
Modifier and TypeMethodDescriptionaggregationPeriod
(Long aggregationPeriod) The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch.clientToken
(String clientToken) Unique, case-sensitive identifier to ensure the idempotency of the request.monitorName
(String monitorName) The name identifying the monitor.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.probes
(Collection<CreateMonitorProbeInput> probes) Displays a list of all of the probes created for a monitor.probes
(Consumer<CreateMonitorProbeInput.Builder>... probes) Displays a list of all of the probes created for a monitor.probes
(CreateMonitorProbeInput... probes) Displays a list of all of the probes created for a monitor.The list of key-value pairs created and assigned to the monitor.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.networkmonitor.model.NetworkMonitorRequest.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
-
monitorName
The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.
- Parameters:
monitorName
- The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
probes
Displays a list of all of the probes created for a monitor.
- Parameters:
probes
- Displays a list of all of the probes created for a monitor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
probes
Displays a list of all of the probes created for a monitor.
- Parameters:
probes
- Displays a list of all of the probes created for a monitor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
probes
Displays a list of all of the probes created for a monitor.
This is a convenience method that creates an instance of theCreateMonitorProbeInput.Builder
avoiding the need to create one manually viaCreateMonitorProbeInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprobes(List<CreateMonitorProbeInput>)
.- Parameters:
probes
- a consumer that will call methods onCreateMonitorProbeInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
aggregationPeriod
The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either
30
or60
.60
is the default if no period is chosen.- Parameters:
aggregationPeriod
- The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either30
or60
.60
is the default if no period is chosen.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.
- Parameters:
clientToken
- Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The list of key-value pairs created and assigned to the monitor.
- Parameters:
tags
- The list of key-value pairs created and assigned to the monitor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateMonitorRequest.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
CreateMonitorRequest.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.
-