com.azure.resourcemanager.mediaservices.models.LiveEventInputTrackSelection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-mediaservices Show documentation
Show all versions of azure-resourcemanager-mediaservices Show documentation
This package contains Microsoft Azure SDK for MediaServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. This Swagger was generated by the API Framework. Package tag package-account-2023-01.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.mediaservices.models;
import com.azure.core.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;
/**
* A track selection condition. This property is reserved for future use, any value set on this property will be
* ignored.
*/
@Fluent
public final class LiveEventInputTrackSelection implements JsonSerializable {
/*
* Property name to select. This property is reserved for future use, any value set on this property will be
* ignored.
*/
private String property;
/*
* Comparing operation. This property is reserved for future use, any value set on this property will be ignored.
*/
private String operation;
/*
* Property value to select. This property is reserved for future use, any value set on this property will be
* ignored.
*/
private String value;
/**
* Creates an instance of LiveEventInputTrackSelection class.
*/
public LiveEventInputTrackSelection() {
}
/**
* Get the property property: Property name to select. This property is reserved for future use, any value set on
* this property will be ignored.
*
* @return the property value.
*/
public String property() {
return this.property;
}
/**
* Set the property property: Property name to select. This property is reserved for future use, any value set on
* this property will be ignored.
*
* @param property the property value to set.
* @return the LiveEventInputTrackSelection object itself.
*/
public LiveEventInputTrackSelection withProperty(String property) {
this.property = property;
return this;
}
/**
* Get the operation property: Comparing operation. This property is reserved for future use, any value set on this
* property will be ignored.
*
* @return the operation value.
*/
public String operation() {
return this.operation;
}
/**
* Set the operation property: Comparing operation. This property is reserved for future use, any value set on this
* property will be ignored.
*
* @param operation the operation value to set.
* @return the LiveEventInputTrackSelection object itself.
*/
public LiveEventInputTrackSelection withOperation(String operation) {
this.operation = operation;
return this;
}
/**
* Get the value property: Property value to select. This property is reserved for future use, any value set on this
* property will be ignored.
*
* @return the value value.
*/
public String value() {
return this.value;
}
/**
* Set the value property: Property value to select. This property is reserved for future use, any value set on this
* property will be ignored.
*
* @param value the value value to set.
* @return the LiveEventInputTrackSelection object itself.
*/
public LiveEventInputTrackSelection withValue(String value) {
this.value = value;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("property", this.property);
jsonWriter.writeStringField("operation", this.operation);
jsonWriter.writeStringField("value", this.value);
return jsonWriter.writeEndObject();
}
/**
* Reads an instance of LiveEventInputTrackSelection from the JsonReader.
*
* @param jsonReader The JsonReader being read.
* @return An instance of LiveEventInputTrackSelection if the JsonReader was pointing to an instance of it, or null
* if it was pointing to JSON null.
* @throws IOException If an error occurs while reading the LiveEventInputTrackSelection.
*/
public static LiveEventInputTrackSelection fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
LiveEventInputTrackSelection deserializedLiveEventInputTrackSelection = new LiveEventInputTrackSelection();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("property".equals(fieldName)) {
deserializedLiveEventInputTrackSelection.property = reader.getString();
} else if ("operation".equals(fieldName)) {
deserializedLiveEventInputTrackSelection.operation = reader.getString();
} else if ("value".equals(fieldName)) {
deserializedLiveEventInputTrackSelection.value = reader.getString();
} else {
reader.skipChildren();
}
}
return deserializedLiveEventInputTrackSelection;
});
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy