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

com.amazonaws.services.ivsrealtime.model.DestinationSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Interactive Video Service RealTime module holds the client classes that are used for communicating with Amazon Interactive Video Service RealTime Service

There is a newer version: 1.12.778
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.ivsrealtime.model;

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

/**
 * 

* Summary information about a Destination. *

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

* UTC time of the destination end. This is an ISO 8601 timestamp; note that this is returned as a string. *

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

* Unique identifier for this destination, assigned by IVS. *

*/ private String id; /** *

* UTC time of the destination start. This is an ISO 8601 timestamp; note that this is returned as a string. *

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

* State of the Composition Destination. *

*/ private String state; /** *

* UTC time of the destination end. This is an ISO 8601 timestamp; note that this is returned as a string. *

* * @param endTime * UTC time of the destination end. This is an ISO 8601 timestamp; note that this is returned as a * string. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* UTC time of the destination end. This is an ISO 8601 timestamp; note that this is returned as a string. *

* * @return UTC time of the destination end. This is an ISO 8601 timestamp; note that this is returned as a * string. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* UTC time of the destination end. This is an ISO 8601 timestamp; note that this is returned as a string. *

* * @param endTime * UTC time of the destination end. This is an ISO 8601 timestamp; note that this is returned as a * string. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationSummary withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* Unique identifier for this destination, assigned by IVS. *

* * @param id * Unique identifier for this destination, assigned by IVS. */ public void setId(String id) { this.id = id; } /** *

* Unique identifier for this destination, assigned by IVS. *

* * @return Unique identifier for this destination, assigned by IVS. */ public String getId() { return this.id; } /** *

* Unique identifier for this destination, assigned by IVS. *

* * @param id * Unique identifier for this destination, assigned by IVS. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationSummary withId(String id) { setId(id); return this; } /** *

* UTC time of the destination start. This is an ISO 8601 timestamp; note that this is returned as a string. *

* * @param startTime * UTC time of the destination start. This is an ISO 8601 timestamp; note that this is returned as a * string. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* UTC time of the destination start. This is an ISO 8601 timestamp; note that this is returned as a string. *

* * @return UTC time of the destination start. This is an ISO 8601 timestamp; note that this is returned as a * string. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* UTC time of the destination start. This is an ISO 8601 timestamp; note that this is returned as a string. *

* * @param startTime * UTC time of the destination start. This is an ISO 8601 timestamp; note that this is returned as a * string. * @return Returns a reference to this object so that method calls can be chained together. */ public DestinationSummary withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* State of the Composition Destination. *

* * @param state * State of the Composition Destination. * @see DestinationState */ public void setState(String state) { this.state = state; } /** *

* State of the Composition Destination. *

* * @return State of the Composition Destination. * @see DestinationState */ public String getState() { return this.state; } /** *

* State of the Composition Destination. *

* * @param state * State of the Composition Destination. * @return Returns a reference to this object so that method calls can be chained together. * @see DestinationState */ public DestinationSummary withState(String state) { setState(state); return this; } /** *

* State of the Composition Destination. *

* * @param state * State of the Composition Destination. * @return Returns a reference to this object so that method calls can be chained together. * @see DestinationState */ public DestinationSummary withState(DestinationState state) { this.state = state.toString(); 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 (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getState() != null) sb.append("State: ").append(getState()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DestinationSummary == false) return false; DestinationSummary other = (DestinationSummary) obj; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); return hashCode; } @Override public DestinationSummary clone() { try { return (DestinationSummary) 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.ivsrealtime.model.transform.DestinationSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy