Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mediaservices.v2018_07_01;

import org.joda.time.Period;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* Specifies the clip time as an absolute time position in the media file. The
* absolute time can point to a different position depending on whether the
* media file starts from a timestamp of zero or not.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type")
@JsonTypeName("#Microsoft.Media.AbsoluteClipTime")
public class AbsoluteClipTime extends ClipTime {
/**
* The time position on the timeline of the input media. It is usually
* speicified as an ISO8601 period. e.g PT30S for 30 seconds.
*/
@JsonProperty(value = "time", required = true)
private Period time;

/**
* Get the time position on the timeline of the input media. It is usually speicified as an ISO8601 period. e.g PT30S for 30 seconds.
*
* @return the time value
*/
public Period time() {
return this.time;
}

/**
* Set the time position on the timeline of the input media. It is usually speicified as an ISO8601 period. e.g PT30S for 30 seconds.
*
* @param time the time value to set
* @return the AbsoluteClipTime object itself.
*/
public AbsoluteClipTime withTime(Period time) {
this.time = time;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mediaservices.v2018_07_01;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonSubTypes;

/**
* Base class for specifying a clip time. Use sub classes of this class to
* specify the time position in the media.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type")
@JsonTypeName("ClipTime")
@JsonSubTypes({
@JsonSubTypes.Type(name = "#Microsoft.Media.AbsoluteClipTime", value = AbsoluteClipTime.class)
})
public class ClipTime {
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ public class JobInputClip extends JobInput {
@JsonProperty(value = "files")
private List<String> files;

/**
* Defines a point on the timeline of the input media at which processing
* will start. Defaults to the beginning of the input media.
*/
@JsonProperty(value = "start")
private ClipTime start;

/**
* Defines a point on the timeline of the input media at which processing
* will end. Defaults to the end of the input media.
*/
@JsonProperty(value = "end")
private ClipTime end;

/**
* A label that is assigned to a JobInputClip, that is used to satisfy a
* reference used in the Transform. For example, a Transform can be
Expand Down Expand Up @@ -62,6 +76,46 @@ public JobInputClip withFiles(List<String> files) {
return this;
}

/**
* Get defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media.
*
* @return the start value
*/
public ClipTime start() {
return this.start;
}

/**
* Set defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media.
*
* @param start the start value to set
* @return the JobInputClip object itself.
*/
public JobInputClip withStart(ClipTime start) {
this.start = start;
return this;
}

/**
* Get defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media.
*
* @return the end value
*/
public ClipTime end() {
return this.end;
}

/**
* Set defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media.
*
* @param end the end value to set
* @return the JobInputClip object itself.
*/
public JobInputClip withEnd(ClipTime end) {
this.end = end;
return this;
}

/**
* Get a label that is assigned to a JobInputClip, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class LiveEventEncoding {
/**
* The encoding type for Live Event. This value is specified at creation
* time and cannot be updated. Possible values include: 'None', 'Basic',
* 'Standard'.
* 'Standard', 'Premium1080p'.
*/
@JsonProperty(value = "encodingType")
private LiveEventEncodingType encodingType;
Expand All @@ -30,7 +30,7 @@ public class LiveEventEncoding {
private String presetName;

/**
* Get the encoding type for Live Event. This value is specified at creation time and cannot be updated. Possible values include: 'None', 'Basic', 'Standard'.
* Get the encoding type for Live Event. This value is specified at creation time and cannot be updated. Possible values include: 'None', 'Basic', 'Standard', 'Premium1080p'.
*
* @return the encodingType value
*/
Expand All @@ -39,7 +39,7 @@ public LiveEventEncodingType encodingType() {
}

/**
* Set the encoding type for Live Event. This value is specified at creation time and cannot be updated. Possible values include: 'None', 'Basic', 'Standard'.
* Set the encoding type for Live Event. This value is specified at creation time and cannot be updated. Possible values include: 'None', 'Basic', 'Standard', 'Premium1080p'.
*
* @param encodingType the encodingType value to set
* @return the LiveEventEncoding object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,49 +8,40 @@

package com.microsoft.azure.management.mediaservices.v2018_07_01;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for LiveEventEncodingType.
*/
public enum LiveEventEncodingType {
/** Enum value None. */
NONE("None"),
public final class LiveEventEncodingType extends ExpandableStringEnum<LiveEventEncodingType> {
/** Static value None for LiveEventEncodingType. */
public static final LiveEventEncodingType NONE = fromString("None");

/** Enum value Basic. */
BASIC("Basic"),
/** Static value Basic for LiveEventEncodingType. */
public static final LiveEventEncodingType BASIC = fromString("Basic");

/** Enum value Standard. */
STANDARD("Standard");
/** Static value Standard for LiveEventEncodingType. */
public static final LiveEventEncodingType STANDARD = fromString("Standard");

/** The actual serialized value for a LiveEventEncodingType instance. */
private String value;

LiveEventEncodingType(String value) {
this.value = value;
}
/** Static value Premium1080p for LiveEventEncodingType. */
public static final LiveEventEncodingType PREMIUM1080P = fromString("Premium1080p");

/**
* Parses a serialized value to a LiveEventEncodingType instance.
*
* @param value the serialized value to parse.
* @return the parsed LiveEventEncodingType object, or null if unable to parse.
* Creates or finds a LiveEventEncodingType from its string representation.
* @param name a name to look for
* @return the corresponding LiveEventEncodingType
*/
@JsonCreator
public static LiveEventEncodingType fromString(String value) {
LiveEventEncodingType[] items = LiveEventEncodingType.values();
for (LiveEventEncodingType item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
public static LiveEventEncodingType fromString(String name) {
return fromString(name, LiveEventEncodingType.class);
}

@JsonValue
@Override
public String toString() {
return this.value;
/**
* @return known LiveEventEncodingType values
*/
public static Collection<LiveEventEncodingType> values() {
return values(LiveEventEncodingType.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,46 +8,34 @@

package com.microsoft.azure.management.mediaservices.v2018_07_01;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for LiveEventInputProtocol.
*/
public enum LiveEventInputProtocol {
/** Enum value FragmentedMP4. */
FRAGMENTED_MP4("FragmentedMP4"),
public final class LiveEventInputProtocol extends ExpandableStringEnum<LiveEventInputProtocol> {
/** Static value FragmentedMP4 for LiveEventInputProtocol. */
public static final LiveEventInputProtocol FRAGMENTED_MP4 = fromString("FragmentedMP4");

/** Enum value RTMP. */
RTMP("RTMP");

/** The actual serialized value for a LiveEventInputProtocol instance. */
private String value;

LiveEventInputProtocol(String value) {
this.value = value;
}
/** Static value RTMP for LiveEventInputProtocol. */
public static final LiveEventInputProtocol RTMP = fromString("RTMP");

/**
* Parses a serialized value to a LiveEventInputProtocol instance.
*
* @param value the serialized value to parse.
* @return the parsed LiveEventInputProtocol object, or null if unable to parse.
* Creates or finds a LiveEventInputProtocol from its string representation.
* @param name a name to look for
* @return the corresponding LiveEventInputProtocol
*/
@JsonCreator
public static LiveEventInputProtocol fromString(String value) {
LiveEventInputProtocol[] items = LiveEventInputProtocol.values();
for (LiveEventInputProtocol item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
public static LiveEventInputProtocol fromString(String name) {
return fromString(name, LiveEventInputProtocol.class);
}

@JsonValue
@Override
public String toString() {
return this.value;
/**
* @return known LiveEventInputProtocol values
*/
public static Collection<LiveEventInputProtocol> values() {
return values(LiveEventInputProtocol.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,55 +8,43 @@

package com.microsoft.azure.management.mediaservices.v2018_07_01;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for LiveEventResourceState.
*/
public enum LiveEventResourceState {
/** Enum value Stopped. */
STOPPED("Stopped"),
public final class LiveEventResourceState extends ExpandableStringEnum<LiveEventResourceState> {
/** Static value Stopped for LiveEventResourceState. */
public static final LiveEventResourceState STOPPED = fromString("Stopped");

/** Enum value Starting. */
STARTING("Starting"),
/** Static value Starting for LiveEventResourceState. */
public static final LiveEventResourceState STARTING = fromString("Starting");

/** Enum value Running. */
RUNNING("Running"),
/** Static value Running for LiveEventResourceState. */
public static final LiveEventResourceState RUNNING = fromString("Running");

/** Enum value Stopping. */
STOPPING("Stopping"),
/** Static value Stopping for LiveEventResourceState. */
public static final LiveEventResourceState STOPPING = fromString("Stopping");

/** Enum value Deleting. */
DELETING("Deleting");

/** The actual serialized value for a LiveEventResourceState instance. */
private String value;

LiveEventResourceState(String value) {
this.value = value;
}
/** Static value Deleting for LiveEventResourceState. */
public static final LiveEventResourceState DELETING = fromString("Deleting");

/**
* Parses a serialized value to a LiveEventResourceState instance.
*
* @param value the serialized value to parse.
* @return the parsed LiveEventResourceState object, or null if unable to parse.
* Creates or finds a LiveEventResourceState from its string representation.
* @param name a name to look for
* @return the corresponding LiveEventResourceState
*/
@JsonCreator
public static LiveEventResourceState fromString(String value) {
LiveEventResourceState[] items = LiveEventResourceState.values();
for (LiveEventResourceState item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
public static LiveEventResourceState fromString(String name) {
return fromString(name, LiveEventResourceState.class);
}

@JsonValue
@Override
public String toString() {
return this.value;
/**
* @return known LiveEventResourceState values
*/
public static Collection<LiveEventResourceState> values() {
return values(LiveEventResourceState.class);
}
}
Loading