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

com.pulumi.azurenative.media.outputs.GetContentKeyPolicyResult 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.media.outputs;

import com.pulumi.azurenative.media.outputs.ContentKeyPolicyOptionResponse;
import com.pulumi.azurenative.media.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetContentKeyPolicyResult {
    /**
     * @return The creation date of the Policy
     * 
     */
    private String created;
    /**
     * @return A description for the Policy.
     * 
     */
    private @Nullable String description;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The last modified date of the Policy
     * 
     */
    private String lastModified;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return The Key Policy options.
     * 
     */
    private List options;
    /**
     * @return The legacy Policy ID.
     * 
     */
    private String policyId;
    /**
     * @return The system metadata relating to this resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetContentKeyPolicyResult() {}
    /**
     * @return The creation date of the Policy
     * 
     */
    public String created() {
        return this.created;
    }
    /**
     * @return A description for the Policy.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The last modified date of the Policy
     * 
     */
    public String lastModified() {
        return this.lastModified;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The Key Policy options.
     * 
     */
    public List options() {
        return this.options;
    }
    /**
     * @return The legacy Policy ID.
     * 
     */
    public String policyId() {
        return this.policyId;
    }
    /**
     * @return The system metadata relating to this resource.
     * 
     */
    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(GetContentKeyPolicyResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String created;
        private @Nullable String description;
        private String id;
        private String lastModified;
        private String name;
        private List options;
        private String policyId;
        private SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(GetContentKeyPolicyResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.created = defaults.created;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.lastModified = defaults.lastModified;
    	      this.name = defaults.name;
    	      this.options = defaults.options;
    	      this.policyId = defaults.policyId;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder created(String created) {
            if (created == null) {
              throw new MissingRequiredPropertyException("GetContentKeyPolicyResult", "created");
            }
            this.created = created;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetContentKeyPolicyResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder lastModified(String lastModified) {
            if (lastModified == null) {
              throw new MissingRequiredPropertyException("GetContentKeyPolicyResult", "lastModified");
            }
            this.lastModified = lastModified;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetContentKeyPolicyResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder options(List options) {
            if (options == null) {
              throw new MissingRequiredPropertyException("GetContentKeyPolicyResult", "options");
            }
            this.options = options;
            return this;
        }
        public Builder options(ContentKeyPolicyOptionResponse... options) {
            return options(List.of(options));
        }
        @CustomType.Setter
        public Builder policyId(String policyId) {
            if (policyId == null) {
              throw new MissingRequiredPropertyException("GetContentKeyPolicyResult", "policyId");
            }
            this.policyId = policyId;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetContentKeyPolicyResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetContentKeyPolicyResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetContentKeyPolicyResult build() {
            final var _resultValue = new GetContentKeyPolicyResult();
            _resultValue.created = created;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.lastModified = lastModified;
            _resultValue.name = name;
            _resultValue.options = options;
            _resultValue.policyId = policyId;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy