/* * 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 UpdateFleetPortSettingsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A unique identifier for the fleet to update port settings for. You can use either the fleet ID or ARN value. *
*/ private String fleetId; /** ** A collection of port settings to be added to the fleet resource. *
*/ private java.util.List* A collection of port settings to be removed from the fleet resource. *
*/ private java.util.List* A unique identifier for the fleet to update port settings for. You can use either the fleet ID or ARN value. *
* * @param fleetId * A unique identifier for the fleet to update port settings 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 port settings for. You can use either the fleet ID or ARN value. *
* * @return A unique identifier for the fleet to update port settings 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 port settings for. You can use either the fleet ID or ARN value. *
* * @param fleetId * A unique identifier for the fleet to update port settings 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 UpdateFleetPortSettingsRequest withFleetId(String fleetId) { setFleetId(fleetId); return this; } /** ** A collection of port settings to be added to the fleet resource. *
* * @return A collection of port settings to be added to the fleet resource. */ public java.util.List* A collection of port settings to be added to the fleet resource. *
* * @param inboundPermissionAuthorizations * A collection of port settings to be added to the fleet resource. */ public void setInboundPermissionAuthorizations(java.util.Collection* A collection of port settings to be added to the fleet resource. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInboundPermissionAuthorizations(java.util.Collection)} or * {@link #withInboundPermissionAuthorizations(java.util.Collection)} if you want to override the existing values. *
* * @param inboundPermissionAuthorizations * A collection of port settings to be added to the fleet resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFleetPortSettingsRequest withInboundPermissionAuthorizations(IpPermission... inboundPermissionAuthorizations) { if (this.inboundPermissionAuthorizations == null) { setInboundPermissionAuthorizations(new java.util.ArrayList* A collection of port settings to be added to the fleet resource. *
* * @param inboundPermissionAuthorizations * A collection of port settings to be added to the fleet resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFleetPortSettingsRequest withInboundPermissionAuthorizations(java.util.Collection* A collection of port settings to be removed from the fleet resource. *
* * @return A collection of port settings to be removed from the fleet resource. */ public java.util.List* A collection of port settings to be removed from the fleet resource. *
* * @param inboundPermissionRevocations * A collection of port settings to be removed from the fleet resource. */ public void setInboundPermissionRevocations(java.util.Collection* A collection of port settings to be removed from the fleet resource. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInboundPermissionRevocations(java.util.Collection)} or * {@link #withInboundPermissionRevocations(java.util.Collection)} if you want to override the existing values. *
* * @param inboundPermissionRevocations * A collection of port settings to be removed from the fleet resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFleetPortSettingsRequest withInboundPermissionRevocations(IpPermission... inboundPermissionRevocations) { if (this.inboundPermissionRevocations == null) { setInboundPermissionRevocations(new java.util.ArrayList* A collection of port settings to be removed from the fleet resource. *
* * @param inboundPermissionRevocations * A collection of port settings to be removed from the fleet resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFleetPortSettingsRequest withInboundPermissionRevocations(java.util.Collection