/*
* 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;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeGatewayResult extends com.amazonaws.AmazonWebServiceResult
* The ID of the gateway device.
*
* The name of the gateway.
*
* The ARN of the gateway,
* which has the following format.
*
*
* The gateway's platform.
*
* A list of gateway capability summaries that each contain a namespace and status. Each gateway capability defines
* data sources for the gateway. To retrieve a capability configuration's definition, use DescribeGatewayCapabilityConfiguration.
*
* The date the gateway was created, in Unix epoch time.
*
* The date the gateway was last updated, in Unix epoch time.
*
* The ID of the gateway device.
*
* The ID of the gateway device.
*
* The ID of the gateway device.
*
* The name of the gateway.
*
* The name of the gateway.
*
* The name of the gateway.
*
* The ARN of the gateway,
* which has the following format.
*
* arn:${Partition}:iotsitewise:${Region}:${Account}:gateway/${GatewayId}
* arn:${Partition}:iotsitewise:${Region}:${Account}:gateway/${GatewayId}
*
* arn:${Partition}:iotsitewise:${Region}:${Account}:gateway/${GatewayId}
*/
public void setGatewayArn(String gatewayArn) {
this.gatewayArn = gatewayArn;
}
/**
*
* The ARN of the gateway, * which has the following format. *
*
* arn:${Partition}:iotsitewise:${Region}:${Account}:gateway/${GatewayId}
*
* arn:${Partition}:iotsitewise:${Region}:${Account}:gateway/${GatewayId}
*/
public String getGatewayArn() {
return this.gatewayArn;
}
/**
*
* The ARN of the gateway, * which has the following format. *
*
* arn:${Partition}:iotsitewise:${Region}:${Account}:gateway/${GatewayId}
*
* arn:${Partition}:iotsitewise:${Region}:${Account}:gateway/${GatewayId}
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayResult withGatewayArn(String gatewayArn) {
setGatewayArn(gatewayArn);
return this;
}
/**
*
* The gateway's platform. *
* * @param gatewayPlatform * The gateway's platform. */ public void setGatewayPlatform(GatewayPlatform gatewayPlatform) { this.gatewayPlatform = gatewayPlatform; } /** ** The gateway's platform. *
* * @return The gateway's platform. */ public GatewayPlatform getGatewayPlatform() { return this.gatewayPlatform; } /** ** The gateway's platform. *
* * @param gatewayPlatform * The gateway's platform. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGatewayResult withGatewayPlatform(GatewayPlatform gatewayPlatform) { setGatewayPlatform(gatewayPlatform); return this; } /** ** A list of gateway capability summaries that each contain a namespace and status. Each gateway capability defines * data sources for the gateway. To retrieve a capability configuration's definition, use DescribeGatewayCapabilityConfiguration. *
* * @return A list of gateway capability summaries that each contain a namespace and status. Each gateway capability * defines data sources for the gateway. To retrieve a capability configuration's definition, use DescribeGatewayCapabilityConfiguration. */ public java.util.List* A list of gateway capability summaries that each contain a namespace and status. Each gateway capability defines * data sources for the gateway. To retrieve a capability configuration's definition, use DescribeGatewayCapabilityConfiguration. *
* * @param gatewayCapabilitySummaries * A list of gateway capability summaries that each contain a namespace and status. Each gateway capability * defines data sources for the gateway. To retrieve a capability configuration's definition, use DescribeGatewayCapabilityConfiguration. */ public void setGatewayCapabilitySummaries(java.util.Collection* A list of gateway capability summaries that each contain a namespace and status. Each gateway capability defines * data sources for the gateway. To retrieve a capability configuration's definition, use DescribeGatewayCapabilityConfiguration. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGatewayCapabilitySummaries(java.util.Collection)} or * {@link #withGatewayCapabilitySummaries(java.util.Collection)} if you want to override the existing values. *
* * @param gatewayCapabilitySummaries * A list of gateway capability summaries that each contain a namespace and status. Each gateway capability * defines data sources for the gateway. To retrieve a capability configuration's definition, use DescribeGatewayCapabilityConfiguration. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGatewayResult withGatewayCapabilitySummaries(GatewayCapabilitySummary... gatewayCapabilitySummaries) { if (this.gatewayCapabilitySummaries == null) { setGatewayCapabilitySummaries(new java.util.ArrayList* A list of gateway capability summaries that each contain a namespace and status. Each gateway capability defines * data sources for the gateway. To retrieve a capability configuration's definition, use DescribeGatewayCapabilityConfiguration. *
* * @param gatewayCapabilitySummaries * A list of gateway capability summaries that each contain a namespace and status. Each gateway capability * defines data sources for the gateway. To retrieve a capability configuration's definition, use DescribeGatewayCapabilityConfiguration. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGatewayResult withGatewayCapabilitySummaries(java.util.Collection* The date the gateway was created, in Unix epoch time. *
* * @param creationDate * The date the gateway was created, in Unix epoch time. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** ** The date the gateway was created, in Unix epoch time. *
* * @return The date the gateway was created, in Unix epoch time. */ public java.util.Date getCreationDate() { return this.creationDate; } /** ** The date the gateway was created, in Unix epoch time. *
* * @param creationDate * The date the gateway was created, in Unix epoch time. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGatewayResult withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** ** The date the gateway was last updated, in Unix epoch time. *
* * @param lastUpdateDate * The date the gateway was last updated, in Unix epoch time. */ public void setLastUpdateDate(java.util.Date lastUpdateDate) { this.lastUpdateDate = lastUpdateDate; } /** ** The date the gateway was last updated, in Unix epoch time. *
* * @return The date the gateway was last updated, in Unix epoch time. */ public java.util.Date getLastUpdateDate() { return this.lastUpdateDate; } /** ** The date the gateway was last updated, in Unix epoch time. *
* * @param lastUpdateDate * The date the gateway was last updated, in Unix epoch time. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGatewayResult withLastUpdateDate(java.util.Date lastUpdateDate) { setLastUpdateDate(lastUpdateDate); return this; } /** * 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 (getGatewayId() != null) sb.append("GatewayId: ").append(getGatewayId()).append(","); if (getGatewayName() != null) sb.append("GatewayName: ").append(getGatewayName()).append(","); if (getGatewayArn() != null) sb.append("GatewayArn: ").append(getGatewayArn()).append(","); if (getGatewayPlatform() != null) sb.append("GatewayPlatform: ").append(getGatewayPlatform()).append(","); if (getGatewayCapabilitySummaries() != null) sb.append("GatewayCapabilitySummaries: ").append(getGatewayCapabilitySummaries()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getLastUpdateDate() != null) sb.append("LastUpdateDate: ").append(getLastUpdateDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeGatewayResult == false) return false; DescribeGatewayResult other = (DescribeGatewayResult) obj; if (other.getGatewayId() == null ^ this.getGatewayId() == null) return false; if (other.getGatewayId() != null && other.getGatewayId().equals(this.getGatewayId()) == false) return false; if (other.getGatewayName() == null ^ this.getGatewayName() == null) return false; if (other.getGatewayName() != null && other.getGatewayName().equals(this.getGatewayName()) == false) return false; if (other.getGatewayArn() == null ^ this.getGatewayArn() == null) return false; if (other.getGatewayArn() != null && other.getGatewayArn().equals(this.getGatewayArn()) == false) return false; if (other.getGatewayPlatform() == null ^ this.getGatewayPlatform() == null) return false; if (other.getGatewayPlatform() != null && other.getGatewayPlatform().equals(this.getGatewayPlatform()) == false) return false; if (other.getGatewayCapabilitySummaries() == null ^ this.getGatewayCapabilitySummaries() == null) return false; if (other.getGatewayCapabilitySummaries() != null && other.getGatewayCapabilitySummaries().equals(this.getGatewayCapabilitySummaries()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getLastUpdateDate() == null ^ this.getLastUpdateDate() == null) return false; if (other.getLastUpdateDate() != null && other.getLastUpdateDate().equals(this.getLastUpdateDate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGatewayId() == null) ? 0 : getGatewayId().hashCode()); hashCode = prime * hashCode + ((getGatewayName() == null) ? 0 : getGatewayName().hashCode()); hashCode = prime * hashCode + ((getGatewayArn() == null) ? 0 : getGatewayArn().hashCode()); hashCode = prime * hashCode + ((getGatewayPlatform() == null) ? 0 : getGatewayPlatform().hashCode()); hashCode = prime * hashCode + ((getGatewayCapabilitySummaries() == null) ? 0 : getGatewayCapabilitySummaries().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastUpdateDate() == null) ? 0 : getLastUpdateDate().hashCode()); return hashCode; } @Override public DescribeGatewayResult clone() { try { return (DescribeGatewayResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }