Interface EnableAwsNetworkPerformanceMetricSubscriptionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<EnableAwsNetworkPerformanceMetricSubscriptionRequest.Builder,
,EnableAwsNetworkPerformanceMetricSubscriptionRequest> Ec2Request.Builder
,SdkBuilder<EnableAwsNetworkPerformanceMetricSubscriptionRequest.Builder,
,EnableAwsNetworkPerformanceMetricSubscriptionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
EnableAwsNetworkPerformanceMetricSubscriptionRequest
-
Method Summary
Modifier and TypeMethodDescriptiondestination
(String destination) The target Region (likeus-east-2
) or Availability Zone ID (likeuse2-az2
) that the metric subscription is enabled for.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.The metric used for the enabled subscription.metric
(MetricType metric) The metric used for the enabled subscription.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The source Region (likeus-east-1
) or Availability Zone ID (likeuse1-az1
) that the metric subscription is enabled for.The statistic used for the enabled subscription.statistic
(StatisticType statistic) The statistic used for the enabled subscription.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.ec2.model.Ec2Request.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 Details
-
source
The source Region (like
us-east-1
) or Availability Zone ID (likeuse1-az1
) that the metric subscription is enabled for. If you use Availability Zone IDs, the Source and Destination Availability Zones must be in the same Region.- Parameters:
source
- The source Region (likeus-east-1
) or Availability Zone ID (likeuse1-az1
) that the metric subscription is enabled for. If you use Availability Zone IDs, the Source and Destination Availability Zones must be in the same Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destination
The target Region (like
us-east-2
) or Availability Zone ID (likeuse2-az2
) that the metric subscription is enabled for. If you use Availability Zone IDs, the Source and Destination Availability Zones must be in the same Region.- Parameters:
destination
- The target Region (likeus-east-2
) or Availability Zone ID (likeuse2-az2
) that the metric subscription is enabled for. If you use Availability Zone IDs, the Source and Destination Availability Zones must be in the same Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metric
The metric used for the enabled subscription.
- Parameters:
metric
- The metric used for the enabled subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metric
The metric used for the enabled subscription.
- Parameters:
metric
- The metric used for the enabled subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statistic
The statistic used for the enabled subscription.
- Parameters:
statistic
- The statistic used for the enabled subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statistic
The statistic used for the enabled subscription.
- Parameters:
statistic
- The statistic used for the enabled subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
EnableAwsNetworkPerformanceMetricSubscriptionRequest.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
EnableAwsNetworkPerformanceMetricSubscriptionRequest.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.
-