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

com.pulumi.aws.verifiedpermissions.outputs.PolicyDefinitionTemplateLinked Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.verifiedpermissions.outputs;

import com.pulumi.aws.verifiedpermissions.outputs.PolicyDefinitionTemplateLinkedPrincipal;
import com.pulumi.aws.verifiedpermissions.outputs.PolicyDefinitionTemplateLinkedResource;
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 PolicyDefinitionTemplateLinked {
    /**
     * @return The ID of the template.
     * 
     */
    private String policyTemplateId;
    /**
     * @return The principal of the template linked policy.
     * 
     */
    private @Nullable PolicyDefinitionTemplateLinkedPrincipal principal;
    /**
     * @return The resource of the template linked policy.
     * 
     */
    private @Nullable PolicyDefinitionTemplateLinkedResource resource;

    private PolicyDefinitionTemplateLinked() {}
    /**
     * @return The ID of the template.
     * 
     */
    public String policyTemplateId() {
        return this.policyTemplateId;
    }
    /**
     * @return The principal of the template linked policy.
     * 
     */
    public Optional principal() {
        return Optional.ofNullable(this.principal);
    }
    /**
     * @return The resource of the template linked policy.
     * 
     */
    public Optional resource() {
        return Optional.ofNullable(this.resource);
    }

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

    public static Builder builder(PolicyDefinitionTemplateLinked defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String policyTemplateId;
        private @Nullable PolicyDefinitionTemplateLinkedPrincipal principal;
        private @Nullable PolicyDefinitionTemplateLinkedResource resource;
        public Builder() {}
        public Builder(PolicyDefinitionTemplateLinked defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.policyTemplateId = defaults.policyTemplateId;
    	      this.principal = defaults.principal;
    	      this.resource = defaults.resource;
        }

        @CustomType.Setter
        public Builder policyTemplateId(String policyTemplateId) {
            if (policyTemplateId == null) {
              throw new MissingRequiredPropertyException("PolicyDefinitionTemplateLinked", "policyTemplateId");
            }
            this.policyTemplateId = policyTemplateId;
            return this;
        }
        @CustomType.Setter
        public Builder principal(@Nullable PolicyDefinitionTemplateLinkedPrincipal principal) {

            this.principal = principal;
            return this;
        }
        @CustomType.Setter
        public Builder resource(@Nullable PolicyDefinitionTemplateLinkedResource resource) {

            this.resource = resource;
            return this;
        }
        public PolicyDefinitionTemplateLinked build() {
            final var _resultValue = new PolicyDefinitionTemplateLinked();
            _resultValue.policyTemplateId = policyTemplateId;
            _resultValue.principal = principal;
            _resultValue.resource = resource;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy