@Generated(value="software.amazon.awssdk:codegen") public final class GetRecommendationPreferencesRequest extends ComputeOptimizerRequest implements ToCopyableBuilder<GetRecommendationPreferencesRequest.Builder,GetRecommendationPreferencesRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetRecommendationPreferencesRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GetRecommendationPreferencesRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
maxResults()
The maximum number of recommendation preferences to return with a single request.
|
String |
nextToken()
The token to advance to the next page of recommendation preferences.
|
ResourceType |
resourceType()
The target resource type of the recommendation preference for which to return preferences.
|
String |
resourceTypeAsString()
The target resource type of the recommendation preference for which to return preferences.
|
Scope |
scope()
An object that describes the scope of the recommendation preference to return.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetRecommendationPreferencesRequest.Builder> |
serializableBuilderClass() |
GetRecommendationPreferencesRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final ResourceType resourceType()
The target resource type of the recommendation preference for which to return preferences.
The Ec2Instance option encompasses standalone instances and instances that are part of Auto Scaling
groups. The AutoScalingGroup option encompasses only instances that are part of an Auto Scaling
group.
The valid values for this parameter are Ec2Instance and AutoScalingGroup.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
The Ec2Instance option encompasses standalone instances and instances that are part of Auto
Scaling groups. The AutoScalingGroup option encompasses only instances that are part of an
Auto Scaling group.
The valid values for this parameter are Ec2Instance and AutoScalingGroup.
ResourceTypepublic final String resourceTypeAsString()
The target resource type of the recommendation preference for which to return preferences.
The Ec2Instance option encompasses standalone instances and instances that are part of Auto Scaling
groups. The AutoScalingGroup option encompasses only instances that are part of an Auto Scaling
group.
The valid values for this parameter are Ec2Instance and AutoScalingGroup.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
The Ec2Instance option encompasses standalone instances and instances that are part of Auto
Scaling groups. The AutoScalingGroup option encompasses only instances that are part of an
Auto Scaling group.
The valid values for this parameter are Ec2Instance and AutoScalingGroup.
ResourceTypepublic final Scope scope()
An object that describes the scope of the recommendation preference to return.
You can return recommendation preferences that are created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
You can return recommendation preferences that are created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
public final String nextToken()
The token to advance to the next page of recommendation preferences.
public final Integer maxResults()
The maximum number of recommendation preferences to return with a single request.
To retrieve the remaining results, make another request with the returned nextToken value.
To retrieve the remaining results, make another request with the returned nextToken value.
public GetRecommendationPreferencesRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetRecommendationPreferencesRequest.Builder,GetRecommendationPreferencesRequest>toBuilder in class ComputeOptimizerRequestpublic static GetRecommendationPreferencesRequest.Builder builder()
public static Class<? extends GetRecommendationPreferencesRequest.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.