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

com.pulumi.azurenative.security.outputs.GetAssignmentResult 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.security.outputs;

import com.pulumi.azurenative.security.outputs.AssignedComponentItemResponse;
import com.pulumi.azurenative.security.outputs.AssignedStandardItemResponse;
import com.pulumi.azurenative.security.outputs.AssignmentPropertiesResponseAdditionalData;
import com.pulumi.azurenative.security.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetAssignmentResult {
    /**
     * @return Additional data about the assignment
     * 
     */
    private @Nullable AssignmentPropertiesResponseAdditionalData additionalData;
    /**
     * @return Component item with key as applied to this standard assignment over the given scope
     * 
     */
    private @Nullable AssignedComponentItemResponse assignedComponent;
    /**
     * @return Standard item with key as applied to this standard assignment over the given scope
     * 
     */
    private @Nullable AssignedStandardItemResponse assignedStandard;
    /**
     * @return description of the standardAssignment
     * 
     */
    private @Nullable String description;
    /**
     * @return display name of the standardAssignment
     * 
     */
    private @Nullable String displayName;
    /**
     * @return expected effect of this assignment (Disable/Exempt/etc)
     * 
     */
    private @Nullable String effect;
    /**
     * @return Entity tag is used for comparing two or more entities from the same requested resource.
     * 
     */
    private @Nullable String etag;
    /**
     * @return Expiration date of this assignment as a full ISO date
     * 
     */
    private @Nullable String expiresOn;
    /**
     * @return Resource Id
     * 
     */
    private String id;
    /**
     * @return Kind of the resource
     * 
     */
    private @Nullable String kind;
    /**
     * @return Location where the resource is stored
     * 
     */
    private @Nullable String location;
    /**
     * @return The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.
     * 
     */
    private @Nullable Object metadata;
    /**
     * @return Resource name
     * 
     */
    private String name;
    /**
     * @return Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription
     * 
     */
    private @Nullable String scope;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return A list of key value pairs that describe the resource.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Resource type
     * 
     */
    private String type;

    private GetAssignmentResult() {}
    /**
     * @return Additional data about the assignment
     * 
     */
    public Optional additionalData() {
        return Optional.ofNullable(this.additionalData);
    }
    /**
     * @return Component item with key as applied to this standard assignment over the given scope
     * 
     */
    public Optional assignedComponent() {
        return Optional.ofNullable(this.assignedComponent);
    }
    /**
     * @return Standard item with key as applied to this standard assignment over the given scope
     * 
     */
    public Optional assignedStandard() {
        return Optional.ofNullable(this.assignedStandard);
    }
    /**
     * @return description of the standardAssignment
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return display name of the standardAssignment
     * 
     */
    public Optional displayName() {
        return Optional.ofNullable(this.displayName);
    }
    /**
     * @return expected effect of this assignment (Disable/Exempt/etc)
     * 
     */
    public Optional effect() {
        return Optional.ofNullable(this.effect);
    }
    /**
     * @return Entity tag is used for comparing two or more entities from the same requested resource.
     * 
     */
    public Optional etag() {
        return Optional.ofNullable(this.etag);
    }
    /**
     * @return Expiration date of this assignment as a full ISO date
     * 
     */
    public Optional expiresOn() {
        return Optional.ofNullable(this.expiresOn);
    }
    /**
     * @return Resource Id
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Kind of the resource
     * 
     */
    public Optional kind() {
        return Optional.ofNullable(this.kind);
    }
    /**
     * @return Location where the resource is stored
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.
     * 
     */
    public Optional metadata() {
        return Optional.ofNullable(this.metadata);
    }
    /**
     * @return Resource name
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription
     * 
     */
    public Optional scope() {
        return Optional.ofNullable(this.scope);
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return A list of key value pairs that describe the resource.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Resource type
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetAssignmentResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AssignmentPropertiesResponseAdditionalData additionalData;
        private @Nullable AssignedComponentItemResponse assignedComponent;
        private @Nullable AssignedStandardItemResponse assignedStandard;
        private @Nullable String description;
        private @Nullable String displayName;
        private @Nullable String effect;
        private @Nullable String etag;
        private @Nullable String expiresOn;
        private String id;
        private @Nullable String kind;
        private @Nullable String location;
        private @Nullable Object metadata;
        private String name;
        private @Nullable String scope;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private String type;
        public Builder() {}
        public Builder(GetAssignmentResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.additionalData = defaults.additionalData;
    	      this.assignedComponent = defaults.assignedComponent;
    	      this.assignedStandard = defaults.assignedStandard;
    	      this.description = defaults.description;
    	      this.displayName = defaults.displayName;
    	      this.effect = defaults.effect;
    	      this.etag = defaults.etag;
    	      this.expiresOn = defaults.expiresOn;
    	      this.id = defaults.id;
    	      this.kind = defaults.kind;
    	      this.location = defaults.location;
    	      this.metadata = defaults.metadata;
    	      this.name = defaults.name;
    	      this.scope = defaults.scope;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder additionalData(@Nullable AssignmentPropertiesResponseAdditionalData additionalData) {

            this.additionalData = additionalData;
            return this;
        }
        @CustomType.Setter
        public Builder assignedComponent(@Nullable AssignedComponentItemResponse assignedComponent) {

            this.assignedComponent = assignedComponent;
            return this;
        }
        @CustomType.Setter
        public Builder assignedStandard(@Nullable AssignedStandardItemResponse assignedStandard) {

            this.assignedStandard = assignedStandard;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder displayName(@Nullable String displayName) {

            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder effect(@Nullable String effect) {

            this.effect = effect;
            return this;
        }
        @CustomType.Setter
        public Builder etag(@Nullable String etag) {

            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder expiresOn(@Nullable String expiresOn) {

            this.expiresOn = expiresOn;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetAssignmentResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder kind(@Nullable String kind) {

            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder metadata(@Nullable Object metadata) {

            this.metadata = metadata;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetAssignmentResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder scope(@Nullable String scope) {

            this.scope = scope;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetAssignmentResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetAssignmentResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetAssignmentResult build() {
            final var _resultValue = new GetAssignmentResult();
            _resultValue.additionalData = additionalData;
            _resultValue.assignedComponent = assignedComponent;
            _resultValue.assignedStandard = assignedStandard;
            _resultValue.description = description;
            _resultValue.displayName = displayName;
            _resultValue.effect = effect;
            _resultValue.etag = etag;
            _resultValue.expiresOn = expiresOn;
            _resultValue.id = id;
            _resultValue.kind = kind;
            _resultValue.location = location;
            _resultValue.metadata = metadata;
            _resultValue.name = name;
            _resultValue.scope = scope;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}