com.pulumi.azurenative.media.outputs.MediaGraphClearEndpointResponse 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.outputs;
import com.pulumi.azurenative.media.outputs.MediaGraphUsernamePasswordCredentialsResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MediaGraphClearEndpointResponse {
/**
* @return Polymorphic credentials to present to the endpoint.
*
*/
private @Nullable MediaGraphUsernamePasswordCredentialsResponse credentials;
/**
* @return The discriminator for derived types.
* Expected value is '#Microsoft.Media.MediaGraphClearEndpoint'.
*
*/
private String odataType;
/**
* @return Url for the endpoint.
*
*/
private String url;
private MediaGraphClearEndpointResponse() {}
/**
* @return Polymorphic credentials to present to the endpoint.
*
*/
public Optional credentials() {
return Optional.ofNullable(this.credentials);
}
/**
* @return The discriminator for derived types.
* Expected value is '#Microsoft.Media.MediaGraphClearEndpoint'.
*
*/
public String odataType() {
return this.odataType;
}
/**
* @return Url for the endpoint.
*
*/
public String url() {
return this.url;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MediaGraphClearEndpointResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable MediaGraphUsernamePasswordCredentialsResponse credentials;
private String odataType;
private String url;
public Builder() {}
public Builder(MediaGraphClearEndpointResponse defaults) {
Objects.requireNonNull(defaults);
this.credentials = defaults.credentials;
this.odataType = defaults.odataType;
this.url = defaults.url;
}
@CustomType.Setter
public Builder credentials(@Nullable MediaGraphUsernamePasswordCredentialsResponse credentials) {
this.credentials = credentials;
return this;
}
@CustomType.Setter
public Builder odataType(String odataType) {
if (odataType == null) {
throw new MissingRequiredPropertyException("MediaGraphClearEndpointResponse", "odataType");
}
this.odataType = odataType;
return this;
}
@CustomType.Setter
public Builder url(String url) {
if (url == null) {
throw new MissingRequiredPropertyException("MediaGraphClearEndpointResponse", "url");
}
this.url = url;
return this;
}
public MediaGraphClearEndpointResponse build() {
final var _resultValue = new MediaGraphClearEndpointResponse();
_resultValue.credentials = credentials;
_resultValue.odataType = odataType;
_resultValue.url = url;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy