
com.pulumi.azurenative.apimanagement.outputs.GetBackendResult Maven / Gradle / Ivy
// *** 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.apimanagement.outputs;
import com.pulumi.azurenative.apimanagement.outputs.BackendCredentialsContractResponse;
import com.pulumi.azurenative.apimanagement.outputs.BackendPropertiesResponse;
import com.pulumi.azurenative.apimanagement.outputs.BackendProxyContractResponse;
import com.pulumi.azurenative.apimanagement.outputs.BackendTlsPropertiesResponse;
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 GetBackendResult {
/**
* @return Backend Credentials Contract Properties
*
*/
private @Nullable BackendCredentialsContractResponse credentials;
/**
* @return Backend Description.
*
*/
private @Nullable String description;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return Backend Properties contract
*
*/
private BackendPropertiesResponse properties;
/**
* @return Backend communication protocol.
*
*/
private String protocol;
/**
* @return Backend gateway Contract Properties
*
*/
private @Nullable BackendProxyContractResponse proxy;
/**
* @return Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
*
*/
private @Nullable String resourceId;
/**
* @return Backend Title.
*
*/
private @Nullable String title;
/**
* @return Backend TLS Properties
*
*/
private @Nullable BackendTlsPropertiesResponse tls;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
/**
* @return Runtime Url of the Backend.
*
*/
private String url;
private GetBackendResult() {}
/**
* @return Backend Credentials Contract Properties
*
*/
public Optional credentials() {
return Optional.ofNullable(this.credentials);
}
/**
* @return Backend Description.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
public String id() {
return this.id;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return Backend Properties contract
*
*/
public BackendPropertiesResponse properties() {
return this.properties;
}
/**
* @return Backend communication protocol.
*
*/
public String protocol() {
return this.protocol;
}
/**
* @return Backend gateway Contract Properties
*
*/
public Optional proxy() {
return Optional.ofNullable(this.proxy);
}
/**
* @return Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
*
*/
public Optional resourceId() {
return Optional.ofNullable(this.resourceId);
}
/**
* @return Backend Title.
*
*/
public Optional title() {
return Optional.ofNullable(this.title);
}
/**
* @return Backend TLS Properties
*
*/
public Optional tls() {
return Optional.ofNullable(this.tls);
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
/**
* @return Runtime Url of the Backend.
*
*/
public String url() {
return this.url;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetBackendResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable BackendCredentialsContractResponse credentials;
private @Nullable String description;
private String id;
private String name;
private BackendPropertiesResponse properties;
private String protocol;
private @Nullable BackendProxyContractResponse proxy;
private @Nullable String resourceId;
private @Nullable String title;
private @Nullable BackendTlsPropertiesResponse tls;
private String type;
private String url;
public Builder() {}
public Builder(GetBackendResult defaults) {
Objects.requireNonNull(defaults);
this.credentials = defaults.credentials;
this.description = defaults.description;
this.id = defaults.id;
this.name = defaults.name;
this.properties = defaults.properties;
this.protocol = defaults.protocol;
this.proxy = defaults.proxy;
this.resourceId = defaults.resourceId;
this.title = defaults.title;
this.tls = defaults.tls;
this.type = defaults.type;
this.url = defaults.url;
}
@CustomType.Setter
public Builder credentials(@Nullable BackendCredentialsContractResponse credentials) {
this.credentials = credentials;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetBackendResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetBackendResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder properties(BackendPropertiesResponse properties) {
if (properties == null) {
throw new MissingRequiredPropertyException("GetBackendResult", "properties");
}
this.properties = properties;
return this;
}
@CustomType.Setter
public Builder protocol(String protocol) {
if (protocol == null) {
throw new MissingRequiredPropertyException("GetBackendResult", "protocol");
}
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder proxy(@Nullable BackendProxyContractResponse proxy) {
this.proxy = proxy;
return this;
}
@CustomType.Setter
public Builder resourceId(@Nullable String resourceId) {
this.resourceId = resourceId;
return this;
}
@CustomType.Setter
public Builder title(@Nullable String title) {
this.title = title;
return this;
}
@CustomType.Setter
public Builder tls(@Nullable BackendTlsPropertiesResponse tls) {
this.tls = tls;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetBackendResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder url(String url) {
if (url == null) {
throw new MissingRequiredPropertyException("GetBackendResult", "url");
}
this.url = url;
return this;
}
public GetBackendResult build() {
final var _resultValue = new GetBackendResult();
_resultValue.credentials = credentials;
_resultValue.description = description;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.properties = properties;
_resultValue.protocol = protocol;
_resultValue.proxy = proxy;
_resultValue.resourceId = resourceId;
_resultValue.title = title;
_resultValue.tls = tls;
_resultValue.type = type;
_resultValue.url = url;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy