/* * 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.kinesisvideo.model; import java.io.Serializable; import javax.annotation.Generated; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeEdgeConfigurationResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The name of the stream from which the edge configuration was updated. *

*/ private String streamName; /** *

* The Amazon Resource Name (ARN) of the stream. *

*/ private String streamARN; /** *

* The timestamp at which a stream’s edge configuration was first created. *

*/ private java.util.Date creationTime; /** *

* The timestamp at which a stream’s edge configuration was last updated. *

*/ private java.util.Date lastUpdatedTime; /** *

* The latest status of the edge configuration update. *

*/ private String syncStatus; /** *

* A description of the generated failure status. *

*/ private String failedStatusDetails; /** *

* A description of the stream's edge configuration that will be used to sync with the Edge Agent IoT Greengrass * component. The Edge Agent component will run on an IoT Hub Device setup at your premise. *

*/ private EdgeConfig edgeConfig; /** *

* An object that contains the latest status details for an edge agent's recorder and uploader jobs. Use this * information to determine the current health of an edge agent. *

*/ private EdgeAgentStatus edgeAgentStatus; /** *

* The name of the stream from which the edge configuration was updated. *

* * @param streamName * The name of the stream from which the edge configuration was updated. */ public void setStreamName(String streamName) { this.streamName = streamName; } /** *

* The name of the stream from which the edge configuration was updated. *

* * @return The name of the stream from which the edge configuration was updated. */ public String getStreamName() { return this.streamName; } /** *

* The name of the stream from which the edge configuration was updated. *

* * @param streamName * The name of the stream from which the edge configuration was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEdgeConfigurationResult withStreamName(String streamName) { setStreamName(streamName); return this; } /** *

* The Amazon Resource Name (ARN) of the stream. *

* * @param streamARN * The Amazon Resource Name (ARN) of the stream. */ public void setStreamARN(String streamARN) { this.streamARN = streamARN; } /** *

* The Amazon Resource Name (ARN) of the stream. *

* * @return The Amazon Resource Name (ARN) of the stream. */ public String getStreamARN() { return this.streamARN; } /** *

* The Amazon Resource Name (ARN) of the stream. *

* * @param streamARN * The Amazon Resource Name (ARN) of the stream. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEdgeConfigurationResult withStreamARN(String streamARN) { setStreamARN(streamARN); return this; } /** *

* The timestamp at which a stream’s edge configuration was first created. *

* * @param creationTime * The timestamp at which a stream’s edge configuration was first created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The timestamp at which a stream’s edge configuration was first created. *

* * @return The timestamp at which a stream’s edge configuration was first created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The timestamp at which a stream’s edge configuration was first created. *

* * @param creationTime * The timestamp at which a stream’s edge configuration was first created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEdgeConfigurationResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* The timestamp at which a stream’s edge configuration was last updated. *

* * @param lastUpdatedTime * The timestamp at which a stream’s edge configuration was last updated. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** *

* The timestamp at which a stream’s edge configuration was last updated. *

* * @return The timestamp at which a stream’s edge configuration was last updated. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** *

* The timestamp at which a stream’s edge configuration was last updated. *

* * @param lastUpdatedTime * The timestamp at which a stream’s edge configuration was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEdgeConfigurationResult withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** *

* The latest status of the edge configuration update. *

* * @param syncStatus * The latest status of the edge configuration update. * @see SyncStatus */ public void setSyncStatus(String syncStatus) { this.syncStatus = syncStatus; } /** *

* The latest status of the edge configuration update. *

* * @return The latest status of the edge configuration update. * @see SyncStatus */ public String getSyncStatus() { return this.syncStatus; } /** *

* The latest status of the edge configuration update. *

* * @param syncStatus * The latest status of the edge configuration update. * @return Returns a reference to this object so that method calls can be chained together. * @see SyncStatus */ public DescribeEdgeConfigurationResult withSyncStatus(String syncStatus) { setSyncStatus(syncStatus); return this; } /** *

* The latest status of the edge configuration update. *

* * @param syncStatus * The latest status of the edge configuration update. * @return Returns a reference to this object so that method calls can be chained together. * @see SyncStatus */ public DescribeEdgeConfigurationResult withSyncStatus(SyncStatus syncStatus) { this.syncStatus = syncStatus.toString(); return this; } /** *

* A description of the generated failure status. *

* * @param failedStatusDetails * A description of the generated failure status. */ public void setFailedStatusDetails(String failedStatusDetails) { this.failedStatusDetails = failedStatusDetails; } /** *

* A description of the generated failure status. *

* * @return A description of the generated failure status. */ public String getFailedStatusDetails() { return this.failedStatusDetails; } /** *

* A description of the generated failure status. *

* * @param failedStatusDetails * A description of the generated failure status. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEdgeConfigurationResult withFailedStatusDetails(String failedStatusDetails) { setFailedStatusDetails(failedStatusDetails); return this; } /** *

* A description of the stream's edge configuration that will be used to sync with the Edge Agent IoT Greengrass * component. The Edge Agent component will run on an IoT Hub Device setup at your premise. *

* * @param edgeConfig * A description of the stream's edge configuration that will be used to sync with the Edge Agent IoT * Greengrass component. The Edge Agent component will run on an IoT Hub Device setup at your premise. */ public void setEdgeConfig(EdgeConfig edgeConfig) { this.edgeConfig = edgeConfig; } /** *

* A description of the stream's edge configuration that will be used to sync with the Edge Agent IoT Greengrass * component. The Edge Agent component will run on an IoT Hub Device setup at your premise. *

* * @return A description of the stream's edge configuration that will be used to sync with the Edge Agent IoT * Greengrass component. The Edge Agent component will run on an IoT Hub Device setup at your premise. */ public EdgeConfig getEdgeConfig() { return this.edgeConfig; } /** *

* A description of the stream's edge configuration that will be used to sync with the Edge Agent IoT Greengrass * component. The Edge Agent component will run on an IoT Hub Device setup at your premise. *

* * @param edgeConfig * A description of the stream's edge configuration that will be used to sync with the Edge Agent IoT * Greengrass component. The Edge Agent component will run on an IoT Hub Device setup at your premise. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEdgeConfigurationResult withEdgeConfig(EdgeConfig edgeConfig) { setEdgeConfig(edgeConfig); return this; } /** *

* An object that contains the latest status details for an edge agent's recorder and uploader jobs. Use this * information to determine the current health of an edge agent. *

* * @param edgeAgentStatus * An object that contains the latest status details for an edge agent's recorder and uploader jobs. Use this * information to determine the current health of an edge agent. */ public void setEdgeAgentStatus(EdgeAgentStatus edgeAgentStatus) { this.edgeAgentStatus = edgeAgentStatus; } /** *

* An object that contains the latest status details for an edge agent's recorder and uploader jobs. Use this * information to determine the current health of an edge agent. *

* * @return An object that contains the latest status details for an edge agent's recorder and uploader jobs. Use * this information to determine the current health of an edge agent. */ public EdgeAgentStatus getEdgeAgentStatus() { return this.edgeAgentStatus; } /** *

* An object that contains the latest status details for an edge agent's recorder and uploader jobs. Use this * information to determine the current health of an edge agent. *

* * @param edgeAgentStatus * An object that contains the latest status details for an edge agent's recorder and uploader jobs. Use this * information to determine the current health of an edge agent. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEdgeConfigurationResult withEdgeAgentStatus(EdgeAgentStatus edgeAgentStatus) { setEdgeAgentStatus(edgeAgentStatus); 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 (getStreamName() != null) sb.append("StreamName: ").append(getStreamName()).append(","); if (getStreamARN() != null) sb.append("StreamARN: ").append(getStreamARN()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(","); if (getSyncStatus() != null) sb.append("SyncStatus: ").append(getSyncStatus()).append(","); if (getFailedStatusDetails() != null) sb.append("FailedStatusDetails: ").append(getFailedStatusDetails()).append(","); if (getEdgeConfig() != null) sb.append("EdgeConfig: ").append(getEdgeConfig()).append(","); if (getEdgeAgentStatus() != null) sb.append("EdgeAgentStatus: ").append(getEdgeAgentStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeEdgeConfigurationResult == false) return false; DescribeEdgeConfigurationResult other = (DescribeEdgeConfigurationResult) obj; if (other.getStreamName() == null ^ this.getStreamName() == null) return false; if (other.getStreamName() != null && other.getStreamName().equals(this.getStreamName()) == false) return false; if (other.getStreamARN() == null ^ this.getStreamARN() == null) return false; if (other.getStreamARN() != null && other.getStreamARN().equals(this.getStreamARN()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false) return false; if (other.getSyncStatus() == null ^ this.getSyncStatus() == null) return false; if (other.getSyncStatus() != null && other.getSyncStatus().equals(this.getSyncStatus()) == false) return false; if (other.getFailedStatusDetails() == null ^ this.getFailedStatusDetails() == null) return false; if (other.getFailedStatusDetails() != null && other.getFailedStatusDetails().equals(this.getFailedStatusDetails()) == false) return false; if (other.getEdgeConfig() == null ^ this.getEdgeConfig() == null) return false; if (other.getEdgeConfig() != null && other.getEdgeConfig().equals(this.getEdgeConfig()) == false) return false; if (other.getEdgeAgentStatus() == null ^ this.getEdgeAgentStatus() == null) return false; if (other.getEdgeAgentStatus() != null && other.getEdgeAgentStatus().equals(this.getEdgeAgentStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStreamName() == null) ? 0 : getStreamName().hashCode()); hashCode = prime * hashCode + ((getStreamARN() == null) ? 0 : getStreamARN().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); hashCode = prime * hashCode + ((getSyncStatus() == null) ? 0 : getSyncStatus().hashCode()); hashCode = prime * hashCode + ((getFailedStatusDetails() == null) ? 0 : getFailedStatusDetails().hashCode()); hashCode = prime * hashCode + ((getEdgeConfig() == null) ? 0 : getEdgeConfig().hashCode()); hashCode = prime * hashCode + ((getEdgeAgentStatus() == null) ? 0 : getEdgeAgentStatus().hashCode()); return hashCode; } @Override public DescribeEdgeConfigurationResult clone() { try { return (DescribeEdgeConfigurationResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }