All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.cache.outputs.GetLinkedServerResult Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.cache.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetLinkedServerResult {
    /**
     * @return The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
     * 
     */
    private String geoReplicatedPrimaryHostName;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return Fully qualified resourceId of the linked redis cache.
     * 
     */
    private String linkedRedisCacheId;
    /**
     * @return Location of the linked redis cache.
     * 
     */
    private String linkedRedisCacheLocation;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
     * 
     */
    private String primaryHostName;
    /**
     * @return Terminal state of the link between primary and secondary redis cache.
     * 
     */
    private String provisioningState;
    /**
     * @return Role of the linked server.
     * 
     */
    private String serverRole;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetLinkedServerResult() {}
    /**
     * @return The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
     * 
     */
    public String geoReplicatedPrimaryHostName() {
        return this.geoReplicatedPrimaryHostName;
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Fully qualified resourceId of the linked redis cache.
     * 
     */
    public String linkedRedisCacheId() {
        return this.linkedRedisCacheId;
    }
    /**
     * @return Location of the linked redis cache.
     * 
     */
    public String linkedRedisCacheLocation() {
        return this.linkedRedisCacheLocation;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
     * 
     */
    public String primaryHostName() {
        return this.primaryHostName;
    }
    /**
     * @return Terminal state of the link between primary and secondary redis cache.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Role of the linked server.
     * 
     */
    public String serverRole() {
        return this.serverRole;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetLinkedServerResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String geoReplicatedPrimaryHostName;
        private String id;
        private String linkedRedisCacheId;
        private String linkedRedisCacheLocation;
        private String name;
        private String primaryHostName;
        private String provisioningState;
        private String serverRole;
        private String type;
        public Builder() {}
        public Builder(GetLinkedServerResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.geoReplicatedPrimaryHostName = defaults.geoReplicatedPrimaryHostName;
    	      this.id = defaults.id;
    	      this.linkedRedisCacheId = defaults.linkedRedisCacheId;
    	      this.linkedRedisCacheLocation = defaults.linkedRedisCacheLocation;
    	      this.name = defaults.name;
    	      this.primaryHostName = defaults.primaryHostName;
    	      this.provisioningState = defaults.provisioningState;
    	      this.serverRole = defaults.serverRole;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder geoReplicatedPrimaryHostName(String geoReplicatedPrimaryHostName) {
            if (geoReplicatedPrimaryHostName == null) {
              throw new MissingRequiredPropertyException("GetLinkedServerResult", "geoReplicatedPrimaryHostName");
            }
            this.geoReplicatedPrimaryHostName = geoReplicatedPrimaryHostName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetLinkedServerResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder linkedRedisCacheId(String linkedRedisCacheId) {
            if (linkedRedisCacheId == null) {
              throw new MissingRequiredPropertyException("GetLinkedServerResult", "linkedRedisCacheId");
            }
            this.linkedRedisCacheId = linkedRedisCacheId;
            return this;
        }
        @CustomType.Setter
        public Builder linkedRedisCacheLocation(String linkedRedisCacheLocation) {
            if (linkedRedisCacheLocation == null) {
              throw new MissingRequiredPropertyException("GetLinkedServerResult", "linkedRedisCacheLocation");
            }
            this.linkedRedisCacheLocation = linkedRedisCacheLocation;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetLinkedServerResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder primaryHostName(String primaryHostName) {
            if (primaryHostName == null) {
              throw new MissingRequiredPropertyException("GetLinkedServerResult", "primaryHostName");
            }
            this.primaryHostName = primaryHostName;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetLinkedServerResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder serverRole(String serverRole) {
            if (serverRole == null) {
              throw new MissingRequiredPropertyException("GetLinkedServerResult", "serverRole");
            }
            this.serverRole = serverRole;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetLinkedServerResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetLinkedServerResult build() {
            final var _resultValue = new GetLinkedServerResult();
            _resultValue.geoReplicatedPrimaryHostName = geoReplicatedPrimaryHostName;
            _resultValue.id = id;
            _resultValue.linkedRedisCacheId = linkedRedisCacheId;
            _resultValue.linkedRedisCacheLocation = linkedRedisCacheLocation;
            _resultValue.name = name;
            _resultValue.primaryHostName = primaryHostName;
            _resultValue.provisioningState = provisioningState;
            _resultValue.serverRole = serverRole;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy