/* * Copyright 2018-2023 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.gamesparks.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Details about a game. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GameDetails implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) of this game. *
*/ private String arn; /** ** The date when the game was created. *
*/ private java.util.Date created; /** ** The description of the game. *
*/ private String description; /** ** Determines if the game can be deleted. *
*/ private Boolean enableTerminationProtection; /** ** The date when the game was last modified. *
*/ private java.util.Date lastUpdated; /** ** The name of the game. *
*/ private String name; /** ** The state of the game. *
*/ private String state; /** ** The tags associated with the game. *
*/ private java.util.Map* The Amazon Resource Name (ARN) of this game. *
* * @param arn * The Amazon Resource Name (ARN) of this game. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) of this game. *
* * @return The Amazon Resource Name (ARN) of this game. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN) of this game. *
* * @param arn * The Amazon Resource Name (ARN) of this game. * @return Returns a reference to this object so that method calls can be chained together. */ public GameDetails withArn(String arn) { setArn(arn); return this; } /** ** The date when the game was created. *
* * @param created * The date when the game was created. */ public void setCreated(java.util.Date created) { this.created = created; } /** ** The date when the game was created. *
* * @return The date when the game was created. */ public java.util.Date getCreated() { return this.created; } /** ** The date when the game was created. *
* * @param created * The date when the game was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GameDetails withCreated(java.util.Date created) { setCreated(created); return this; } /** ** The description of the game. *
* * @param description * The description of the game. */ public void setDescription(String description) { this.description = description; } /** ** The description of the game. *
* * @return The description of the game. */ public String getDescription() { return this.description; } /** ** The description of the game. *
* * @param description * The description of the game. * @return Returns a reference to this object so that method calls can be chained together. */ public GameDetails withDescription(String description) { setDescription(description); return this; } /** ** Determines if the game can be deleted. *
* * @param enableTerminationProtection * Determines if the game can be deleted. */ public void setEnableTerminationProtection(Boolean enableTerminationProtection) { this.enableTerminationProtection = enableTerminationProtection; } /** ** Determines if the game can be deleted. *
* * @return Determines if the game can be deleted. */ public Boolean getEnableTerminationProtection() { return this.enableTerminationProtection; } /** ** Determines if the game can be deleted. *
* * @param enableTerminationProtection * Determines if the game can be deleted. * @return Returns a reference to this object so that method calls can be chained together. */ public GameDetails withEnableTerminationProtection(Boolean enableTerminationProtection) { setEnableTerminationProtection(enableTerminationProtection); return this; } /** ** Determines if the game can be deleted. *
* * @return Determines if the game can be deleted. */ public Boolean isEnableTerminationProtection() { return this.enableTerminationProtection; } /** ** The date when the game was last modified. *
* * @param lastUpdated * The date when the game was last modified. */ public void setLastUpdated(java.util.Date lastUpdated) { this.lastUpdated = lastUpdated; } /** ** The date when the game was last modified. *
* * @return The date when the game was last modified. */ public java.util.Date getLastUpdated() { return this.lastUpdated; } /** ** The date when the game was last modified. *
* * @param lastUpdated * The date when the game was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public GameDetails withLastUpdated(java.util.Date lastUpdated) { setLastUpdated(lastUpdated); return this; } /** ** The name of the game. *
* * @param name * The name of the game. */ public void setName(String name) { this.name = name; } /** ** The name of the game. *
* * @return The name of the game. */ public String getName() { return this.name; } /** ** The name of the game. *
* * @param name * The name of the game. * @return Returns a reference to this object so that method calls can be chained together. */ public GameDetails withName(String name) { setName(name); return this; } /** ** The state of the game. *
* * @param state * The state of the game. * @see GameState */ public void setState(String state) { this.state = state; } /** ** The state of the game. *
* * @return The state of the game. * @see GameState */ public String getState() { return this.state; } /** ** The state of the game. *
* * @param state * The state of the game. * @return Returns a reference to this object so that method calls can be chained together. * @see GameState */ public GameDetails withState(String state) { setState(state); return this; } /** ** The state of the game. *
* * @param state * The state of the game. * @return Returns a reference to this object so that method calls can be chained together. * @see GameState */ public GameDetails withState(GameState state) { this.state = state.toString(); return this; } /** ** The tags associated with the game. *
* * @return The tags associated with the game. */ public java.util.Map* The tags associated with the game. *
* * @param tags * The tags associated with the game. */ public void setTags(java.util.Map* The tags associated with the game. *
* * @param tags * The tags associated with the game. * @return Returns a reference to this object so that method calls can be chained together. */ public GameDetails withTags(java.util.Map