com.pulumi.azurenative.media.inputs.MediaGraphRtspSourceArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.media.inputs;
import com.pulumi.azurenative.media.enums.MediaGraphRtspTransport;
import com.pulumi.azurenative.media.inputs.MediaGraphClearEndpointArgs;
import com.pulumi.azurenative.media.inputs.MediaGraphTlsEndpointArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* RTSP source.
*
*/
public final class MediaGraphRtspSourceArgs extends com.pulumi.resources.ResourceArgs {
public static final MediaGraphRtspSourceArgs Empty = new MediaGraphRtspSourceArgs();
/**
* RTSP endpoint of the stream being connected to.
*
*/
@Import(name="endpoint", required=true)
private Output> endpoint;
/**
* @return RTSP endpoint of the stream being connected to.
*
*/
public Output> endpoint() {
return this.endpoint;
}
/**
* Source name.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return Source name.
*
*/
public Output name() {
return this.name;
}
/**
* The discriminator for derived types.
* Expected value is '#Microsoft.Media.MediaGraphRtspSource'.
*
*/
@Import(name="odataType", required=true)
private Output odataType;
/**
* @return The discriminator for derived types.
* Expected value is '#Microsoft.Media.MediaGraphRtspSource'.
*
*/
public Output odataType() {
return this.odataType;
}
/**
* Underlying RTSP transport. This can be used to enable or disable HTTP tunneling.
*
*/
@Import(name="transport", required=true)
private Output> transport;
/**
* @return Underlying RTSP transport. This can be used to enable or disable HTTP tunneling.
*
*/
public Output> transport() {
return this.transport;
}
private MediaGraphRtspSourceArgs() {}
private MediaGraphRtspSourceArgs(MediaGraphRtspSourceArgs $) {
this.endpoint = $.endpoint;
this.name = $.name;
this.odataType = $.odataType;
this.transport = $.transport;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MediaGraphRtspSourceArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private MediaGraphRtspSourceArgs $;
public Builder() {
$ = new MediaGraphRtspSourceArgs();
}
public Builder(MediaGraphRtspSourceArgs defaults) {
$ = new MediaGraphRtspSourceArgs(Objects.requireNonNull(defaults));
}
/**
* @param endpoint RTSP endpoint of the stream being connected to.
*
* @return builder
*
*/
public Builder endpoint(Output> endpoint) {
$.endpoint = endpoint;
return this;
}
/**
* @param endpoint RTSP endpoint of the stream being connected to.
*
* @return builder
*
*/
public Builder endpoint(Either endpoint) {
return endpoint(Output.of(endpoint));
}
/**
* @param endpoint RTSP endpoint of the stream being connected to.
*
* @return builder
*
*/
public Builder endpoint(MediaGraphClearEndpointArgs endpoint) {
return endpoint(Either.ofLeft(endpoint));
}
/**
* @param endpoint RTSP endpoint of the stream being connected to.
*
* @return builder
*
*/
public Builder endpoint(MediaGraphTlsEndpointArgs endpoint) {
return endpoint(Either.ofRight(endpoint));
}
/**
* @param name Source name.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name Source name.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param odataType The discriminator for derived types.
* Expected value is '#Microsoft.Media.MediaGraphRtspSource'.
*
* @return builder
*
*/
public Builder odataType(Output odataType) {
$.odataType = odataType;
return this;
}
/**
* @param odataType The discriminator for derived types.
* Expected value is '#Microsoft.Media.MediaGraphRtspSource'.
*
* @return builder
*
*/
public Builder odataType(String odataType) {
return odataType(Output.of(odataType));
}
/**
* @param transport Underlying RTSP transport. This can be used to enable or disable HTTP tunneling.
*
* @return builder
*
*/
public Builder transport(Output> transport) {
$.transport = transport;
return this;
}
/**
* @param transport Underlying RTSP transport. This can be used to enable or disable HTTP tunneling.
*
* @return builder
*
*/
public Builder transport(Either transport) {
return transport(Output.of(transport));
}
/**
* @param transport Underlying RTSP transport. This can be used to enable or disable HTTP tunneling.
*
* @return builder
*
*/
public Builder transport(String transport) {
return transport(Either.ofLeft(transport));
}
/**
* @param transport Underlying RTSP transport. This can be used to enable or disable HTTP tunneling.
*
* @return builder
*
*/
public Builder transport(MediaGraphRtspTransport transport) {
return transport(Either.ofRight(transport));
}
public MediaGraphRtspSourceArgs build() {
if ($.endpoint == null) {
throw new MissingRequiredPropertyException("MediaGraphRtspSourceArgs", "endpoint");
}
if ($.name == null) {
throw new MissingRequiredPropertyException("MediaGraphRtspSourceArgs", "name");
}
$.odataType = Codegen.stringProp("odataType").output().arg($.odataType).require();
if ($.transport == null) {
throw new MissingRequiredPropertyException("MediaGraphRtspSourceArgs", "transport");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy