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

com.pulumi.azurenative.authorization.outputs.PolicyAssignmentPropertiesResponsePolicy Maven / Gradle / Ivy

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

import com.pulumi.azurenative.authorization.outputs.PrincipalResponse;
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 PolicyAssignmentPropertiesResponsePolicy {
    /**
     * @return Id of the policy
     * 
     */
    private @Nullable String id;
    /**
     * @return The name of the entity last modified it
     * 
     */
    private PrincipalResponse lastModifiedBy;
    /**
     * @return The last modified date time.
     * 
     */
    private @Nullable String lastModifiedDateTime;

    private PolicyAssignmentPropertiesResponsePolicy() {}
    /**
     * @return Id of the policy
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return The name of the entity last modified it
     * 
     */
    public PrincipalResponse lastModifiedBy() {
        return this.lastModifiedBy;
    }
    /**
     * @return The last modified date time.
     * 
     */
    public Optional lastModifiedDateTime() {
        return Optional.ofNullable(this.lastModifiedDateTime);
    }

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

    public static Builder builder(PolicyAssignmentPropertiesResponsePolicy defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String id;
        private PrincipalResponse lastModifiedBy;
        private @Nullable String lastModifiedDateTime;
        public Builder() {}
        public Builder(PolicyAssignmentPropertiesResponsePolicy defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.lastModifiedBy = defaults.lastModifiedBy;
    	      this.lastModifiedDateTime = defaults.lastModifiedDateTime;
        }

        @CustomType.Setter
        public Builder id(@Nullable String id) {

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder lastModifiedBy(PrincipalResponse lastModifiedBy) {
            if (lastModifiedBy == null) {
              throw new MissingRequiredPropertyException("PolicyAssignmentPropertiesResponsePolicy", "lastModifiedBy");
            }
            this.lastModifiedBy = lastModifiedBy;
            return this;
        }
        @CustomType.Setter
        public Builder lastModifiedDateTime(@Nullable String lastModifiedDateTime) {

            this.lastModifiedDateTime = lastModifiedDateTime;
            return this;
        }
        public PolicyAssignmentPropertiesResponsePolicy build() {
            final var _resultValue = new PolicyAssignmentPropertiesResponsePolicy();
            _resultValue.id = id;
            _resultValue.lastModifiedBy = lastModifiedBy;
            _resultValue.lastModifiedDateTime = lastModifiedDateTime;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy