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

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

/*
 * Copyright 2012-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;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* Represents the input for a request action. *

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

* Descriptive label that is associated with game session queue. Queue names must be unique within each region. *

*/ private String name; /** *

* Maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds * this time, the game session placement changes to a TIMED_OUT status. *

*/ private Integer timeoutInSeconds; /** *

* Collection of latency policies to apply when processing game sessions placement requests with player latency * information. Multiple policies are evaluated in order of the maximum latency value, starting with the lowest * latency values. With just one policy, it is enforced at the start of the game session placement for the duration * period. With multiple policies, each policy is enforced consecutively for its duration period. For example, a * queue might enforce a 60-second policy followed by a 120-second policy, and then no policy for the remainder of * the placement. When updating policies, provide a complete collection of policies. *

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

* List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by * either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order. When updating this * list, provide a complete list of destinations. *

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

* Descriptive label that is associated with game session queue. Queue names must be unique within each region. *

* * @param name * Descriptive label that is associated with game session queue. Queue names must be unique within each * region. */ public void setName(String name) { this.name = name; } /** *

* Descriptive label that is associated with game session queue. Queue names must be unique within each region. *

* * @return Descriptive label that is associated with game session queue. Queue names must be unique within each * region. */ public String getName() { return this.name; } /** *

* Descriptive label that is associated with game session queue. Queue names must be unique within each region. *

* * @param name * Descriptive label that is associated with game session queue. Queue names must be unique within each * region. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGameSessionQueueRequest withName(String name) { setName(name); return this; } /** *

* Maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds * this time, the game session placement changes to a TIMED_OUT status. *

* * @param timeoutInSeconds * Maximum time, in seconds, that a new game session placement request remains in the queue. When a request * exceeds this time, the game session placement changes to a TIMED_OUT status. */ public void setTimeoutInSeconds(Integer timeoutInSeconds) { this.timeoutInSeconds = timeoutInSeconds; } /** *

* Maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds * this time, the game session placement changes to a TIMED_OUT status. *

* * @return Maximum time, in seconds, that a new game session placement request remains in the queue. When a request * exceeds this time, the game session placement changes to a TIMED_OUT status. */ public Integer getTimeoutInSeconds() { return this.timeoutInSeconds; } /** *

* Maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds * this time, the game session placement changes to a TIMED_OUT status. *

* * @param timeoutInSeconds * Maximum time, in seconds, that a new game session placement request remains in the queue. When a request * exceeds this time, the game session placement changes to a TIMED_OUT status. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGameSessionQueueRequest withTimeoutInSeconds(Integer timeoutInSeconds) { setTimeoutInSeconds(timeoutInSeconds); return this; } /** *

* Collection of latency policies to apply when processing game sessions placement requests with player latency * information. Multiple policies are evaluated in order of the maximum latency value, starting with the lowest * latency values. With just one policy, it is enforced at the start of the game session placement for the duration * period. With multiple policies, each policy is enforced consecutively for its duration period. For example, a * queue might enforce a 60-second policy followed by a 120-second policy, and then no policy for the remainder of * the placement. When updating policies, provide a complete collection of policies. *

* * @return Collection of latency policies to apply when processing game sessions placement requests with player * latency information. Multiple policies are evaluated in order of the maximum latency value, starting with * the lowest latency values. With just one policy, it is enforced at the start of the game session * placement for the duration period. With multiple policies, each policy is enforced consecutively for its * duration period. For example, a queue might enforce a 60-second policy followed by a 120-second policy, * and then no policy for the remainder of the placement. When updating policies, provide a complete * collection of policies. */ public java.util.List getPlayerLatencyPolicies() { return playerLatencyPolicies; } /** *

* Collection of latency policies to apply when processing game sessions placement requests with player latency * information. Multiple policies are evaluated in order of the maximum latency value, starting with the lowest * latency values. With just one policy, it is enforced at the start of the game session placement for the duration * period. With multiple policies, each policy is enforced consecutively for its duration period. For example, a * queue might enforce a 60-second policy followed by a 120-second policy, and then no policy for the remainder of * the placement. When updating policies, provide a complete collection of policies. *

* * @param playerLatencyPolicies * Collection of latency policies to apply when processing game sessions placement requests with player * latency information. Multiple policies are evaluated in order of the maximum latency value, starting with * the lowest latency values. With just one policy, it is enforced at the start of the game session placement * for the duration period. With multiple policies, each policy is enforced consecutively for its duration * period. For example, a queue might enforce a 60-second policy followed by a 120-second policy, and then no * policy for the remainder of the placement. When updating policies, provide a complete collection of * policies. */ public void setPlayerLatencyPolicies(java.util.Collection playerLatencyPolicies) { if (playerLatencyPolicies == null) { this.playerLatencyPolicies = null; return; } this.playerLatencyPolicies = new java.util.ArrayList(playerLatencyPolicies); } /** *

* Collection of latency policies to apply when processing game sessions placement requests with player latency * information. Multiple policies are evaluated in order of the maximum latency value, starting with the lowest * latency values. With just one policy, it is enforced at the start of the game session placement for the duration * period. With multiple policies, each policy is enforced consecutively for its duration period. For example, a * queue might enforce a 60-second policy followed by a 120-second policy, and then no policy for the remainder of * the placement. When updating policies, provide a complete collection of policies. *

*

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

* * @param playerLatencyPolicies * Collection of latency policies to apply when processing game sessions placement requests with player * latency information. Multiple policies are evaluated in order of the maximum latency value, starting with * the lowest latency values. With just one policy, it is enforced at the start of the game session placement * for the duration period. With multiple policies, each policy is enforced consecutively for its duration * period. For example, a queue might enforce a 60-second policy followed by a 120-second policy, and then no * policy for the remainder of the placement. When updating policies, provide a complete collection of * policies. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGameSessionQueueRequest withPlayerLatencyPolicies(PlayerLatencyPolicy... playerLatencyPolicies) { if (this.playerLatencyPolicies == null) { setPlayerLatencyPolicies(new java.util.ArrayList(playerLatencyPolicies.length)); } for (PlayerLatencyPolicy ele : playerLatencyPolicies) { this.playerLatencyPolicies.add(ele); } return this; } /** *

* Collection of latency policies to apply when processing game sessions placement requests with player latency * information. Multiple policies are evaluated in order of the maximum latency value, starting with the lowest * latency values. With just one policy, it is enforced at the start of the game session placement for the duration * period. With multiple policies, each policy is enforced consecutively for its duration period. For example, a * queue might enforce a 60-second policy followed by a 120-second policy, and then no policy for the remainder of * the placement. When updating policies, provide a complete collection of policies. *

* * @param playerLatencyPolicies * Collection of latency policies to apply when processing game sessions placement requests with player * latency information. Multiple policies are evaluated in order of the maximum latency value, starting with * the lowest latency values. With just one policy, it is enforced at the start of the game session placement * for the duration period. With multiple policies, each policy is enforced consecutively for its duration * period. For example, a queue might enforce a 60-second policy followed by a 120-second policy, and then no * policy for the remainder of the placement. When updating policies, provide a complete collection of * policies. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGameSessionQueueRequest withPlayerLatencyPolicies(java.util.Collection playerLatencyPolicies) { setPlayerLatencyPolicies(playerLatencyPolicies); return this; } /** *

* List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by * either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order. When updating this * list, provide a complete list of destinations. *

* * @return List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are * identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference * order. When updating this list, provide a complete list of destinations. */ public java.util.List getDestinations() { return destinations; } /** *

* List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by * either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order. When updating this * list, provide a complete list of destinations. *

* * @param destinations * List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are * identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference * order. When updating this list, provide a complete list of destinations. */ public void setDestinations(java.util.Collection destinations) { if (destinations == null) { this.destinations = null; return; } this.destinations = new java.util.ArrayList(destinations); } /** *

* List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by * either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order. When updating this * list, provide a complete list of destinations. *

*

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

* * @param destinations * List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are * identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference * order. When updating this list, provide a complete list of destinations. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGameSessionQueueRequest withDestinations(GameSessionQueueDestination... destinations) { if (this.destinations == null) { setDestinations(new java.util.ArrayList(destinations.length)); } for (GameSessionQueueDestination ele : destinations) { this.destinations.add(ele); } return this; } /** *

* List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are identified by * either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference order. When updating this * list, provide a complete list of destinations. *

* * @param destinations * List of fleets that can be used to fulfill game session placement requests in the queue. Fleets are * identified by either a fleet ARN or a fleet alias ARN. Destinations are listed in default preference * order. When updating this list, provide a complete list of destinations. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGameSessionQueueRequest withDestinations(java.util.Collection destinations) { setDestinations(destinations); 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getTimeoutInSeconds() != null) sb.append("TimeoutInSeconds: ").append(getTimeoutInSeconds()).append(","); if (getPlayerLatencyPolicies() != null) sb.append("PlayerLatencyPolicies: ").append(getPlayerLatencyPolicies()).append(","); if (getDestinations() != null) sb.append("Destinations: ").append(getDestinations()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateGameSessionQueueRequest == false) return false; UpdateGameSessionQueueRequest other = (UpdateGameSessionQueueRequest) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getTimeoutInSeconds() == null ^ this.getTimeoutInSeconds() == null) return false; if (other.getTimeoutInSeconds() != null && other.getTimeoutInSeconds().equals(this.getTimeoutInSeconds()) == false) return false; if (other.getPlayerLatencyPolicies() == null ^ this.getPlayerLatencyPolicies() == null) return false; if (other.getPlayerLatencyPolicies() != null && other.getPlayerLatencyPolicies().equals(this.getPlayerLatencyPolicies()) == false) return false; if (other.getDestinations() == null ^ this.getDestinations() == null) return false; if (other.getDestinations() != null && other.getDestinations().equals(this.getDestinations()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getTimeoutInSeconds() == null) ? 0 : getTimeoutInSeconds().hashCode()); hashCode = prime * hashCode + ((getPlayerLatencyPolicies() == null) ? 0 : getPlayerLatencyPolicies().hashCode()); hashCode = prime * hashCode + ((getDestinations() == null) ? 0 : getDestinations().hashCode()); return hashCode; } @Override public UpdateGameSessionQueueRequest clone() { return (UpdateGameSessionQueueRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy