Class ListServersRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.migrationhubstrategy.model.MigrationHubStrategyRequest
-
- software.amazon.awssdk.services.migrationhubstrategy.model.ListServersRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ListServersRequest.Builder,ListServersRequest>
@Generated("software.amazon.awssdk:codegen") public final class ListServersRequest extends MigrationHubStrategyRequest implements ToCopyableBuilder<ListServersRequest.Builder,ListServersRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceListServersRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListServersRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfilterValue()Specifies the filter value, which is based on the type of server criteria.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)List<Group>groupIdFilter()Specifies the group ID to filter on.booleanhasGroupIdFilter()For responses, this returns true if the service returned a value for the GroupIdFilter property.inthashCode()IntegermaxResults()The maximum number of items to include in the response.StringnextToken()The token from a previous call that you use to retrieve the next set of results.List<SdkField<?>>sdkFields()static Class<? extends ListServersRequest.Builder>serializableBuilderClass()ServerCriteriaserverCriteria()Criteria for filtering servers.StringserverCriteriaAsString()Criteria for filtering servers.SortOrdersort()Specifies whether to sort by ascending (ASC) or descending (DESC) order.StringsortAsString()Specifies whether to sort by ascending (ASC) or descending (DESC) order.ListServersRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
filterValue
public final String filterValue()
Specifies the filter value, which is based on the type of server criteria. For example, if
serverCriteriaisOS_NAME, and thefilterValueis equal toWindowsServer, thenListServersreturns all of the servers matching the OS nameWindowsServer.- Returns:
- Specifies the filter value, which is based on the type of server criteria. For example, if
serverCriteriaisOS_NAME, and thefilterValueis equal toWindowsServer, thenListServersreturns all of the servers matching the OS nameWindowsServer.
-
hasGroupIdFilter
public final boolean hasGroupIdFilter()
For responses, this returns true if the service returned a value for the GroupIdFilter property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
groupIdFilter
public final List<Group> groupIdFilter()
Specifies the group ID to filter on.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasGroupIdFilter()method.- Returns:
- Specifies the group ID to filter on.
-
maxResults
public final Integer maxResults()
The maximum number of items to include in the response. The maximum value is 100.
- Returns:
- The maximum number of items to include in the response. The maximum value is 100.
-
nextToken
public final String nextToken()
The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set
maxResultsto 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.- Returns:
- The token from a previous call that you use to retrieve the next set of results. For example, if a
previous call to this action returned 100 items, but you set
maxResultsto 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.
-
serverCriteria
public final ServerCriteria serverCriteria()
Criteria for filtering servers.
If the service returns an enum value that is not available in the current SDK version,
serverCriteriawill returnServerCriteria.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromserverCriteriaAsString().- Returns:
- Criteria for filtering servers.
- See Also:
ServerCriteria
-
serverCriteriaAsString
public final String serverCriteriaAsString()
Criteria for filtering servers.
If the service returns an enum value that is not available in the current SDK version,
serverCriteriawill returnServerCriteria.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromserverCriteriaAsString().- Returns:
- Criteria for filtering servers.
- See Also:
ServerCriteria
-
sort
public final SortOrder sort()
Specifies whether to sort by ascending (
ASC) or descending (DESC) order.If the service returns an enum value that is not available in the current SDK version,
sortwill returnSortOrder.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsortAsString().- Returns:
- Specifies whether to sort by ascending (
ASC) or descending (DESC) order. - See Also:
SortOrder
-
sortAsString
public final String sortAsString()
Specifies whether to sort by ascending (
ASC) or descending (DESC) order.If the service returns an enum value that is not available in the current SDK version,
sortwill returnSortOrder.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsortAsString().- Returns:
- Specifies whether to sort by ascending (
ASC) or descending (DESC) order. - See Also:
SortOrder
-
toBuilder
public ListServersRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ListServersRequest.Builder,ListServersRequest>- Specified by:
toBuilderin classMigrationHubStrategyRequest
-
builder
public static ListServersRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends ListServersRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-