/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The inventory result item. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InventoryResultItem implements Serializable, Cloneable, StructuredPojo { /** ** The name of the inventory result item type. *
*/ private String typeName; /** ** The schema version for the inventory result item/ *
*/ private String schemaVersion; /** ** The time inventory item data was captured. *
*/ private String captureTime; /** ** MD5 hash of the inventory item type contents. The content hash is used to determine whether to update inventory * information. The PutInventory API doesn't update the inventory item type contents if the MD5 hash hasn't changed * since last update. *
*/ private String contentHash; /** ** Contains all the inventory data of the item type. Results include attribute names and values. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the inventory result item type. *
* * @param typeName * The name of the inventory result item type. */ public void setTypeName(String typeName) { this.typeName = typeName; } /** ** The name of the inventory result item type. *
* * @return The name of the inventory result item type. */ public String getTypeName() { return this.typeName; } /** ** The name of the inventory result item type. *
* * @param typeName * The name of the inventory result item type. * @return Returns a reference to this object so that method calls can be chained together. */ public InventoryResultItem withTypeName(String typeName) { setTypeName(typeName); return this; } /** ** The schema version for the inventory result item/ *
* * @param schemaVersion * The schema version for the inventory result item/ */ public void setSchemaVersion(String schemaVersion) { this.schemaVersion = schemaVersion; } /** ** The schema version for the inventory result item/ *
* * @return The schema version for the inventory result item/ */ public String getSchemaVersion() { return this.schemaVersion; } /** ** The schema version for the inventory result item/ *
* * @param schemaVersion * The schema version for the inventory result item/ * @return Returns a reference to this object so that method calls can be chained together. */ public InventoryResultItem withSchemaVersion(String schemaVersion) { setSchemaVersion(schemaVersion); return this; } /** ** The time inventory item data was captured. *
* * @param captureTime * The time inventory item data was captured. */ public void setCaptureTime(String captureTime) { this.captureTime = captureTime; } /** ** The time inventory item data was captured. *
* * @return The time inventory item data was captured. */ public String getCaptureTime() { return this.captureTime; } /** ** The time inventory item data was captured. *
* * @param captureTime * The time inventory item data was captured. * @return Returns a reference to this object so that method calls can be chained together. */ public InventoryResultItem withCaptureTime(String captureTime) { setCaptureTime(captureTime); return this; } /** ** MD5 hash of the inventory item type contents. The content hash is used to determine whether to update inventory * information. The PutInventory API doesn't update the inventory item type contents if the MD5 hash hasn't changed * since last update. *
* * @param contentHash * MD5 hash of the inventory item type contents. The content hash is used to determine whether to update * inventory information. The PutInventory API doesn't update the inventory item type contents if the MD5 * hash hasn't changed since last update. */ public void setContentHash(String contentHash) { this.contentHash = contentHash; } /** ** MD5 hash of the inventory item type contents. The content hash is used to determine whether to update inventory * information. The PutInventory API doesn't update the inventory item type contents if the MD5 hash hasn't changed * since last update. *
* * @return MD5 hash of the inventory item type contents. The content hash is used to determine whether to update * inventory information. The PutInventory API doesn't update the inventory item type contents if the MD5 * hash hasn't changed since last update. */ public String getContentHash() { return this.contentHash; } /** ** MD5 hash of the inventory item type contents. The content hash is used to determine whether to update inventory * information. The PutInventory API doesn't update the inventory item type contents if the MD5 hash hasn't changed * since last update. *
* * @param contentHash * MD5 hash of the inventory item type contents. The content hash is used to determine whether to update * inventory information. The PutInventory API doesn't update the inventory item type contents if the MD5 * hash hasn't changed since last update. * @return Returns a reference to this object so that method calls can be chained together. */ public InventoryResultItem withContentHash(String contentHash) { setContentHash(contentHash); return this; } /** ** Contains all the inventory data of the item type. Results include attribute names and values. *
* * @return Contains all the inventory data of the item type. Results include attribute names and values. */ public java.util.List* Contains all the inventory data of the item type. Results include attribute names and values. *
* * @param content * Contains all the inventory data of the item type. Results include attribute names and values. */ public void setContent(java.util.Collection* Contains all the inventory data of the item type. Results include attribute names and values. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setContent(java.util.Collection)} or {@link #withContent(java.util.Collection)} if you want to override * the existing values. *
* * @param content * Contains all the inventory data of the item type. Results include attribute names and values. * @return Returns a reference to this object so that method calls can be chained together. */ public InventoryResultItem withContent(java.util.Map* Contains all the inventory data of the item type. Results include attribute names and values. *
* * @param content * Contains all the inventory data of the item type. Results include attribute names and values. * @return Returns a reference to this object so that method calls can be chained together. */ public InventoryResultItem withContent(java.util.Collection