Interface CreateMonitorRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateMonitorRequest.Builder,CreateMonitorRequest>,NetworkFlowMonitorRequest.Builder,SdkBuilder<CreateMonitorRequest.Builder,CreateMonitorRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateMonitorRequest
public static interface CreateMonitorRequest.Builder extends NetworkFlowMonitorRequest.Builder, SdkPojo, CopyableBuilder<CreateMonitorRequest.Builder,CreateMonitorRequest>
-
-
Method Summary
-
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 Detail
-
monitorName
CreateMonitorRequest.Builder monitorName(String monitorName)
The name of the monitor.
- Parameters:
monitorName- The name of the monitor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localResources
CreateMonitorRequest.Builder localResources(Collection<MonitorLocalResource> localResources)
The local resources to monitor. A local resource, in a bi-directional flow of a workload, is the host where the agent is installed. For example, if a workload consists of an interaction between a web service and a backend database (for example, Amazon Relational Database Service (RDS)), the EC2 instance hosting the web service, which also runs the agent, is the local resource.
- Parameters:
localResources- The local resources to monitor. A local resource, in a bi-directional flow of a workload, is the host where the agent is installed. For example, if a workload consists of an interaction between a web service and a backend database (for example, Amazon Relational Database Service (RDS)), the EC2 instance hosting the web service, which also runs the agent, is the local resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localResources
CreateMonitorRequest.Builder localResources(MonitorLocalResource... localResources)
The local resources to monitor. A local resource, in a bi-directional flow of a workload, is the host where the agent is installed. For example, if a workload consists of an interaction between a web service and a backend database (for example, Amazon Relational Database Service (RDS)), the EC2 instance hosting the web service, which also runs the agent, is the local resource.
- Parameters:
localResources- The local resources to monitor. A local resource, in a bi-directional flow of a workload, is the host where the agent is installed. For example, if a workload consists of an interaction between a web service and a backend database (for example, Amazon Relational Database Service (RDS)), the EC2 instance hosting the web service, which also runs the agent, is the local resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localResources
CreateMonitorRequest.Builder localResources(Consumer<MonitorLocalResource.Builder>... localResources)
The local resources to monitor. A local resource, in a bi-directional flow of a workload, is the host where the agent is installed. For example, if a workload consists of an interaction between a web service and a backend database (for example, Amazon Relational Database Service (RDS)), the EC2 instance hosting the web service, which also runs the agent, is the local resource.
This is a convenience method that creates an instance of theMonitorLocalResource.Builderavoiding the need to create one manually viaMonitorLocalResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#localResources(List.) - Parameters:
localResources- a consumer that will call methods onMonitorLocalResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#localResources(java.util.Collection)
-
remoteResources
CreateMonitorRequest.Builder remoteResources(Collection<MonitorRemoteResource> remoteResources)
The remote resources to monitor. A remote resource is the other endpoint in the bi-directional flow of a workload, with a local resource. For example, Amazon Relational Database Service (RDS) can be a remote resource.
- Parameters:
remoteResources- The remote resources to monitor. A remote resource is the other endpoint in the bi-directional flow of a workload, with a local resource. For example, Amazon Relational Database Service (RDS) can be a remote resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remoteResources
CreateMonitorRequest.Builder remoteResources(MonitorRemoteResource... remoteResources)
The remote resources to monitor. A remote resource is the other endpoint in the bi-directional flow of a workload, with a local resource. For example, Amazon Relational Database Service (RDS) can be a remote resource.
- Parameters:
remoteResources- The remote resources to monitor. A remote resource is the other endpoint in the bi-directional flow of a workload, with a local resource. For example, Amazon Relational Database Service (RDS) can be a remote resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remoteResources
CreateMonitorRequest.Builder remoteResources(Consumer<MonitorRemoteResource.Builder>... remoteResources)
The remote resources to monitor. A remote resource is the other endpoint in the bi-directional flow of a workload, with a local resource. For example, Amazon Relational Database Service (RDS) can be a remote resource.
This is a convenience method that creates an instance of theMonitorRemoteResource.Builderavoiding the need to create one manually viaMonitorRemoteResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#remoteResources(List.) - Parameters:
remoteResources- a consumer that will call methods onMonitorRemoteResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#remoteResources(java.util.Collection)
-
scopeArn
CreateMonitorRequest.Builder scopeArn(String scopeArn)
The Amazon Resource Name (ARN) of the scope for the monitor.
- Parameters:
scopeArn- The Amazon Resource Name (ARN) of the scope for the monitor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
CreateMonitorRequest.Builder clientToken(String 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
CreateMonitorRequest.Builder tags(Map<String,String> tags)
The tags for a monitor. You can add a maximum of 200 tags.
- Parameters:
tags- The tags for a monitor. You can add a maximum of 200 tags.- 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
-
-