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

com.pulumi.azurenative.synapse.outputs.GetReadOnlyFollowingDatabaseResult Maven / Gradle / Ivy

There is a newer version: 2.72.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.synapse.outputs;

import com.pulumi.azurenative.synapse.outputs.DatabaseStatisticsResponse;
import com.pulumi.azurenative.synapse.outputs.SystemDataResponse;
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 GetReadOnlyFollowingDatabaseResult {
    /**
     * @return The name of the attached database configuration cluster
     * 
     */
    private String attachedDatabaseConfigurationName;
    /**
     * @return The time the data should be kept in cache for fast queries in TimeSpan.
     * 
     */
    private @Nullable String hotCachePeriod;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return Kind of the database
     * Expected value is 'ReadOnlyFollowing'.
     * 
     */
    private String kind;
    /**
     * @return The name of the leader cluster
     * 
     */
    private String leaderClusterResourceId;
    /**
     * @return Resource location.
     * 
     */
    private @Nullable String location;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return The principals modification kind of the database
     * 
     */
    private String principalsModificationKind;
    /**
     * @return The provisioned state of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The time the data should be kept before it stops being accessible to queries in TimeSpan.
     * 
     */
    private String softDeletePeriod;
    /**
     * @return The statistics of the database.
     * 
     */
    private DatabaseStatisticsResponse statistics;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetReadOnlyFollowingDatabaseResult() {}
    /**
     * @return The name of the attached database configuration cluster
     * 
     */
    public String attachedDatabaseConfigurationName() {
        return this.attachedDatabaseConfigurationName;
    }
    /**
     * @return The time the data should be kept in cache for fast queries in TimeSpan.
     * 
     */
    public Optional hotCachePeriod() {
        return Optional.ofNullable(this.hotCachePeriod);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Kind of the database
     * Expected value is 'ReadOnlyFollowing'.
     * 
     */
    public String kind() {
        return this.kind;
    }
    /**
     * @return The name of the leader cluster
     * 
     */
    public String leaderClusterResourceId() {
        return this.leaderClusterResourceId;
    }
    /**
     * @return Resource location.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The principals modification kind of the database
     * 
     */
    public String principalsModificationKind() {
        return this.principalsModificationKind;
    }
    /**
     * @return The provisioned state of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The time the data should be kept before it stops being accessible to queries in TimeSpan.
     * 
     */
    public String softDeletePeriod() {
        return this.softDeletePeriod;
    }
    /**
     * @return The statistics of the database.
     * 
     */
    public DatabaseStatisticsResponse statistics() {
        return this.statistics;
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @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(GetReadOnlyFollowingDatabaseResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String attachedDatabaseConfigurationName;
        private @Nullable String hotCachePeriod;
        private String id;
        private String kind;
        private String leaderClusterResourceId;
        private @Nullable String location;
        private String name;
        private String principalsModificationKind;
        private String provisioningState;
        private String softDeletePeriod;
        private DatabaseStatisticsResponse statistics;
        private SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(GetReadOnlyFollowingDatabaseResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.attachedDatabaseConfigurationName = defaults.attachedDatabaseConfigurationName;
    	      this.hotCachePeriod = defaults.hotCachePeriod;
    	      this.id = defaults.id;
    	      this.kind = defaults.kind;
    	      this.leaderClusterResourceId = defaults.leaderClusterResourceId;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.principalsModificationKind = defaults.principalsModificationKind;
    	      this.provisioningState = defaults.provisioningState;
    	      this.softDeletePeriod = defaults.softDeletePeriod;
    	      this.statistics = defaults.statistics;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder attachedDatabaseConfigurationName(String attachedDatabaseConfigurationName) {
            if (attachedDatabaseConfigurationName == null) {
              throw new MissingRequiredPropertyException("GetReadOnlyFollowingDatabaseResult", "attachedDatabaseConfigurationName");
            }
            this.attachedDatabaseConfigurationName = attachedDatabaseConfigurationName;
            return this;
        }
        @CustomType.Setter
        public Builder hotCachePeriod(@Nullable String hotCachePeriod) {

            this.hotCachePeriod = hotCachePeriod;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetReadOnlyFollowingDatabaseResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            if (kind == null) {
              throw new MissingRequiredPropertyException("GetReadOnlyFollowingDatabaseResult", "kind");
            }
            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder leaderClusterResourceId(String leaderClusterResourceId) {
            if (leaderClusterResourceId == null) {
              throw new MissingRequiredPropertyException("GetReadOnlyFollowingDatabaseResult", "leaderClusterResourceId");
            }
            this.leaderClusterResourceId = leaderClusterResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetReadOnlyFollowingDatabaseResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder principalsModificationKind(String principalsModificationKind) {
            if (principalsModificationKind == null) {
              throw new MissingRequiredPropertyException("GetReadOnlyFollowingDatabaseResult", "principalsModificationKind");
            }
            this.principalsModificationKind = principalsModificationKind;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetReadOnlyFollowingDatabaseResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder softDeletePeriod(String softDeletePeriod) {
            if (softDeletePeriod == null) {
              throw new MissingRequiredPropertyException("GetReadOnlyFollowingDatabaseResult", "softDeletePeriod");
            }
            this.softDeletePeriod = softDeletePeriod;
            return this;
        }
        @CustomType.Setter
        public Builder statistics(DatabaseStatisticsResponse statistics) {
            if (statistics == null) {
              throw new MissingRequiredPropertyException("GetReadOnlyFollowingDatabaseResult", "statistics");
            }
            this.statistics = statistics;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetReadOnlyFollowingDatabaseResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetReadOnlyFollowingDatabaseResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetReadOnlyFollowingDatabaseResult build() {
            final var _resultValue = new GetReadOnlyFollowingDatabaseResult();
            _resultValue.attachedDatabaseConfigurationName = attachedDatabaseConfigurationName;
            _resultValue.hotCachePeriod = hotCachePeriod;
            _resultValue.id = id;
            _resultValue.kind = kind;
            _resultValue.leaderClusterResourceId = leaderClusterResourceId;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.principalsModificationKind = principalsModificationKind;
            _resultValue.provisioningState = provisioningState;
            _resultValue.softDeletePeriod = softDeletePeriod;
            _resultValue.statistics = statistics;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy