/* * 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.iotsitewise.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 CreateAssetModelRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A unique, friendly name for the asset model. *
*/ private String assetModelName; /** ** A description for the asset model. *
*/ private String assetModelDescription; /** ** The property definitions of the asset model. For more information, see Asset properties in * the IoT SiteWise User Guide. *
** You can specify up to 200 properties per asset model. For more information, see Quotas in the IoT SiteWise * User Guide. *
*/ private java.util.List* The hierarchy definitions of the asset model. Each hierarchy specifies an asset model whose assets can be * children of any other assets created from this asset model. For more information, see Asset hierarchies in * the IoT SiteWise User Guide. *
** You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the IoT SiteWise * User Guide. *
*/ private java.util.List* The composite asset models that are part of this asset model. Composite asset models are asset models that * contain specific properties. Each composite model has a type that defines the properties that the composite model * supports. Use composite asset models to define alarms on this asset model. *
*/ private java.util.List* A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse * this client token if a new idempotent request is required. *
*/ private String clientToken; /** ** A list of key-value pairs that contain metadata for the asset model. For more information, see Tagging your IoT SiteWise * resources in the IoT SiteWise User Guide. *
*/ private java.util.Map* A unique, friendly name for the asset model. *
* * @param assetModelName * A unique, friendly name for the asset model. */ public void setAssetModelName(String assetModelName) { this.assetModelName = assetModelName; } /** ** A unique, friendly name for the asset model. *
* * @return A unique, friendly name for the asset model. */ public String getAssetModelName() { return this.assetModelName; } /** ** A unique, friendly name for the asset model. *
* * @param assetModelName * A unique, friendly name for the asset model. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAssetModelRequest withAssetModelName(String assetModelName) { setAssetModelName(assetModelName); return this; } /** ** A description for the asset model. *
* * @param assetModelDescription * A description for the asset model. */ public void setAssetModelDescription(String assetModelDescription) { this.assetModelDescription = assetModelDescription; } /** ** A description for the asset model. *
* * @return A description for the asset model. */ public String getAssetModelDescription() { return this.assetModelDescription; } /** ** A description for the asset model. *
* * @param assetModelDescription * A description for the asset model. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAssetModelRequest withAssetModelDescription(String assetModelDescription) { setAssetModelDescription(assetModelDescription); return this; } /** ** The property definitions of the asset model. For more information, see Asset properties in * the IoT SiteWise User Guide. *
** You can specify up to 200 properties per asset model. For more information, see Quotas in the IoT SiteWise * User Guide. *
* * @return The property definitions of the asset model. For more information, see Asset * properties in the IoT SiteWise User Guide. *
* You can specify up to 200 properties per asset model. For more information, see Quotas in the IoT
* SiteWise User Guide.
*/
public java.util.List
* The property definitions of the asset model. For more information, see Asset properties in
* the IoT SiteWise User Guide.
*
* You can specify up to 200 properties per asset model. For more information, see Quotas in the IoT SiteWise
* User Guide.
*
* You can specify up to 200 properties per asset model. For more information, see Quotas in the IoT
* SiteWise User Guide.
*/
public void setAssetModelProperties(java.util.Collection
* The property definitions of the asset model. For more information, see Asset properties in
* the IoT SiteWise User Guide.
*
* You can specify up to 200 properties per asset model. For more information, see Quotas in the IoT SiteWise
* User Guide.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAssetModelProperties(java.util.Collection)} or {@link #withAssetModelProperties(java.util.Collection)}
* if you want to override the existing values.
*
* You can specify up to 200 properties per asset model. For more information, see Quotas in the IoT
* SiteWise User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAssetModelRequest withAssetModelProperties(AssetModelPropertyDefinition... assetModelProperties) {
if (this.assetModelProperties == null) {
setAssetModelProperties(new java.util.ArrayList
* The property definitions of the asset model. For more information, see Asset properties in
* the IoT SiteWise User Guide.
*
* You can specify up to 200 properties per asset model. For more information, see Quotas in the IoT SiteWise
* User Guide.
*
* You can specify up to 200 properties per asset model. For more information, see Quotas in the IoT
* SiteWise User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAssetModelRequest withAssetModelProperties(java.util.Collection
* The hierarchy definitions of the asset model. Each hierarchy specifies an asset model whose assets can be
* children of any other assets created from this asset model. For more information, see Asset hierarchies in
* the IoT SiteWise User Guide.
*
* You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the IoT SiteWise
* User Guide.
*
* You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the IoT
* SiteWise User Guide.
*/
public java.util.List
* The hierarchy definitions of the asset model. Each hierarchy specifies an asset model whose assets can be
* children of any other assets created from this asset model. For more information, see Asset hierarchies in
* the IoT SiteWise User Guide.
*
* You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the IoT SiteWise
* User Guide.
*
* You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the IoT
* SiteWise User Guide.
*/
public void setAssetModelHierarchies(java.util.Collection
* The hierarchy definitions of the asset model. Each hierarchy specifies an asset model whose assets can be
* children of any other assets created from this asset model. For more information, see Asset hierarchies in
* the IoT SiteWise User Guide.
*
* You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the IoT SiteWise
* User Guide.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAssetModelHierarchies(java.util.Collection)} or
* {@link #withAssetModelHierarchies(java.util.Collection)} if you want to override the existing values.
*
* You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the IoT
* SiteWise User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAssetModelRequest withAssetModelHierarchies(AssetModelHierarchyDefinition... assetModelHierarchies) {
if (this.assetModelHierarchies == null) {
setAssetModelHierarchies(new java.util.ArrayList
* The hierarchy definitions of the asset model. Each hierarchy specifies an asset model whose assets can be
* children of any other assets created from this asset model. For more information, see Asset hierarchies in
* the IoT SiteWise User Guide.
*
* You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the IoT SiteWise
* User Guide.
*
* You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the IoT
* SiteWise User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAssetModelRequest withAssetModelHierarchies(java.util.Collection
* The composite asset models that are part of this asset model. Composite asset models are asset models that
* contain specific properties. Each composite model has a type that defines the properties that the composite model
* supports. Use composite asset models to define alarms on this asset model.
*
* The composite asset models that are part of this asset model. Composite asset models are asset models that
* contain specific properties. Each composite model has a type that defines the properties that the composite model
* supports. Use composite asset models to define alarms on this asset model.
*
* The composite asset models that are part of this asset model. Composite asset models are asset models that
* contain specific properties. Each composite model has a type that defines the properties that the composite model
* supports. Use composite asset models to define alarms on this asset model.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAssetModelCompositeModels(java.util.Collection)} or
* {@link #withAssetModelCompositeModels(java.util.Collection)} if you want to override the existing values.
*
* The composite asset models that are part of this asset model. Composite asset models are asset models that
* contain specific properties. Each composite model has a type that defines the properties that the composite model
* supports. Use composite asset models to define alarms on this asset model.
*
* A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse
* this client token if a new idempotent request is required.
*
* A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse
* this client token if a new idempotent request is required.
*
* A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse
* this client token if a new idempotent request is required.
*
* A list of key-value pairs that contain metadata for the asset model. For more information, see Tagging your IoT SiteWise
* resources in the IoT SiteWise User Guide.
*
* A list of key-value pairs that contain metadata for the asset model. For more information, see Tagging your IoT SiteWise
* resources in the IoT SiteWise User Guide.
*
* A list of key-value pairs that contain metadata for the asset model. For more information, see Tagging your IoT SiteWise
* resources in the IoT SiteWise User Guide.
*