Class ListChannelMessagesRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.chimesdkmessaging.model.ChimeSdkMessagingRequest
-
- software.amazon.awssdk.services.chimesdkmessaging.model.ListChannelMessagesRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ListChannelMessagesRequest.Builder,ListChannelMessagesRequest>
@Generated("software.amazon.awssdk:codegen") public final class ListChannelMessagesRequest extends ChimeSdkMessagingRequest implements ToCopyableBuilder<ListChannelMessagesRequest.Builder,ListChannelMessagesRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceListChannelMessagesRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListChannelMessagesRequest.Builderbuilder()StringchannelArn()The ARN of the channel.StringchimeBearer()The ARN of theAppInstanceUserorAppInstanceBotthat makes the API call.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaxResults()The maximum number of messages that you want returned.StringnextToken()The token passed by previous API calls until all requested messages are returned.InstantnotAfter()The final or ending time stamp for your requested messages.InstantnotBefore()The initial or starting time stamp for your requested messages.List<SdkField<?>>sdkFields()static Class<? extends ListChannelMessagesRequest.Builder>serializableBuilderClass()SortOrdersortOrder()The order in which you want messages sorted.StringsortOrderAsString()The order in which you want messages sorted.StringsubChannelId()The ID of the SubChannel in the request.ListChannelMessagesRequest.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
-
channelArn
public final String channelArn()
The ARN of the channel.
- Returns:
- The ARN of the channel.
-
sortOrder
public final SortOrder sortOrder()
The order in which you want messages sorted. Default is Descending, based on time created.
If the service returns an enum value that is not available in the current SDK version,
sortOrderwill returnSortOrder.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsortOrderAsString().- Returns:
- The order in which you want messages sorted. Default is Descending, based on time created.
- See Also:
SortOrder
-
sortOrderAsString
public final String sortOrderAsString()
The order in which you want messages sorted. Default is Descending, based on time created.
If the service returns an enum value that is not available in the current SDK version,
sortOrderwill returnSortOrder.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsortOrderAsString().- Returns:
- The order in which you want messages sorted. Default is Descending, based on time created.
- See Also:
SortOrder
-
notBefore
public final Instant notBefore()
The initial or starting time stamp for your requested messages.
- Returns:
- The initial or starting time stamp for your requested messages.
-
notAfter
public final Instant notAfter()
The final or ending time stamp for your requested messages.
- Returns:
- The final or ending time stamp for your requested messages.
-
maxResults
public final Integer maxResults()
The maximum number of messages that you want returned.
- Returns:
- The maximum number of messages that you want returned.
-
nextToken
public final String nextToken()
The token passed by previous API calls until all requested messages are returned.
- Returns:
- The token passed by previous API calls until all requested messages are returned.
-
chimeBearer
public final String chimeBearer()
The ARN of the
AppInstanceUserorAppInstanceBotthat makes the API call.- Returns:
- The ARN of the
AppInstanceUserorAppInstanceBotthat makes the API call.
-
subChannelId
public final String subChannelId()
The ID of the SubChannel in the request.
Only required when listing the messages in a SubChannel that the user belongs to.
- Returns:
- The ID of the SubChannel in the request.
Only required when listing the messages in a SubChannel that the user belongs to.
-
toBuilder
public ListChannelMessagesRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ListChannelMessagesRequest.Builder,ListChannelMessagesRequest>- Specified by:
toBuilderin classChimeSdkMessagingRequest
-
builder
public static ListChannelMessagesRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends ListChannelMessagesRequest.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
-
-