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

com.amazonaws.services.ivschat.model.ListRoomsRequest Maven / Gradle / Ivy

/*
 * 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.ivschat.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 ListRoomsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Logging-configuration identifier. *

*/ private String loggingConfigurationIdentifier; /** *

* Maximum number of rooms to return. Default: 50. *

*/ private Integer maxResults; /** *

* Filters the list to match the specified message review handler URI. *

*/ private String messageReviewHandlerUri; /** *

* Filters the list to match the specified room name. *

*/ private String name; /** *

* The first room to retrieve. This is used for pagination; see the nextToken response field. *

*/ private String nextToken; /** *

* Logging-configuration identifier. *

* * @param loggingConfigurationIdentifier * Logging-configuration identifier. */ public void setLoggingConfigurationIdentifier(String loggingConfigurationIdentifier) { this.loggingConfigurationIdentifier = loggingConfigurationIdentifier; } /** *

* Logging-configuration identifier. *

* * @return Logging-configuration identifier. */ public String getLoggingConfigurationIdentifier() { return this.loggingConfigurationIdentifier; } /** *

* Logging-configuration identifier. *

* * @param loggingConfigurationIdentifier * Logging-configuration identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public ListRoomsRequest withLoggingConfigurationIdentifier(String loggingConfigurationIdentifier) { setLoggingConfigurationIdentifier(loggingConfigurationIdentifier); return this; } /** *

* Maximum number of rooms to return. Default: 50. *

* * @param maxResults * Maximum number of rooms to return. Default: 50. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* Maximum number of rooms to return. Default: 50. *

* * @return Maximum number of rooms to return. Default: 50. */ public Integer getMaxResults() { return this.maxResults; } /** *

* Maximum number of rooms to return. Default: 50. *

* * @param maxResults * Maximum number of rooms to return. Default: 50. * @return Returns a reference to this object so that method calls can be chained together. */ public ListRoomsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* Filters the list to match the specified message review handler URI. *

* * @param messageReviewHandlerUri * Filters the list to match the specified message review handler URI. */ public void setMessageReviewHandlerUri(String messageReviewHandlerUri) { this.messageReviewHandlerUri = messageReviewHandlerUri; } /** *

* Filters the list to match the specified message review handler URI. *

* * @return Filters the list to match the specified message review handler URI. */ public String getMessageReviewHandlerUri() { return this.messageReviewHandlerUri; } /** *

* Filters the list to match the specified message review handler URI. *

* * @param messageReviewHandlerUri * Filters the list to match the specified message review handler URI. * @return Returns a reference to this object so that method calls can be chained together. */ public ListRoomsRequest withMessageReviewHandlerUri(String messageReviewHandlerUri) { setMessageReviewHandlerUri(messageReviewHandlerUri); return this; } /** *

* Filters the list to match the specified room name. *

* * @param name * Filters the list to match the specified room name. */ public void setName(String name) { this.name = name; } /** *

* Filters the list to match the specified room name. *

* * @return Filters the list to match the specified room name. */ public String getName() { return this.name; } /** *

* Filters the list to match the specified room name. *

* * @param name * Filters the list to match the specified room name. * @return Returns a reference to this object so that method calls can be chained together. */ public ListRoomsRequest withName(String name) { setName(name); return this; } /** *

* The first room to retrieve. This is used for pagination; see the nextToken response field. *

* * @param nextToken * The first room to retrieve. This is used for pagination; see the nextToken response field. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* The first room to retrieve. This is used for pagination; see the nextToken response field. *

* * @return The first room to retrieve. This is used for pagination; see the nextToken response field. */ public String getNextToken() { return this.nextToken; } /** *

* The first room to retrieve. This is used for pagination; see the nextToken response field. *

* * @param nextToken * The first room to retrieve. This is used for pagination; see the nextToken response field. * @return Returns a reference to this object so that method calls can be chained together. */ public ListRoomsRequest withNextToken(String nextToken) { setNextToken(nextToken); 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 (getLoggingConfigurationIdentifier() != null) sb.append("LoggingConfigurationIdentifier: ").append(getLoggingConfigurationIdentifier()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getMessageReviewHandlerUri() != null) sb.append("MessageReviewHandlerUri: ").append(getMessageReviewHandlerUri()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListRoomsRequest == false) return false; ListRoomsRequest other = (ListRoomsRequest) obj; if (other.getLoggingConfigurationIdentifier() == null ^ this.getLoggingConfigurationIdentifier() == null) return false; if (other.getLoggingConfigurationIdentifier() != null && other.getLoggingConfigurationIdentifier().equals(this.getLoggingConfigurationIdentifier()) == 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.getMessageReviewHandlerUri() == null ^ this.getMessageReviewHandlerUri() == null) return false; if (other.getMessageReviewHandlerUri() != null && other.getMessageReviewHandlerUri().equals(this.getMessageReviewHandlerUri()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoggingConfigurationIdentifier() == null) ? 0 : getLoggingConfigurationIdentifier().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getMessageReviewHandlerUri() == null) ? 0 : getMessageReviewHandlerUri().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public ListRoomsRequest clone() { return (ListRoomsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy