@Generated(value="software.amazon.awssdk:codegen") public final class EnableAwsNetworkPerformanceMetricSubscriptionRequest extends Ec2Request implements ToCopyableBuilder<EnableAwsNetworkPerformanceMetricSubscriptionRequest.Builder,EnableAwsNetworkPerformanceMetricSubscriptionRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
EnableAwsNetworkPerformanceMetricSubscriptionRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static EnableAwsNetworkPerformanceMetricSubscriptionRequest.Builder |
builder() |
String |
destination()
The target Region or Availability Zone that the metric subscription is enabled for.
|
Boolean |
dryRun()
Checks whether you have the required permissions for the action, without actually making the request, and
provides an error response.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
MetricType |
metric()
The metric used for the enabled subscription.
|
String |
metricAsString()
The metric used for the enabled subscription.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EnableAwsNetworkPerformanceMetricSubscriptionRequest.Builder> |
serializableBuilderClass() |
String |
source()
The source Region or Availability Zone that the metric subscription is enabled for.
|
StatisticType |
statistic()
The statistic used for the enabled subscription.
|
String |
statisticAsString()
The statistic used for the enabled subscription.
|
EnableAwsNetworkPerformanceMetricSubscriptionRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String source()
The source Region or Availability Zone that the metric subscription is enabled for. For example,
us-east-1.
us-east-1.public final String destination()
The target Region or Availability Zone that the metric subscription is enabled for. For example,
eu-west-1.
eu-west-1.public final MetricType metric()
The metric used for the enabled subscription.
If the service returns an enum value that is not available in the current SDK version, metric will
return MetricType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
metricAsString().
MetricTypepublic final String metricAsString()
The metric used for the enabled subscription.
If the service returns an enum value that is not available in the current SDK version, metric will
return MetricType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
metricAsString().
MetricTypepublic final StatisticType statistic()
The statistic used for the enabled subscription.
If the service returns an enum value that is not available in the current SDK version, statistic will
return StatisticType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statisticAsString().
StatisticTypepublic final String statisticAsString()
The statistic used for the enabled subscription.
If the service returns an enum value that is not available in the current SDK version, statistic will
return StatisticType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statisticAsString().
StatisticTypepublic final Boolean 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 is UnauthorizedOperation.
DryRunOperation. Otherwise, it is UnauthorizedOperation.public EnableAwsNetworkPerformanceMetricSubscriptionRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EnableAwsNetworkPerformanceMetricSubscriptionRequest.Builder,EnableAwsNetworkPerformanceMetricSubscriptionRequest>toBuilder in class Ec2Requestpublic static EnableAwsNetworkPerformanceMetricSubscriptionRequest.Builder builder()
public static Class<? extends EnableAwsNetworkPerformanceMetricSubscriptionRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.