All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.chime.model.ListChannelMessagesRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Chime module holds the client classes that are used for communicating with Amazon Chime Service

The newest version!
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.chime.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListChannelMessagesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The ARN of the channel. *

*/ private String channelArn; /** *

* The order in which you want messages sorted. Default is Descending, based on time created. *

*/ private String sortOrder; /** *

* The initial or starting time stamp for your requested messages. *

*/ private java.util.Date notBefore; /** *

* The final or ending time stamp for your requested messages. *

*/ private java.util.Date notAfter; /** *

* The maximum number of messages that you want returned. *

*/ private Integer maxResults; /** *

* The token passed by previous API calls until all requested messages are returned. *

*/ private String nextToken; /** *

* The AppInstanceUserArn of the user that makes the API call. *

*/ private String chimeBearer; /** *

* The ARN of the channel. *

* * @param channelArn * The ARN of the channel. */ public void setChannelArn(String channelArn) { this.channelArn = channelArn; } /** *

* The ARN of the channel. *

* * @return The ARN of the channel. */ public String getChannelArn() { return this.channelArn; } /** *

* The ARN of the channel. *

* * @param channelArn * The ARN of the channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ListChannelMessagesRequest withChannelArn(String channelArn) { setChannelArn(channelArn); return this; } /** *

* The order in which you want messages sorted. Default is Descending, based on time created. *

* * @param sortOrder * The order in which you want messages sorted. Default is Descending, based on time created. * @see SortOrder */ public void setSortOrder(String sortOrder) { this.sortOrder = sortOrder; } /** *

* The order in which you want messages sorted. Default is Descending, based on time created. *

* * @return The order in which you want messages sorted. Default is Descending, based on time created. * @see SortOrder */ public String getSortOrder() { return this.sortOrder; } /** *

* The order in which you want messages sorted. Default is Descending, based on time created. *

* * @param sortOrder * The order in which you want messages sorted. Default is Descending, based on time created. * @return Returns a reference to this object so that method calls can be chained together. * @see SortOrder */ public ListChannelMessagesRequest withSortOrder(String sortOrder) { setSortOrder(sortOrder); return this; } /** *

* The order in which you want messages sorted. Default is Descending, based on time created. *

* * @param sortOrder * The order in which you want messages sorted. Default is Descending, based on time created. * @return Returns a reference to this object so that method calls can be chained together. * @see SortOrder */ public ListChannelMessagesRequest withSortOrder(SortOrder sortOrder) { this.sortOrder = sortOrder.toString(); return this; } /** *

* The initial or starting time stamp for your requested messages. *

* * @param notBefore * The initial or starting time stamp for your requested messages. */ public void setNotBefore(java.util.Date notBefore) { this.notBefore = notBefore; } /** *

* The initial or starting time stamp for your requested messages. *

* * @return The initial or starting time stamp for your requested messages. */ public java.util.Date getNotBefore() { return this.notBefore; } /** *

* The initial or starting time stamp for your requested messages. *

* * @param notBefore * The initial or starting time stamp for your requested messages. * @return Returns a reference to this object so that method calls can be chained together. */ public ListChannelMessagesRequest withNotBefore(java.util.Date notBefore) { setNotBefore(notBefore); return this; } /** *

* The final or ending time stamp for your requested messages. *

* * @param notAfter * The final or ending time stamp for your requested messages. */ public void setNotAfter(java.util.Date notAfter) { this.notAfter = notAfter; } /** *

* The final or ending time stamp for your requested messages. *

* * @return The final or ending time stamp for your requested messages. */ public java.util.Date getNotAfter() { return this.notAfter; } /** *

* The final or ending time stamp for your requested messages. *

* * @param notAfter * The final or ending time stamp for your requested messages. * @return Returns a reference to this object so that method calls can be chained together. */ public ListChannelMessagesRequest withNotAfter(java.util.Date notAfter) { setNotAfter(notAfter); return this; } /** *

* The maximum number of messages that you want returned. *

* * @param maxResults * The maximum number of messages that you want returned. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of messages that you want returned. *

* * @return The maximum number of messages that you want returned. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum number of messages that you want returned. *

* * @param maxResults * The maximum number of messages that you want returned. * @return Returns a reference to this object so that method calls can be chained together. */ public ListChannelMessagesRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* The token passed by previous API calls until all requested messages are returned. *

* * @param nextToken * The token passed by previous API calls until all requested messages are returned. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* The token passed by previous API calls until all requested messages are returned. *

* * @return The token passed by previous API calls until all requested messages are returned. */ public String getNextToken() { return this.nextToken; } /** *

* The token passed by previous API calls until all requested messages are returned. *

* * @param nextToken * The token passed by previous API calls until all requested messages are returned. * @return Returns a reference to this object so that method calls can be chained together. */ public ListChannelMessagesRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* The AppInstanceUserArn of the user that makes the API call. *

* * @param chimeBearer * The AppInstanceUserArn of the user that makes the API call. */ public void setChimeBearer(String chimeBearer) { this.chimeBearer = chimeBearer; } /** *

* The AppInstanceUserArn of the user that makes the API call. *

* * @return The AppInstanceUserArn of the user that makes the API call. */ public String getChimeBearer() { return this.chimeBearer; } /** *

* The AppInstanceUserArn of the user that makes the API call. *

* * @param chimeBearer * The AppInstanceUserArn of the user that makes the API call. * @return Returns a reference to this object so that method calls can be chained together. */ public ListChannelMessagesRequest withChimeBearer(String chimeBearer) { setChimeBearer(chimeBearer); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getChannelArn() != null) sb.append("ChannelArn: ").append(getChannelArn()).append(","); if (getSortOrder() != null) sb.append("SortOrder: ").append(getSortOrder()).append(","); if (getNotBefore() != null) sb.append("NotBefore: ").append(getNotBefore()).append(","); if (getNotAfter() != null) sb.append("NotAfter: ").append(getNotAfter()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append("***Sensitive Data Redacted***").append(","); if (getChimeBearer() != null) sb.append("ChimeBearer: ").append(getChimeBearer()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListChannelMessagesRequest == false) return false; ListChannelMessagesRequest other = (ListChannelMessagesRequest) obj; if (other.getChannelArn() == null ^ this.getChannelArn() == null) return false; if (other.getChannelArn() != null && other.getChannelArn().equals(this.getChannelArn()) == false) return false; if (other.getSortOrder() == null ^ this.getSortOrder() == null) return false; if (other.getSortOrder() != null && other.getSortOrder().equals(this.getSortOrder()) == false) return false; if (other.getNotBefore() == null ^ this.getNotBefore() == null) return false; if (other.getNotBefore() != null && other.getNotBefore().equals(this.getNotBefore()) == false) return false; if (other.getNotAfter() == null ^ this.getNotAfter() == null) return false; if (other.getNotAfter() != null && other.getNotAfter().equals(this.getNotAfter()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getChimeBearer() == null ^ this.getChimeBearer() == null) return false; if (other.getChimeBearer() != null && other.getChimeBearer().equals(this.getChimeBearer()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getChannelArn() == null) ? 0 : getChannelArn().hashCode()); hashCode = prime * hashCode + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode()); hashCode = prime * hashCode + ((getNotBefore() == null) ? 0 : getNotBefore().hashCode()); hashCode = prime * hashCode + ((getNotAfter() == null) ? 0 : getNotAfter().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getChimeBearer() == null) ? 0 : getChimeBearer().hashCode()); return hashCode; } @Override public ListChannelMessagesRequest clone() { return (ListChannelMessagesRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy