/* * 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.sagemaker.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 DeregisterDevicesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the fleet the devices belong to. *
*/ private String deviceFleetName; /** ** The unique IDs of the devices. *
*/ private java.util.List* The name of the fleet the devices belong to. *
* * @param deviceFleetName * The name of the fleet the devices belong to. */ public void setDeviceFleetName(String deviceFleetName) { this.deviceFleetName = deviceFleetName; } /** ** The name of the fleet the devices belong to. *
* * @return The name of the fleet the devices belong to. */ public String getDeviceFleetName() { return this.deviceFleetName; } /** ** The name of the fleet the devices belong to. *
* * @param deviceFleetName * The name of the fleet the devices belong to. * @return Returns a reference to this object so that method calls can be chained together. */ public DeregisterDevicesRequest withDeviceFleetName(String deviceFleetName) { setDeviceFleetName(deviceFleetName); return this; } /** ** The unique IDs of the devices. *
* * @return The unique IDs of the devices. */ public java.util.List* The unique IDs of the devices. *
* * @param deviceNames * The unique IDs of the devices. */ public void setDeviceNames(java.util.Collection* The unique IDs of the devices. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDeviceNames(java.util.Collection)} or {@link #withDeviceNames(java.util.Collection)} if you want to * override the existing values. *
* * @param deviceNames * The unique IDs of the devices. * @return Returns a reference to this object so that method calls can be chained together. */ public DeregisterDevicesRequest withDeviceNames(String... deviceNames) { if (this.deviceNames == null) { setDeviceNames(new java.util.ArrayList* The unique IDs of the devices. *
* * @param deviceNames * The unique IDs of the devices. * @return Returns a reference to this object so that method calls can be chained together. */ public DeregisterDevicesRequest withDeviceNames(java.util.Collection