
com.pulumi.azurenative.containerregistry.outputs.GetReplicationResult 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.containerregistry.outputs;
import com.pulumi.azurenative.containerregistry.outputs.StatusResponse;
import com.pulumi.azurenative.containerregistry.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetReplicationResult {
/**
* @return The resource ID.
*
*/
private String id;
/**
* @return The location of the resource. This cannot be changed after the resource is created.
*
*/
private String location;
/**
* @return The name of the resource.
*
*/
private String name;
/**
* @return The provisioning state of the replication at the time the operation was called.
*
*/
private String provisioningState;
/**
* @return Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.
*
*/
private @Nullable Boolean regionEndpointEnabled;
/**
* @return The status of the replication at the time the operation was called.
*
*/
private StatusResponse status;
/**
* @return Metadata pertaining to creation and last modification of the resource.
*
*/
private SystemDataResponse systemData;
/**
* @return The tags of the resource.
*
*/
private @Nullable Map tags;
/**
* @return The type of the resource.
*
*/
private String type;
/**
* @return Whether or not zone redundancy is enabled for this container registry replication
*
*/
private @Nullable String zoneRedundancy;
private GetReplicationResult() {}
/**
* @return The resource ID.
*
*/
public String id() {
return this.id;
}
/**
* @return The location of the resource. This cannot be changed after the resource is created.
*
*/
public String location() {
return this.location;
}
/**
* @return The name of the resource.
*
*/
public String name() {
return this.name;
}
/**
* @return The provisioning state of the replication at the time the operation was called.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.
*
*/
public Optional regionEndpointEnabled() {
return Optional.ofNullable(this.regionEndpointEnabled);
}
/**
* @return The status of the replication at the time the operation was called.
*
*/
public StatusResponse status() {
return this.status;
}
/**
* @return Metadata pertaining to creation and last modification of the resource.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return The tags of the resource.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return The type of the resource.
*
*/
public String type() {
return this.type;
}
/**
* @return Whether or not zone redundancy is enabled for this container registry replication
*
*/
public Optional zoneRedundancy() {
return Optional.ofNullable(this.zoneRedundancy);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetReplicationResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private String location;
private String name;
private String provisioningState;
private @Nullable Boolean regionEndpointEnabled;
private StatusResponse status;
private SystemDataResponse systemData;
private @Nullable Map tags;
private String type;
private @Nullable String zoneRedundancy;
public Builder() {}
public Builder(GetReplicationResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.location = defaults.location;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.regionEndpointEnabled = defaults.regionEndpointEnabled;
this.status = defaults.status;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.type = defaults.type;
this.zoneRedundancy = defaults.zoneRedundancy;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetReplicationResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetReplicationResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetReplicationResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetReplicationResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder regionEndpointEnabled(@Nullable Boolean regionEndpointEnabled) {
this.regionEndpointEnabled = regionEndpointEnabled;
return this;
}
@CustomType.Setter
public Builder status(StatusResponse status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetReplicationResult", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetReplicationResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetReplicationResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder zoneRedundancy(@Nullable String zoneRedundancy) {
this.zoneRedundancy = zoneRedundancy;
return this;
}
public GetReplicationResult build() {
final var _resultValue = new GetReplicationResult();
_resultValue.id = id;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.regionEndpointEnabled = regionEndpointEnabled;
_resultValue.status = status;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.zoneRedundancy = zoneRedundancy;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy