/* * 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; /** *
* The summary of the properties of a game. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GameSummary implements Serializable, Cloneable, StructuredPojo { /** ** The description of the game. *
*/ private String description; /** ** 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 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 GameSummary withDescription(String description) { setDescription(description); 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 GameSummary 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 GameSummary 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 GameSummary 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 GameSummary withTags(java.util.Map