com.pulumi.azurenative.documentdb.outputs.MaterializedViewsBuilderServiceResourcePropertiesResponse 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.documentdb.outputs;
import com.pulumi.azurenative.documentdb.outputs.MaterializedViewsBuilderRegionalServiceResourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MaterializedViewsBuilderServiceResourcePropertiesResponse {
/**
* @return Time of the last state change (ISO-8601 format).
*
*/
private String creationTime;
/**
* @return Instance count for the service.
*
*/
private @Nullable Integer instanceCount;
/**
* @return Instance type for the service.
*
*/
private @Nullable String instanceSize;
/**
* @return An array that contains all of the locations for the service.
*
*/
private List locations;
/**
* @return ServiceType for the service.
* Expected value is 'MaterializedViewsBuilder'.
*
*/
private String serviceType;
/**
* @return Describes the status of a service.
*
*/
private String status;
private MaterializedViewsBuilderServiceResourcePropertiesResponse() {}
/**
* @return Time of the last state change (ISO-8601 format).
*
*/
public String creationTime() {
return this.creationTime;
}
/**
* @return Instance count for the service.
*
*/
public Optional instanceCount() {
return Optional.ofNullable(this.instanceCount);
}
/**
* @return Instance type for the service.
*
*/
public Optional instanceSize() {
return Optional.ofNullable(this.instanceSize);
}
/**
* @return An array that contains all of the locations for the service.
*
*/
public List locations() {
return this.locations;
}
/**
* @return ServiceType for the service.
* Expected value is 'MaterializedViewsBuilder'.
*
*/
public String serviceType() {
return this.serviceType;
}
/**
* @return Describes the status of a service.
*
*/
public String status() {
return this.status;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MaterializedViewsBuilderServiceResourcePropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String creationTime;
private @Nullable Integer instanceCount;
private @Nullable String instanceSize;
private List locations;
private String serviceType;
private String status;
public Builder() {}
public Builder(MaterializedViewsBuilderServiceResourcePropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.creationTime = defaults.creationTime;
this.instanceCount = defaults.instanceCount;
this.instanceSize = defaults.instanceSize;
this.locations = defaults.locations;
this.serviceType = defaults.serviceType;
this.status = defaults.status;
}
@CustomType.Setter
public Builder creationTime(String creationTime) {
if (creationTime == null) {
throw new MissingRequiredPropertyException("MaterializedViewsBuilderServiceResourcePropertiesResponse", "creationTime");
}
this.creationTime = creationTime;
return this;
}
@CustomType.Setter
public Builder instanceCount(@Nullable Integer instanceCount) {
this.instanceCount = instanceCount;
return this;
}
@CustomType.Setter
public Builder instanceSize(@Nullable String instanceSize) {
this.instanceSize = instanceSize;
return this;
}
@CustomType.Setter
public Builder locations(List locations) {
if (locations == null) {
throw new MissingRequiredPropertyException("MaterializedViewsBuilderServiceResourcePropertiesResponse", "locations");
}
this.locations = locations;
return this;
}
public Builder locations(MaterializedViewsBuilderRegionalServiceResourceResponse... locations) {
return locations(List.of(locations));
}
@CustomType.Setter
public Builder serviceType(String serviceType) {
if (serviceType == null) {
throw new MissingRequiredPropertyException("MaterializedViewsBuilderServiceResourcePropertiesResponse", "serviceType");
}
this.serviceType = serviceType;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("MaterializedViewsBuilderServiceResourcePropertiesResponse", "status");
}
this.status = status;
return this;
}
public MaterializedViewsBuilderServiceResourcePropertiesResponse build() {
final var _resultValue = new MaterializedViewsBuilderServiceResourcePropertiesResponse();
_resultValue.creationTime = creationTime;
_resultValue.instanceCount = instanceCount;
_resultValue.instanceSize = instanceSize;
_resultValue.locations = locations;
_resultValue.serviceType = serviceType;
_resultValue.status = status;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy