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

com.amazonaws.services.gamelift.model.DescribeMatchmakingConfigurationsResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS GameLift module holds the client classes that are used for communicating with AWS GameLift service.

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2013-2018 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.gamelift.model;

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

/**
 * 

* Represents the returned data in response to a request action. *

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

* Collection of requested matchmaking configuration objects. *

*/ private java.util.List configurations; /** *

* Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, * these results represent the end of the list. *

*/ private String nextToken; /** *

* Collection of requested matchmaking configuration objects. *

* * @return Collection of requested matchmaking configuration objects. */ public java.util.List getConfigurations() { return configurations; } /** *

* Collection of requested matchmaking configuration objects. *

* * @param configurations * Collection of requested matchmaking configuration objects. */ public void setConfigurations(java.util.Collection configurations) { if (configurations == null) { this.configurations = null; return; } this.configurations = new java.util.ArrayList(configurations); } /** *

* Collection of requested matchmaking configuration objects. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setConfigurations(java.util.Collection)} or {@link #withConfigurations(java.util.Collection)} if you want * to override the existing values. *

* * @param configurations * Collection of requested matchmaking configuration objects. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeMatchmakingConfigurationsResult withConfigurations(MatchmakingConfiguration... configurations) { if (this.configurations == null) { setConfigurations(new java.util.ArrayList(configurations.length)); } for (MatchmakingConfiguration ele : configurations) { this.configurations.add(ele); } return this; } /** *

* Collection of requested matchmaking configuration objects. *

* * @param configurations * Collection of requested matchmaking configuration objects. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeMatchmakingConfigurationsResult withConfigurations(java.util.Collection configurations) { setConfigurations(configurations); return this; } /** *

* Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, * these results represent the end of the list. *

* * @param nextToken * Token that indicates where to resume retrieving results on the next call to this action. If no token is * returned, these results represent the end of the list. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, * these results represent the end of the list. *

* * @return Token that indicates where to resume retrieving results on the next call to this action. If no token is * returned, these results represent the end of the list. */ public String getNextToken() { return this.nextToken; } /** *

* Token that indicates where to resume retrieving results on the next call to this action. If no token is returned, * these results represent the end of the list. *

* * @param nextToken * Token that indicates where to resume retrieving results on the next call to this action. If no token is * returned, these results represent the end of the list. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeMatchmakingConfigurationsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getConfigurations() != null) sb.append("Configurations: ").append(getConfigurations()).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 DescribeMatchmakingConfigurationsResult == false) return false; DescribeMatchmakingConfigurationsResult other = (DescribeMatchmakingConfigurationsResult) obj; if (other.getConfigurations() == null ^ this.getConfigurations() == null) return false; if (other.getConfigurations() != null && other.getConfigurations().equals(this.getConfigurations()) == 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 + ((getConfigurations() == null) ? 0 : getConfigurations().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public DescribeMatchmakingConfigurationsResult clone() { try { return (DescribeMatchmakingConfigurationsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy