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

com.pulumi.alicloud.kms.outputs.GetKeysKey Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.kms.outputs;

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

@CustomType
public final class GetKeysKey {
    /**
     * @return The Alibaba Cloud Resource Name (ARN) of the key.
     * 
     */
    private String arn;
    /**
     * @return (Available in 1.123.1+) Specifies whether to enable automatic key rotation.
     * 
     */
    private String automaticRotation;
    /**
     * @return Creation date of key.
     * 
     */
    private String creationDate;
    /**
     * @return The owner of the key.
     * 
     */
    private String creator;
    /**
     * @return Deletion date of key.
     * 
     */
    private String deleteDate;
    /**
     * @return Description of the key.
     * 
     */
    private String description;
    /**
     * @return ID of the key.
     * 
     */
    private String id;
    /**
     * @return (Available in 1.123.1+)  ID of the key.
     * 
     */
    private String keyId;
    /**
     * @return (Available in 1.123.1+)  The type of the CMK.
     * 
     */
    private String keySpec;
    /**
     * @return (Available in 1.123.1+)  The usage of CMK.
     * 
     */
    private String keyUsage;
    /**
     * @return (Available in 1.123.1+)  The date and time the last rotation was performed.
     * 
     */
    private String lastRotationDate;
    /**
     * @return (Available in 1.123.1+)  The time and date the key material for the CMK expires.
     * 
     */
    private String materialExpireTime;
    /**
     * @return (Available in 1.123.1+)  The time the next rotation is scheduled for execution.
     * 
     */
    private String nextRotationDate;
    /**
     * @return (Available in 1.123.1+)  The source of the key material for the CMK.
     * 
     */
    private String origin;
    /**
     * @return (Available in 1.123.1+)  The ID of the current primary key version of the symmetric CMK.
     * 
     */
    private String primaryKeyVersion;
    /**
     * @return (Available in 1.123.1+)  The protection level of the CMK.
     * 
     */
    private String protectionLevel;
    /**
     * @return (Available in 1.123.1+)  The period of automatic key rotation.
     * 
     */
    private String rotationInterval;
    /**
     * @return Filter the results by status of the KMS keys. Valid values: `Enabled`, `Disabled`, `PendingDeletion`.
     * 
     */
    private String status;

    private GetKeysKey() {}
    /**
     * @return The Alibaba Cloud Resource Name (ARN) of the key.
     * 
     */
    public String arn() {
        return this.arn;
    }
    /**
     * @return (Available in 1.123.1+) Specifies whether to enable automatic key rotation.
     * 
     */
    public String automaticRotation() {
        return this.automaticRotation;
    }
    /**
     * @return Creation date of key.
     * 
     */
    public String creationDate() {
        return this.creationDate;
    }
    /**
     * @return The owner of the key.
     * 
     */
    public String creator() {
        return this.creator;
    }
    /**
     * @return Deletion date of key.
     * 
     */
    public String deleteDate() {
        return this.deleteDate;
    }
    /**
     * @return Description of the key.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return ID of the key.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return (Available in 1.123.1+)  ID of the key.
     * 
     */
    public String keyId() {
        return this.keyId;
    }
    /**
     * @return (Available in 1.123.1+)  The type of the CMK.
     * 
     */
    public String keySpec() {
        return this.keySpec;
    }
    /**
     * @return (Available in 1.123.1+)  The usage of CMK.
     * 
     */
    public String keyUsage() {
        return this.keyUsage;
    }
    /**
     * @return (Available in 1.123.1+)  The date and time the last rotation was performed.
     * 
     */
    public String lastRotationDate() {
        return this.lastRotationDate;
    }
    /**
     * @return (Available in 1.123.1+)  The time and date the key material for the CMK expires.
     * 
     */
    public String materialExpireTime() {
        return this.materialExpireTime;
    }
    /**
     * @return (Available in 1.123.1+)  The time the next rotation is scheduled for execution.
     * 
     */
    public String nextRotationDate() {
        return this.nextRotationDate;
    }
    /**
     * @return (Available in 1.123.1+)  The source of the key material for the CMK.
     * 
     */
    public String origin() {
        return this.origin;
    }
    /**
     * @return (Available in 1.123.1+)  The ID of the current primary key version of the symmetric CMK.
     * 
     */
    public String primaryKeyVersion() {
        return this.primaryKeyVersion;
    }
    /**
     * @return (Available in 1.123.1+)  The protection level of the CMK.
     * 
     */
    public String protectionLevel() {
        return this.protectionLevel;
    }
    /**
     * @return (Available in 1.123.1+)  The period of automatic key rotation.
     * 
     */
    public String rotationInterval() {
        return this.rotationInterval;
    }
    /**
     * @return Filter the results by status of the KMS keys. Valid values: `Enabled`, `Disabled`, `PendingDeletion`.
     * 
     */
    public String status() {
        return this.status;
    }

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

    public static Builder builder(GetKeysKey defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String arn;
        private String automaticRotation;
        private String creationDate;
        private String creator;
        private String deleteDate;
        private String description;
        private String id;
        private String keyId;
        private String keySpec;
        private String keyUsage;
        private String lastRotationDate;
        private String materialExpireTime;
        private String nextRotationDate;
        private String origin;
        private String primaryKeyVersion;
        private String protectionLevel;
        private String rotationInterval;
        private String status;
        public Builder() {}
        public Builder(GetKeysKey defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arn = defaults.arn;
    	      this.automaticRotation = defaults.automaticRotation;
    	      this.creationDate = defaults.creationDate;
    	      this.creator = defaults.creator;
    	      this.deleteDate = defaults.deleteDate;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.keyId = defaults.keyId;
    	      this.keySpec = defaults.keySpec;
    	      this.keyUsage = defaults.keyUsage;
    	      this.lastRotationDate = defaults.lastRotationDate;
    	      this.materialExpireTime = defaults.materialExpireTime;
    	      this.nextRotationDate = defaults.nextRotationDate;
    	      this.origin = defaults.origin;
    	      this.primaryKeyVersion = defaults.primaryKeyVersion;
    	      this.protectionLevel = defaults.protectionLevel;
    	      this.rotationInterval = defaults.rotationInterval;
    	      this.status = defaults.status;
        }

        @CustomType.Setter
        public Builder arn(String arn) {
            if (arn == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "arn");
            }
            this.arn = arn;
            return this;
        }
        @CustomType.Setter
        public Builder automaticRotation(String automaticRotation) {
            if (automaticRotation == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "automaticRotation");
            }
            this.automaticRotation = automaticRotation;
            return this;
        }
        @CustomType.Setter
        public Builder creationDate(String creationDate) {
            if (creationDate == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "creationDate");
            }
            this.creationDate = creationDate;
            return this;
        }
        @CustomType.Setter
        public Builder creator(String creator) {
            if (creator == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "creator");
            }
            this.creator = creator;
            return this;
        }
        @CustomType.Setter
        public Builder deleteDate(String deleteDate) {
            if (deleteDate == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "deleteDate");
            }
            this.deleteDate = deleteDate;
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder keyId(String keyId) {
            if (keyId == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "keyId");
            }
            this.keyId = keyId;
            return this;
        }
        @CustomType.Setter
        public Builder keySpec(String keySpec) {
            if (keySpec == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "keySpec");
            }
            this.keySpec = keySpec;
            return this;
        }
        @CustomType.Setter
        public Builder keyUsage(String keyUsage) {
            if (keyUsage == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "keyUsage");
            }
            this.keyUsage = keyUsage;
            return this;
        }
        @CustomType.Setter
        public Builder lastRotationDate(String lastRotationDate) {
            if (lastRotationDate == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "lastRotationDate");
            }
            this.lastRotationDate = lastRotationDate;
            return this;
        }
        @CustomType.Setter
        public Builder materialExpireTime(String materialExpireTime) {
            if (materialExpireTime == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "materialExpireTime");
            }
            this.materialExpireTime = materialExpireTime;
            return this;
        }
        @CustomType.Setter
        public Builder nextRotationDate(String nextRotationDate) {
            if (nextRotationDate == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "nextRotationDate");
            }
            this.nextRotationDate = nextRotationDate;
            return this;
        }
        @CustomType.Setter
        public Builder origin(String origin) {
            if (origin == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "origin");
            }
            this.origin = origin;
            return this;
        }
        @CustomType.Setter
        public Builder primaryKeyVersion(String primaryKeyVersion) {
            if (primaryKeyVersion == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "primaryKeyVersion");
            }
            this.primaryKeyVersion = primaryKeyVersion;
            return this;
        }
        @CustomType.Setter
        public Builder protectionLevel(String protectionLevel) {
            if (protectionLevel == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "protectionLevel");
            }
            this.protectionLevel = protectionLevel;
            return this;
        }
        @CustomType.Setter
        public Builder rotationInterval(String rotationInterval) {
            if (rotationInterval == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "rotationInterval");
            }
            this.rotationInterval = rotationInterval;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetKeysKey", "status");
            }
            this.status = status;
            return this;
        }
        public GetKeysKey build() {
            final var _resultValue = new GetKeysKey();
            _resultValue.arn = arn;
            _resultValue.automaticRotation = automaticRotation;
            _resultValue.creationDate = creationDate;
            _resultValue.creator = creator;
            _resultValue.deleteDate = deleteDate;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.keyId = keyId;
            _resultValue.keySpec = keySpec;
            _resultValue.keyUsage = keyUsage;
            _resultValue.lastRotationDate = lastRotationDate;
            _resultValue.materialExpireTime = materialExpireTime;
            _resultValue.nextRotationDate = nextRotationDate;
            _resultValue.origin = origin;
            _resultValue.primaryKeyVersion = primaryKeyVersion;
            _resultValue.protectionLevel = protectionLevel;
            _resultValue.rotationInterval = rotationInterval;
            _resultValue.status = status;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy