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

com.amazonaws.services.mediatailor.model.Transition Maven / Gradle / Ivy

/*
 * 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.mediatailor.model;

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

/**
 * 

* Program transition configuration. *

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

* The duration of the live program in seconds. *

*/ private Long durationMillis; /** *

* The position where this program will be inserted relative to the RelativePosition. *

*/ private String relativePosition; /** *

* The name of the program that this program will be inserted next to, as defined by RelativePosition. *

*/ private String relativeProgram; /** *

* The date and time that the program is scheduled to start, in epoch milliseconds. *

*/ private Long scheduledStartTimeMillis; /** *

* Defines when the program plays in the schedule. You can set the value to ABSOLUTE or * RELATIVE. *

*

* ABSOLUTE - The program plays at a specific wall clock time. This setting can only be used for * channels using the LINEAR PlaybackMode. *

*

* Note the following considerations when using ABSOLUTE transitions: *

*

* If the preceding program in the schedule has a duration that extends past the wall clock time, MediaTailor * truncates the preceding program on a common segment boundary. *

*

* If there are gaps in playback, MediaTailor plays the FillerSlate you configured for your linear * channel. *

*

* RELATIVE - The program is inserted into the schedule either before or after a program that you * specify via RelativePosition. *

*/ private String type; /** *

* The duration of the live program in seconds. *

* * @param durationMillis * The duration of the live program in seconds. */ public void setDurationMillis(Long durationMillis) { this.durationMillis = durationMillis; } /** *

* The duration of the live program in seconds. *

* * @return The duration of the live program in seconds. */ public Long getDurationMillis() { return this.durationMillis; } /** *

* The duration of the live program in seconds. *

* * @param durationMillis * The duration of the live program in seconds. * @return Returns a reference to this object so that method calls can be chained together. */ public Transition withDurationMillis(Long durationMillis) { setDurationMillis(durationMillis); return this; } /** *

* The position where this program will be inserted relative to the RelativePosition. *

* * @param relativePosition * The position where this program will be inserted relative to the RelativePosition. * @see RelativePosition */ public void setRelativePosition(String relativePosition) { this.relativePosition = relativePosition; } /** *

* The position where this program will be inserted relative to the RelativePosition. *

* * @return The position where this program will be inserted relative to the RelativePosition. * @see RelativePosition */ public String getRelativePosition() { return this.relativePosition; } /** *

* The position where this program will be inserted relative to the RelativePosition. *

* * @param relativePosition * The position where this program will be inserted relative to the RelativePosition. * @return Returns a reference to this object so that method calls can be chained together. * @see RelativePosition */ public Transition withRelativePosition(String relativePosition) { setRelativePosition(relativePosition); return this; } /** *

* The position where this program will be inserted relative to the RelativePosition. *

* * @param relativePosition * The position where this program will be inserted relative to the RelativePosition. * @return Returns a reference to this object so that method calls can be chained together. * @see RelativePosition */ public Transition withRelativePosition(RelativePosition relativePosition) { this.relativePosition = relativePosition.toString(); return this; } /** *

* The name of the program that this program will be inserted next to, as defined by RelativePosition. *

* * @param relativeProgram * The name of the program that this program will be inserted next to, as defined by * RelativePosition. */ public void setRelativeProgram(String relativeProgram) { this.relativeProgram = relativeProgram; } /** *

* The name of the program that this program will be inserted next to, as defined by RelativePosition. *

* * @return The name of the program that this program will be inserted next to, as defined by * RelativePosition. */ public String getRelativeProgram() { return this.relativeProgram; } /** *

* The name of the program that this program will be inserted next to, as defined by RelativePosition. *

* * @param relativeProgram * The name of the program that this program will be inserted next to, as defined by * RelativePosition. * @return Returns a reference to this object so that method calls can be chained together. */ public Transition withRelativeProgram(String relativeProgram) { setRelativeProgram(relativeProgram); return this; } /** *

* The date and time that the program is scheduled to start, in epoch milliseconds. *

* * @param scheduledStartTimeMillis * The date and time that the program is scheduled to start, in epoch milliseconds. */ public void setScheduledStartTimeMillis(Long scheduledStartTimeMillis) { this.scheduledStartTimeMillis = scheduledStartTimeMillis; } /** *

* The date and time that the program is scheduled to start, in epoch milliseconds. *

* * @return The date and time that the program is scheduled to start, in epoch milliseconds. */ public Long getScheduledStartTimeMillis() { return this.scheduledStartTimeMillis; } /** *

* The date and time that the program is scheduled to start, in epoch milliseconds. *

* * @param scheduledStartTimeMillis * The date and time that the program is scheduled to start, in epoch milliseconds. * @return Returns a reference to this object so that method calls can be chained together. */ public Transition withScheduledStartTimeMillis(Long scheduledStartTimeMillis) { setScheduledStartTimeMillis(scheduledStartTimeMillis); return this; } /** *

* Defines when the program plays in the schedule. You can set the value to ABSOLUTE or * RELATIVE. *

*

* ABSOLUTE - The program plays at a specific wall clock time. This setting can only be used for * channels using the LINEAR PlaybackMode. *

*

* Note the following considerations when using ABSOLUTE transitions: *

*

* If the preceding program in the schedule has a duration that extends past the wall clock time, MediaTailor * truncates the preceding program on a common segment boundary. *

*

* If there are gaps in playback, MediaTailor plays the FillerSlate you configured for your linear * channel. *

*

* RELATIVE - The program is inserted into the schedule either before or after a program that you * specify via RelativePosition. *

* * @param type * Defines when the program plays in the schedule. You can set the value to ABSOLUTE or * RELATIVE.

*

* ABSOLUTE - The program plays at a specific wall clock time. This setting can only be used for * channels using the LINEAR PlaybackMode. *

*

* Note the following considerations when using ABSOLUTE transitions: *

*

* If the preceding program in the schedule has a duration that extends past the wall clock time, MediaTailor * truncates the preceding program on a common segment boundary. *

*

* If there are gaps in playback, MediaTailor plays the FillerSlate you configured for your * linear channel. *

*

* RELATIVE - The program is inserted into the schedule either before or after a program that * you specify via RelativePosition. */ public void setType(String type) { this.type = type; } /** *

* Defines when the program plays in the schedule. You can set the value to ABSOLUTE or * RELATIVE. *

*

* ABSOLUTE - The program plays at a specific wall clock time. This setting can only be used for * channels using the LINEAR PlaybackMode. *

*

* Note the following considerations when using ABSOLUTE transitions: *

*

* If the preceding program in the schedule has a duration that extends past the wall clock time, MediaTailor * truncates the preceding program on a common segment boundary. *

*

* If there are gaps in playback, MediaTailor plays the FillerSlate you configured for your linear * channel. *

*

* RELATIVE - The program is inserted into the schedule either before or after a program that you * specify via RelativePosition. *

* * @return Defines when the program plays in the schedule. You can set the value to ABSOLUTE or * RELATIVE.

*

* ABSOLUTE - The program plays at a specific wall clock time. This setting can only be used * for channels using the LINEAR PlaybackMode. *

*

* Note the following considerations when using ABSOLUTE transitions: *

*

* If the preceding program in the schedule has a duration that extends past the wall clock time, * MediaTailor truncates the preceding program on a common segment boundary. *

*

* If there are gaps in playback, MediaTailor plays the FillerSlate you configured for your * linear channel. *

*

* RELATIVE - The program is inserted into the schedule either before or after a program that * you specify via RelativePosition. */ public String getType() { return this.type; } /** *

* Defines when the program plays in the schedule. You can set the value to ABSOLUTE or * RELATIVE. *

*

* ABSOLUTE - The program plays at a specific wall clock time. This setting can only be used for * channels using the LINEAR PlaybackMode. *

*

* Note the following considerations when using ABSOLUTE transitions: *

*

* If the preceding program in the schedule has a duration that extends past the wall clock time, MediaTailor * truncates the preceding program on a common segment boundary. *

*

* If there are gaps in playback, MediaTailor plays the FillerSlate you configured for your linear * channel. *

*

* RELATIVE - The program is inserted into the schedule either before or after a program that you * specify via RelativePosition. *

* * @param type * Defines when the program plays in the schedule. You can set the value to ABSOLUTE or * RELATIVE.

*

* ABSOLUTE - The program plays at a specific wall clock time. This setting can only be used for * channels using the LINEAR PlaybackMode. *

*

* Note the following considerations when using ABSOLUTE transitions: *

*

* If the preceding program in the schedule has a duration that extends past the wall clock time, MediaTailor * truncates the preceding program on a common segment boundary. *

*

* If there are gaps in playback, MediaTailor plays the FillerSlate you configured for your * linear channel. *

*

* RELATIVE - The program is inserted into the schedule either before or after a program that * you specify via RelativePosition. * @return Returns a reference to this object so that method calls can be chained together. */ public Transition withType(String type) { setType(type); 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 (getDurationMillis() != null) sb.append("DurationMillis: ").append(getDurationMillis()).append(","); if (getRelativePosition() != null) sb.append("RelativePosition: ").append(getRelativePosition()).append(","); if (getRelativeProgram() != null) sb.append("RelativeProgram: ").append(getRelativeProgram()).append(","); if (getScheduledStartTimeMillis() != null) sb.append("ScheduledStartTimeMillis: ").append(getScheduledStartTimeMillis()).append(","); if (getType() != null) sb.append("Type: ").append(getType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Transition == false) return false; Transition other = (Transition) obj; if (other.getDurationMillis() == null ^ this.getDurationMillis() == null) return false; if (other.getDurationMillis() != null && other.getDurationMillis().equals(this.getDurationMillis()) == false) return false; if (other.getRelativePosition() == null ^ this.getRelativePosition() == null) return false; if (other.getRelativePosition() != null && other.getRelativePosition().equals(this.getRelativePosition()) == false) return false; if (other.getRelativeProgram() == null ^ this.getRelativeProgram() == null) return false; if (other.getRelativeProgram() != null && other.getRelativeProgram().equals(this.getRelativeProgram()) == false) return false; if (other.getScheduledStartTimeMillis() == null ^ this.getScheduledStartTimeMillis() == null) return false; if (other.getScheduledStartTimeMillis() != null && other.getScheduledStartTimeMillis().equals(this.getScheduledStartTimeMillis()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDurationMillis() == null) ? 0 : getDurationMillis().hashCode()); hashCode = prime * hashCode + ((getRelativePosition() == null) ? 0 : getRelativePosition().hashCode()); hashCode = prime * hashCode + ((getRelativeProgram() == null) ? 0 : getRelativeProgram().hashCode()); hashCode = prime * hashCode + ((getScheduledStartTimeMillis() == null) ? 0 : getScheduledStartTimeMillis().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); return hashCode; } @Override public Transition clone() { try { return (Transition) 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.mediatailor.model.transform.TransitionMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy