/* * 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 RegisterDevicesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the fleet. *
*/ private String deviceFleetName; /** ** A list of devices to register with SageMaker Edge Manager. *
*/ private java.util.List* The tags associated with devices. *
*/ private java.util.List* The name of the fleet. *
* * @param deviceFleetName * The name of the fleet. */ public void setDeviceFleetName(String deviceFleetName) { this.deviceFleetName = deviceFleetName; } /** ** The name of the fleet. *
* * @return The name of the fleet. */ public String getDeviceFleetName() { return this.deviceFleetName; } /** ** The name of the fleet. *
* * @param deviceFleetName * The name of the fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterDevicesRequest withDeviceFleetName(String deviceFleetName) { setDeviceFleetName(deviceFleetName); return this; } /** ** A list of devices to register with SageMaker Edge Manager. *
* * @return A list of devices to register with SageMaker Edge Manager. */ public java.util.List* A list of devices to register with SageMaker Edge Manager. *
* * @param devices * A list of devices to register with SageMaker Edge Manager. */ public void setDevices(java.util.Collection* A list of devices to register with SageMaker Edge Manager. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDevices(java.util.Collection)} or {@link #withDevices(java.util.Collection)} if you want to override * the existing values. *
* * @param devices * A list of devices to register with SageMaker Edge Manager. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterDevicesRequest withDevices(Device... devices) { if (this.devices == null) { setDevices(new java.util.ArrayList* A list of devices to register with SageMaker Edge Manager. *
* * @param devices * A list of devices to register with SageMaker Edge Manager. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterDevicesRequest withDevices(java.util.Collection* The tags associated with devices. *
* * @return The tags associated with devices. */ public java.util.List* The tags associated with devices. *
* * @param tags * The tags associated with devices. */ public void setTags(java.util.Collection* The tags associated with devices. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * The tags associated with devices. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterDevicesRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* The tags associated with devices. *
* * @param tags * The tags associated with devices. * @return Returns a reference to this object so that method calls can be chained together. */ public RegisterDevicesRequest withTags(java.util.Collection