@Generated(value="software.amazon.awssdk:codegen") public final class ListServersRequest extends MigrationHubStrategyRequest implements ToCopyableBuilder<ListServersRequest.Builder,ListServersRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ListServersRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ListServersRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
filterValue()
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.
|
boolean |
hasGroupIdFilter()
For responses, this returns true if the service returned a value for the GroupIdFilter property.
|
int |
hashCode() |
Integer |
maxResults()
The maximum number of items to include in the response.
|
String |
nextToken()
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() |
ServerCriteria |
serverCriteria()
Criteria for filtering servers.
|
String |
serverCriteriaAsString()
Criteria for filtering servers.
|
SortOrder |
sort()
Specifies whether to sort by ascending (
ASC) or descending (DESC) order. |
String |
sortAsString()
Specifies whether to sort by ascending (
ASC) or descending (DESC) order. |
ListServersRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String filterValue()
Specifies the filter value, which is based on the type of server criteria. For example, if
serverCriteria is OS_NAME, and the filterValue is equal to
WindowsServer, then ListServers returns all of the servers matching the OS name
WindowsServer.
serverCriteria is OS_NAME, and the filterValue is equal to
WindowsServer, then ListServers returns all of the servers matching the OS name
WindowsServer.public final boolean hasGroupIdFilter()
isEmpty() 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.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.
public final Integer maxResults()
The maximum number of items to include in the response. The maximum value is 100.
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 maxResults to 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.
maxResults to 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.public final ServerCriteria serverCriteria()
Criteria for filtering servers.
If the service returns an enum value that is not available in the current SDK version, serverCriteria
will return ServerCriteria.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from serverCriteriaAsString().
ServerCriteriapublic final String serverCriteriaAsString()
Criteria for filtering servers.
If the service returns an enum value that is not available in the current SDK version, serverCriteria
will return ServerCriteria.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from serverCriteriaAsString().
ServerCriteriapublic 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, sort will return
SortOrder.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
sortAsString().
ASC) or descending (DESC) order.SortOrderpublic 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, sort will return
SortOrder.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
sortAsString().
ASC) or descending (DESC) order.SortOrderpublic ListServersRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ListServersRequest.Builder,ListServersRequest>toBuilder in class MigrationHubStrategyRequestpublic static ListServersRequest.Builder builder()
public static Class<? extends ListServersRequest.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.