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

com.amazonaws.services.iot.model.DescribeThingGroupResult Maven / Gradle / Ivy

/*
 * Copyright 2010-2018 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.iot.model;

import java.io.Serializable;

public class DescribeThingGroupResult implements Serializable {
    /**
     * 

* The name of the thing group. *

*

* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
*/ private String thingGroupName; /** *

* The thing group ID. *

*

* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9\-]+
*/ private String thingGroupId; /** *

* The thing group ARN. *

*/ private String thingGroupArn; /** *

* The version of the thing group. *

*/ private Long version; /** *

* The thing group properties. *

*/ private ThingGroupProperties thingGroupProperties; /** *

* Thing group metadata. *

*/ private ThingGroupMetadata thingGroupMetadata; /** *

* The name of the thing group. *

*

* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
* * @return

* The name of the thing group. *

*/ public String getThingGroupName() { return thingGroupName; } /** *

* The name of the thing group. *

*

* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
* * @param thingGroupName

* The name of the thing group. *

*/ public void setThingGroupName(String thingGroupName) { this.thingGroupName = thingGroupName; } /** *

* The name of the thing group. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9:_-]+
* * @param thingGroupName

* The name of the thing group. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeThingGroupResult withThingGroupName(String thingGroupName) { this.thingGroupName = thingGroupName; return this; } /** *

* The thing group ID. *

*

* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9\-]+
* * @return

* The thing group ID. *

*/ public String getThingGroupId() { return thingGroupId; } /** *

* The thing group ID. *

*

* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9\-]+
* * @param thingGroupId

* The thing group ID. *

*/ public void setThingGroupId(String thingGroupId) { this.thingGroupId = thingGroupId; } /** *

* The thing group ID. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9\-]+
* * @param thingGroupId

* The thing group ID. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeThingGroupResult withThingGroupId(String thingGroupId) { this.thingGroupId = thingGroupId; return this; } /** *

* The thing group ARN. *

* * @return

* The thing group ARN. *

*/ public String getThingGroupArn() { return thingGroupArn; } /** *

* The thing group ARN. *

* * @param thingGroupArn

* The thing group ARN. *

*/ public void setThingGroupArn(String thingGroupArn) { this.thingGroupArn = thingGroupArn; } /** *

* The thing group ARN. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param thingGroupArn

* The thing group ARN. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeThingGroupResult withThingGroupArn(String thingGroupArn) { this.thingGroupArn = thingGroupArn; return this; } /** *

* The version of the thing group. *

* * @return

* The version of the thing group. *

*/ public Long getVersion() { return version; } /** *

* The version of the thing group. *

* * @param version

* The version of the thing group. *

*/ public void setVersion(Long version) { this.version = version; } /** *

* The version of the thing group. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param version

* The version of the thing group. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeThingGroupResult withVersion(Long version) { this.version = version; return this; } /** *

* The thing group properties. *

* * @return

* The thing group properties. *

*/ public ThingGroupProperties getThingGroupProperties() { return thingGroupProperties; } /** *

* The thing group properties. *

* * @param thingGroupProperties

* The thing group properties. *

*/ public void setThingGroupProperties(ThingGroupProperties thingGroupProperties) { this.thingGroupProperties = thingGroupProperties; } /** *

* The thing group properties. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param thingGroupProperties

* The thing group properties. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeThingGroupResult withThingGroupProperties( ThingGroupProperties thingGroupProperties) { this.thingGroupProperties = thingGroupProperties; return this; } /** *

* Thing group metadata. *

* * @return

* Thing group metadata. *

*/ public ThingGroupMetadata getThingGroupMetadata() { return thingGroupMetadata; } /** *

* Thing group metadata. *

* * @param thingGroupMetadata

* Thing group metadata. *

*/ public void setThingGroupMetadata(ThingGroupMetadata thingGroupMetadata) { this.thingGroupMetadata = thingGroupMetadata; } /** *

* Thing group metadata. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param thingGroupMetadata

* Thing group metadata. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeThingGroupResult withThingGroupMetadata(ThingGroupMetadata thingGroupMetadata) { this.thingGroupMetadata = thingGroupMetadata; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getThingGroupName() != null) sb.append("thingGroupName: " + getThingGroupName() + ","); if (getThingGroupId() != null) sb.append("thingGroupId: " + getThingGroupId() + ","); if (getThingGroupArn() != null) sb.append("thingGroupArn: " + getThingGroupArn() + ","); if (getVersion() != null) sb.append("version: " + getVersion() + ","); if (getThingGroupProperties() != null) sb.append("thingGroupProperties: " + getThingGroupProperties() + ","); if (getThingGroupMetadata() != null) sb.append("thingGroupMetadata: " + getThingGroupMetadata()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingGroupName() == null) ? 0 : getThingGroupName().hashCode()); hashCode = prime * hashCode + ((getThingGroupId() == null) ? 0 : getThingGroupId().hashCode()); hashCode = prime * hashCode + ((getThingGroupArn() == null) ? 0 : getThingGroupArn().hashCode()); hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); hashCode = prime * hashCode + ((getThingGroupProperties() == null) ? 0 : getThingGroupProperties().hashCode()); hashCode = prime * hashCode + ((getThingGroupMetadata() == null) ? 0 : getThingGroupMetadata().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeThingGroupResult == false) return false; DescribeThingGroupResult other = (DescribeThingGroupResult) obj; if (other.getThingGroupName() == null ^ this.getThingGroupName() == null) return false; if (other.getThingGroupName() != null && other.getThingGroupName().equals(this.getThingGroupName()) == false) return false; if (other.getThingGroupId() == null ^ this.getThingGroupId() == null) return false; if (other.getThingGroupId() != null && other.getThingGroupId().equals(this.getThingGroupId()) == false) return false; if (other.getThingGroupArn() == null ^ this.getThingGroupArn() == null) return false; if (other.getThingGroupArn() != null && other.getThingGroupArn().equals(this.getThingGroupArn()) == false) return false; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) return false; if (other.getThingGroupProperties() == null ^ this.getThingGroupProperties() == null) return false; if (other.getThingGroupProperties() != null && other.getThingGroupProperties().equals(this.getThingGroupProperties()) == false) return false; if (other.getThingGroupMetadata() == null ^ this.getThingGroupMetadata() == null) return false; if (other.getThingGroupMetadata() != null && other.getThingGroupMetadata().equals(this.getThingGroupMetadata()) == false) return false; return true; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy