All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.iottwinmaker.model.ComponentPropertyGroupResponse Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS IoT TwinMaker module holds the client classes that are used for communicating with AWS IoT TwinMaker Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.iottwinmaker.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The component property group response. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ComponentPropertyGroupResponse implements Serializable, Cloneable, StructuredPojo { /** *

* The group type. *

*/ private String groupType; /** *

* The names of properties *

*/ private java.util.List propertyNames; /** *

* A Boolean value that specifies whether the property group is inherited from a parent entity *

*/ private Boolean isInherited; /** *

* The group type. *

* * @param groupType * The group type. * @see GroupType */ public void setGroupType(String groupType) { this.groupType = groupType; } /** *

* The group type. *

* * @return The group type. * @see GroupType */ public String getGroupType() { return this.groupType; } /** *

* The group type. *

* * @param groupType * The group type. * @return Returns a reference to this object so that method calls can be chained together. * @see GroupType */ public ComponentPropertyGroupResponse withGroupType(String groupType) { setGroupType(groupType); return this; } /** *

* The group type. *

* * @param groupType * The group type. * @return Returns a reference to this object so that method calls can be chained together. * @see GroupType */ public ComponentPropertyGroupResponse withGroupType(GroupType groupType) { this.groupType = groupType.toString(); return this; } /** *

* The names of properties *

* * @return The names of properties */ public java.util.List getPropertyNames() { return propertyNames; } /** *

* The names of properties *

* * @param propertyNames * The names of properties */ public void setPropertyNames(java.util.Collection propertyNames) { if (propertyNames == null) { this.propertyNames = null; return; } this.propertyNames = new java.util.ArrayList(propertyNames); } /** *

* The names of properties *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setPropertyNames(java.util.Collection)} or {@link #withPropertyNames(java.util.Collection)} if you want * to override the existing values. *

* * @param propertyNames * The names of properties * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentPropertyGroupResponse withPropertyNames(String... propertyNames) { if (this.propertyNames == null) { setPropertyNames(new java.util.ArrayList(propertyNames.length)); } for (String ele : propertyNames) { this.propertyNames.add(ele); } return this; } /** *

* The names of properties *

* * @param propertyNames * The names of properties * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentPropertyGroupResponse withPropertyNames(java.util.Collection propertyNames) { setPropertyNames(propertyNames); return this; } /** *

* A Boolean value that specifies whether the property group is inherited from a parent entity *

* * @param isInherited * A Boolean value that specifies whether the property group is inherited from a parent entity */ public void setIsInherited(Boolean isInherited) { this.isInherited = isInherited; } /** *

* A Boolean value that specifies whether the property group is inherited from a parent entity *

* * @return A Boolean value that specifies whether the property group is inherited from a parent entity */ public Boolean getIsInherited() { return this.isInherited; } /** *

* A Boolean value that specifies whether the property group is inherited from a parent entity *

* * @param isInherited * A Boolean value that specifies whether the property group is inherited from a parent entity * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentPropertyGroupResponse withIsInherited(Boolean isInherited) { setIsInherited(isInherited); return this; } /** *

* A Boolean value that specifies whether the property group is inherited from a parent entity *

* * @return A Boolean value that specifies whether the property group is inherited from a parent entity */ public Boolean isInherited() { return this.isInherited; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getGroupType() != null) sb.append("GroupType: ").append(getGroupType()).append(","); if (getPropertyNames() != null) sb.append("PropertyNames: ").append(getPropertyNames()).append(","); if (getIsInherited() != null) sb.append("IsInherited: ").append(getIsInherited()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ComponentPropertyGroupResponse == false) return false; ComponentPropertyGroupResponse other = (ComponentPropertyGroupResponse) obj; if (other.getGroupType() == null ^ this.getGroupType() == null) return false; if (other.getGroupType() != null && other.getGroupType().equals(this.getGroupType()) == false) return false; if (other.getPropertyNames() == null ^ this.getPropertyNames() == null) return false; if (other.getPropertyNames() != null && other.getPropertyNames().equals(this.getPropertyNames()) == false) return false; if (other.getIsInherited() == null ^ this.getIsInherited() == null) return false; if (other.getIsInherited() != null && other.getIsInherited().equals(this.getIsInherited()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGroupType() == null) ? 0 : getGroupType().hashCode()); hashCode = prime * hashCode + ((getPropertyNames() == null) ? 0 : getPropertyNames().hashCode()); hashCode = prime * hashCode + ((getIsInherited() == null) ? 0 : getIsInherited().hashCode()); return hashCode; } @Override public ComponentPropertyGroupResponse clone() { try { return (ComponentPropertyGroupResponse) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.iottwinmaker.model.transform.ComponentPropertyGroupResponseMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy