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

* A unique identifier for the fleet to update attribute metadata for. You can use either the fleet ID or ARN value. *

*/ private String fleetId; /** *

* A descriptive label that is associated with a fleet. Fleet names do not need to be unique. *

*/ private String name; /** *

* A human-readable description of a fleet. *

*/ private String description; /** *

* The game session protection policy to apply to all new instances created in this fleet. Instances that already * exist are not affected. You can set protection for individual instances using UpdateGameSession * . *

* */ private String newGameSessionProtectionPolicy; /** *

* Policy settings that limit the number of game sessions an individual player can create over a span of time. *

*/ private ResourceCreationLimitPolicy resourceCreationLimitPolicy; /** *

* The name of a metric group to add this fleet to. Use a metric group in Amazon CloudWatch to aggregate the metrics * from multiple fleets. Provide an existing metric group name, or create a new metric group by providing a new * name. A fleet can only be in one metric group at a time. *

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

* Amazon GameLift Anywhere configuration options. *

*/ private AnywhereConfiguration anywhereConfiguration; /** *

* A unique identifier for the fleet to update attribute metadata for. You can use either the fleet ID or ARN value. *

* * @param fleetId * A unique identifier for the fleet to update attribute metadata for. You can use either the fleet ID or ARN * value. */ public void setFleetId(String fleetId) { this.fleetId = fleetId; } /** *

* A unique identifier for the fleet to update attribute metadata for. You can use either the fleet ID or ARN value. *

* * @return A unique identifier for the fleet to update attribute metadata for. You can use either the fleet ID or * ARN value. */ public String getFleetId() { return this.fleetId; } /** *

* A unique identifier for the fleet to update attribute metadata for. You can use either the fleet ID or ARN value. *

* * @param fleetId * A unique identifier for the fleet to update attribute metadata for. You can use either the fleet ID or ARN * value. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFleetAttributesRequest withFleetId(String fleetId) { setFleetId(fleetId); return this; } /** *

* A descriptive label that is associated with a fleet. Fleet names do not need to be unique. *

* * @param name * A descriptive label that is associated with a fleet. Fleet names do not need to be unique. */ public void setName(String name) { this.name = name; } /** *

* A descriptive label that is associated with a fleet. Fleet names do not need to be unique. *

* * @return A descriptive label that is associated with a fleet. Fleet names do not need to be unique. */ public String getName() { return this.name; } /** *

* A descriptive label that is associated with a fleet. Fleet names do not need to be unique. *

* * @param name * A descriptive label that is associated with a fleet. Fleet names do not need to be unique. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFleetAttributesRequest withName(String name) { setName(name); return this; } /** *

* A human-readable description of a fleet. *

* * @param description * A human-readable description of a fleet. */ public void setDescription(String description) { this.description = description; } /** *

* A human-readable description of a fleet. *

* * @return A human-readable description of a fleet. */ public String getDescription() { return this.description; } /** *

* A human-readable description of a fleet. *

* * @param description * A human-readable description of a fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFleetAttributesRequest withDescription(String description) { setDescription(description); return this; } /** *

* The game session protection policy to apply to all new instances created in this fleet. Instances that already * exist are not affected. You can set protection for individual instances using UpdateGameSession * . *

* * * @param newGameSessionProtectionPolicy * The game session protection policy to apply to all new instances created in this fleet. Instances that * already exist are not affected. You can set protection for individual instances using UpdateGameSession .

*