/* * 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.simplesystemsmanagement.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 PutInventoryRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* An managed node ID where you want to add or update inventory items. *
*/ private String instanceId; /** ** The inventory items that you want to add or update on managed nodes. *
*/ private com.amazonaws.internal.SdkInternalList* An managed node ID where you want to add or update inventory items. *
* * @param instanceId * An managed node ID where you want to add or update inventory items. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** ** An managed node ID where you want to add or update inventory items. *
* * @return An managed node ID where you want to add or update inventory items. */ public String getInstanceId() { return this.instanceId; } /** ** An managed node ID where you want to add or update inventory items. *
* * @param instanceId * An managed node ID where you want to add or update inventory items. * @return Returns a reference to this object so that method calls can be chained together. */ public PutInventoryRequest withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** ** The inventory items that you want to add or update on managed nodes. *
* * @return The inventory items that you want to add or update on managed nodes. */ public java.util.List* The inventory items that you want to add or update on managed nodes. *
* * @param items * The inventory items that you want to add or update on managed nodes. */ public void setItems(java.util.Collection* The inventory items that you want to add or update on managed nodes. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setItems(java.util.Collection)} or {@link #withItems(java.util.Collection)} if you want to override the * existing values. *
* * @param items * The inventory items that you want to add or update on managed nodes. * @return Returns a reference to this object so that method calls can be chained together. */ public PutInventoryRequest withItems(InventoryItem... items) { if (this.items == null) { setItems(new com.amazonaws.internal.SdkInternalList* The inventory items that you want to add or update on managed nodes. *
* * @param items * The inventory items that you want to add or update on managed nodes. * @return Returns a reference to this object so that method calls can be chained together. */ public PutInventoryRequest withItems(java.util.Collection