com.pulumi.azurenative.apimanagement.outputs.GetCacheResult 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.apimanagement.outputs;
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 GetCacheResult {
/**
* @return Runtime connection string to cache
*
*/
private String connectionString;
/**
* @return Cache 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 Original uri of entity in external system cache points to
*
*/
private @Nullable String resourceId;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
/**
* @return Location identifier to use cache from (should be either 'default' or valid Azure region identifier)
*
*/
private String useFromLocation;
private GetCacheResult() {}
/**
* @return Runtime connection string to cache
*
*/
public String connectionString() {
return this.connectionString;
}
/**
* @return Cache 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 Original uri of entity in external system cache points to
*
*/
public Optional resourceId() {
return Optional.ofNullable(this.resourceId);
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
/**
* @return Location identifier to use cache from (should be either 'default' or valid Azure region identifier)
*
*/
public String useFromLocation() {
return this.useFromLocation;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetCacheResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String connectionString;
private @Nullable String description;
private String id;
private String name;
private @Nullable String resourceId;
private String type;
private String useFromLocation;
public Builder() {}
public Builder(GetCacheResult defaults) {
Objects.requireNonNull(defaults);
this.connectionString = defaults.connectionString;
this.description = defaults.description;
this.id = defaults.id;
this.name = defaults.name;
this.resourceId = defaults.resourceId;
this.type = defaults.type;
this.useFromLocation = defaults.useFromLocation;
}
@CustomType.Setter
public Builder connectionString(String connectionString) {
if (connectionString == null) {
throw new MissingRequiredPropertyException("GetCacheResult", "connectionString");
}
this.connectionString = connectionString;
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("GetCacheResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetCacheResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder resourceId(@Nullable String resourceId) {
this.resourceId = resourceId;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetCacheResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder useFromLocation(String useFromLocation) {
if (useFromLocation == null) {
throw new MissingRequiredPropertyException("GetCacheResult", "useFromLocation");
}
this.useFromLocation = useFromLocation;
return this;
}
public GetCacheResult build() {
final var _resultValue = new GetCacheResult();
_resultValue.connectionString = connectionString;
_resultValue.description = description;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.resourceId = resourceId;
_resultValue.type = type;
_resultValue.useFromLocation = useFromLocation;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy