/* * Copyright 2010-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; public class DescribeEdgeConfigurationResult implements Serializable { /** *
* The name of the stream from which the edge configuration was updated. *
*
* Constraints:
* Length: 1 - 256
* Pattern: [a-zA-Z0-9_.-]+
*/
private String streamName;
/**
*
* The Amazon Resource Name (ARN) of the stream. *
*
* Constraints:
* Length: 1 - 1024
* Pattern:
* arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-
* Z0-9_.-]+/[0-9]+
*/
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. *
*
* Constraints:
* Allowed Values: SYNCING, ACKNOWLEDGED, IN_SYNC, SYNC_FAILED,
* DELETING, DELETE_FAILED, DELETING_ACKNOWLEDGED
*/
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. *
*
* Constraints:
* Length: 1 - 256
* Pattern: [a-zA-Z0-9_.-]+
*
* @return
* The name of the stream from which the edge configuration was * updated. *
*/ public String getStreamName() { return streamName; } /** ** The name of the stream from which the edge configuration was updated. *
*
* Constraints:
* Length: 1 - 256
* Pattern: [a-zA-Z0-9_.-]+
*
* @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. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 256
* Pattern: [a-zA-Z0-9_.-]+
*
* @param streamName
* The name of the stream from which the edge configuration was * updated. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeEdgeConfigurationResult withStreamName(String streamName) { this.streamName = streamName; return this; } /** ** The Amazon Resource Name (ARN) of the stream. *
*
* Constraints:
* Length: 1 - 1024
* Pattern:
* arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-
* Z0-9_.-]+/[0-9]+
*
* @return
* The Amazon Resource Name (ARN) of the stream. *
*/ public String getStreamARN() { return streamARN; } /** ** The Amazon Resource Name (ARN) of the stream. *
*
* Constraints:
* Length: 1 - 1024
* Pattern:
* arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-
* Z0-9_.-]+/[0-9]+
*
* @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. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 1024
* Pattern:
* arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-
* Z0-9_.-]+/[0-9]+
*
* @param streamARN
* The Amazon Resource Name (ARN) of the stream. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeEdgeConfigurationResult withStreamARN(String streamARN) { this.streamARN = streamARN; return this; } /** ** 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 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. *
*/ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The timestamp at which a stream’s edge configuration was first created. *
** Returns a reference to this object so that method calls can be chained * together. * * @param creationTime
* The timestamp at which a stream’s edge configuration was first * created. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeEdgeConfigurationResult withCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; return this; } /** ** 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 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. *
*/ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** ** The timestamp at which a stream’s edge configuration was last updated. *
** Returns a reference to this object so that method calls can be chained * together. * * @param lastUpdatedTime
* The timestamp at which a stream’s edge configuration was last * updated. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeEdgeConfigurationResult withLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; return this; } /** ** The latest status of the edge configuration update. *
*
* Constraints:
* Allowed Values: SYNCING, ACKNOWLEDGED, IN_SYNC, SYNC_FAILED,
* DELETING, DELETE_FAILED, DELETING_ACKNOWLEDGED
*
* @return
* The latest status of the edge configuration update. *
* @see SyncStatus */ public String getSyncStatus() { return syncStatus; } /** ** The latest status of the edge configuration update. *
*
* Constraints:
* Allowed Values: SYNCING, ACKNOWLEDGED, IN_SYNC, SYNC_FAILED,
* DELETING, DELETE_FAILED, DELETING_ACKNOWLEDGED
*
* @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. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: SYNCING, ACKNOWLEDGED, IN_SYNC, SYNC_FAILED,
* DELETING, DELETE_FAILED, DELETING_ACKNOWLEDGED
*
* @param syncStatus
* The latest status of the edge configuration update. *
* @return A reference to this updated object so that method calls can be * chained together. * @see SyncStatus */ public DescribeEdgeConfigurationResult withSyncStatus(String syncStatus) { this.syncStatus = syncStatus; return this; } /** ** The latest status of the edge configuration update. *
*
* Constraints:
* Allowed Values: SYNCING, ACKNOWLEDGED, IN_SYNC, SYNC_FAILED,
* DELETING, DELETE_FAILED, DELETING_ACKNOWLEDGED
*
* @param syncStatus
* The latest status of the edge configuration update. *
* @see SyncStatus */ public void setSyncStatus(SyncStatus syncStatus) { this.syncStatus = syncStatus.toString(); } /** ** The latest status of the edge configuration update. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: SYNCING, ACKNOWLEDGED, IN_SYNC, SYNC_FAILED,
* DELETING, DELETE_FAILED, DELETING_ACKNOWLEDGED
*
* @param syncStatus
* The latest status of the edge configuration update. *
* @return A reference to this updated 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. *
* * @return* A description of the generated failure status. *
*/ public String getFailedStatusDetails() { return failedStatusDetails; } /** ** 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param failedStatusDetails
* A description of the generated failure status. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeEdgeConfigurationResult withFailedStatusDetails(String failedStatusDetails) { this.failedStatusDetails = 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. *
* * @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 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. *
*/ 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @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 A reference to this updated object so that method calls can be * chained together. */ public DescribeEdgeConfigurationResult withEdgeConfig(EdgeConfig edgeConfig) { this.edgeConfig = 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. *
* * @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 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. *
*/ 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @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 A reference to this updated object so that method calls can be * chained together. */ public DescribeEdgeConfigurationResult withEdgeAgentStatus(EdgeAgentStatus edgeAgentStatus) { this.edgeAgentStatus = edgeAgentStatus; 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 (getStreamName() != null) sb.append("StreamName: " + getStreamName() + ","); if (getStreamARN() != null) sb.append("StreamARN: " + getStreamARN() + ","); if (getCreationTime() != null) sb.append("CreationTime: " + getCreationTime() + ","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: " + getLastUpdatedTime() + ","); if (getSyncStatus() != null) sb.append("SyncStatus: " + getSyncStatus() + ","); if (getFailedStatusDetails() != null) sb.append("FailedStatusDetails: " + getFailedStatusDetails() + ","); if (getEdgeConfig() != null) sb.append("EdgeConfig: " + getEdgeConfig() + ","); if (getEdgeAgentStatus() != null) sb.append("EdgeAgentStatus: " + getEdgeAgentStatus()); sb.append("}"); return sb.toString(); } @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 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; } }