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

com.pulumi.azurenative.sql.outputs.GetServerKeyResult 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.sql.outputs;

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

@CustomType
public final class GetServerKeyResult {
    /**
     * @return Key auto rotation opt-in flag. Either true or false.
     * 
     */
    private Boolean autoRotationEnabled;
    /**
     * @return The server key creation date.
     * 
     */
    private String creationDate;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Kind of encryption protector. This is metadata used for the Azure portal experience.
     * 
     */
    private String kind;
    /**
     * @return Resource location.
     * 
     */
    private String location;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return Subregion of the server key.
     * 
     */
    private String subregion;
    /**
     * @return Thumbprint of the server key.
     * 
     */
    private String thumbprint;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetServerKeyResult() {}
    /**
     * @return Key auto rotation opt-in flag. Either true or false.
     * 
     */
    public Boolean autoRotationEnabled() {
        return this.autoRotationEnabled;
    }
    /**
     * @return The server key creation date.
     * 
     */
    public String creationDate() {
        return this.creationDate;
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Kind of encryption protector. This is metadata used for the Azure portal experience.
     * 
     */
    public String kind() {
        return this.kind;
    }
    /**
     * @return Resource location.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Subregion of the server key.
     * 
     */
    public String subregion() {
        return this.subregion;
    }
    /**
     * @return Thumbprint of the server key.
     * 
     */
    public String thumbprint() {
        return this.thumbprint;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetServerKeyResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean autoRotationEnabled;
        private String creationDate;
        private String id;
        private String kind;
        private String location;
        private String name;
        private String subregion;
        private String thumbprint;
        private String type;
        public Builder() {}
        public Builder(GetServerKeyResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.autoRotationEnabled = defaults.autoRotationEnabled;
    	      this.creationDate = defaults.creationDate;
    	      this.id = defaults.id;
    	      this.kind = defaults.kind;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.subregion = defaults.subregion;
    	      this.thumbprint = defaults.thumbprint;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder autoRotationEnabled(Boolean autoRotationEnabled) {
            if (autoRotationEnabled == null) {
              throw new MissingRequiredPropertyException("GetServerKeyResult", "autoRotationEnabled");
            }
            this.autoRotationEnabled = autoRotationEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder creationDate(String creationDate) {
            if (creationDate == null) {
              throw new MissingRequiredPropertyException("GetServerKeyResult", "creationDate");
            }
            this.creationDate = creationDate;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetServerKeyResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            if (kind == null) {
              throw new MissingRequiredPropertyException("GetServerKeyResult", "kind");
            }
            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetServerKeyResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetServerKeyResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder subregion(String subregion) {
            if (subregion == null) {
              throw new MissingRequiredPropertyException("GetServerKeyResult", "subregion");
            }
            this.subregion = subregion;
            return this;
        }
        @CustomType.Setter
        public Builder thumbprint(String thumbprint) {
            if (thumbprint == null) {
              throw new MissingRequiredPropertyException("GetServerKeyResult", "thumbprint");
            }
            this.thumbprint = thumbprint;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetServerKeyResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetServerKeyResult build() {
            final var _resultValue = new GetServerKeyResult();
            _resultValue.autoRotationEnabled = autoRotationEnabled;
            _resultValue.creationDate = creationDate;
            _resultValue.id = id;
            _resultValue.kind = kind;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.subregion = subregion;
            _resultValue.thumbprint = thumbprint;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy