Interface CreateMonitorRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateMonitorRequest.Builder,CreateMonitorRequest>,NetworkMonitorRequest.Builder,SdkBuilder<CreateMonitorRequest.Builder,CreateMonitorRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateMonitorRequest
public static interface CreateMonitorRequest.Builder extends NetworkMonitorRequest.Builder, SdkPojo, CopyableBuilder<CreateMonitorRequest.Builder,CreateMonitorRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateMonitorRequest.BuilderaggregationPeriod(Long aggregationPeriod)The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch.CreateMonitorRequest.BuilderclientToken(String clientToken)Unique, case-sensitive identifier to ensure the idempotency of the request.CreateMonitorRequest.BuildermonitorName(String monitorName)The name identifying the monitor.CreateMonitorRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateMonitorRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateMonitorRequest.Builderprobes(Collection<CreateMonitorProbeInput> probes)Displays a list of all of the probes created for a monitor.CreateMonitorRequest.Builderprobes(Consumer<CreateMonitorProbeInput.Builder>... probes)Displays a list of all of the probes created for a monitor.CreateMonitorRequest.Builderprobes(CreateMonitorProbeInput... probes)Displays a list of all of the probes created for a monitor.CreateMonitorRequest.Buildertags(Map<String,String> tags)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, sdkFields
-
-
-
-
Method Detail
-
monitorName
CreateMonitorRequest.Builder monitorName(String 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
CreateMonitorRequest.Builder probes(Collection<CreateMonitorProbeInput> 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
CreateMonitorRequest.Builder probes(CreateMonitorProbeInput... 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
CreateMonitorRequest.Builder probes(Consumer<CreateMonitorProbeInput.Builder>... probes)
Displays a list of all of the probes created for a monitor.
This is a convenience method that creates an instance of theCreateMonitorProbeInput.Builderavoiding the need to create one manually viaCreateMonitorProbeInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#probes(List.) - 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:
#probes(java.util.Collection)
-
aggregationPeriod
CreateMonitorRequest.Builder aggregationPeriod(Long aggregationPeriod)
The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either
30or60.60is 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 either30or60.60is the default if no period is chosen.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
CreateMonitorRequest.Builder clientToken(String 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
CreateMonitorRequest.Builder tags(Map<String,String> 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateMonitorRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-