/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains a composite model definition in an asset model. This composite model definition is applied to all assets * created from the asset model. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AssetModelCompositeModelDefinition implements Serializable, Cloneable, StructuredPojo { /** ** The name of the composite model. *
*/ private String name; /** ** The description of the composite model. *
*/ private String description; /** *
* The type of the composite model. For alarm composite models, this type is AWS/ALARM
.
*
* The asset property definitions for this composite model. *
*/ private java.util.List* The name of the composite model. *
* * @param name * The name of the composite model. */ public void setName(String name) { this.name = name; } /** ** The name of the composite model. *
* * @return The name of the composite model. */ public String getName() { return this.name; } /** ** The name of the composite model. *
* * @param name * The name of the composite model. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetModelCompositeModelDefinition withName(String name) { setName(name); return this; } /** ** The description of the composite model. *
* * @param description * The description of the composite model. */ public void setDescription(String description) { this.description = description; } /** ** The description of the composite model. *
* * @return The description of the composite model. */ public String getDescription() { return this.description; } /** ** The description of the composite model. *
* * @param description * The description of the composite model. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetModelCompositeModelDefinition withDescription(String description) { setDescription(description); return this; } /** *
* The type of the composite model. For alarm composite models, this type is AWS/ALARM
.
*
AWS/ALARM
.
*/
public void setType(String type) {
this.type = type;
}
/**
*
* The type of the composite model. For alarm composite models, this type is AWS/ALARM
.
*
AWS/ALARM
.
*/
public String getType() {
return this.type;
}
/**
*
* The type of the composite model. For alarm composite models, this type is AWS/ALARM
.
*
AWS/ALARM
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetModelCompositeModelDefinition withType(String type) {
setType(type);
return this;
}
/**
* * The asset property definitions for this composite model. *
* * @return The asset property definitions for this composite model. */ public java.util.List* The asset property definitions for this composite model. *
* * @param properties * The asset property definitions for this composite model. */ public void setProperties(java.util.Collection* The asset property definitions for this composite model. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setProperties(java.util.Collection)} or {@link #withProperties(java.util.Collection)} if you want to * override the existing values. *
* * @param properties * The asset property definitions for this composite model. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetModelCompositeModelDefinition withProperties(AssetModelPropertyDefinition... properties) { if (this.properties == null) { setProperties(new java.util.ArrayList* The asset property definitions for this composite model. *
* * @param properties * The asset property definitions for this composite model. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetModelCompositeModelDefinition withProperties(java.util.Collection