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

com.pulumi.azurenative.customproviders.outputs.GetCustomResourceProviderResult Maven / Gradle / Ivy

// *** 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.customproviders.outputs;

import com.pulumi.azurenative.customproviders.outputs.CustomRPActionRouteDefinitionResponse;
import com.pulumi.azurenative.customproviders.outputs.CustomRPResourceTypeRouteDefinitionResponse;
import com.pulumi.azurenative.customproviders.outputs.CustomRPValidationsResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class GetCustomResourceProviderResult {
    /**
     * @return A list of actions that the custom resource provider implements.
     * 
     */
    private @Nullable List actions;
    /**
     * @return Resource Id
     * 
     */
    private String id;
    /**
     * @return Resource location
     * 
     */
    private String location;
    /**
     * @return Resource name
     * 
     */
    private String name;
    /**
     * @return The provisioning state of the resource provider.
     * 
     */
    private String provisioningState;
    /**
     * @return A list of resource types that the custom resource provider implements.
     * 
     */
    private @Nullable List resourceTypes;
    /**
     * @return Resource tags
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Resource type
     * 
     */
    private String type;
    /**
     * @return A list of validations to run on the custom resource provider's requests.
     * 
     */
    private @Nullable List validations;

    private GetCustomResourceProviderResult() {}
    /**
     * @return A list of actions that the custom resource provider implements.
     * 
     */
    public List actions() {
        return this.actions == null ? List.of() : this.actions;
    }
    /**
     * @return Resource Id
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource location
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Resource name
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The provisioning state of the resource provider.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return A list of resource types that the custom resource provider implements.
     * 
     */
    public List resourceTypes() {
        return this.resourceTypes == null ? List.of() : this.resourceTypes;
    }
    /**
     * @return Resource tags
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Resource type
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return A list of validations to run on the custom resource provider's requests.
     * 
     */
    public List validations() {
        return this.validations == null ? List.of() : this.validations;
    }

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

    public static Builder builder(GetCustomResourceProviderResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List actions;
        private String id;
        private String location;
        private String name;
        private String provisioningState;
        private @Nullable List resourceTypes;
        private @Nullable Map tags;
        private String type;
        private @Nullable List validations;
        public Builder() {}
        public Builder(GetCustomResourceProviderResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actions = defaults.actions;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.resourceTypes = defaults.resourceTypes;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
    	      this.validations = defaults.validations;
        }

        @CustomType.Setter
        public Builder actions(@Nullable List actions) {

            this.actions = actions;
            return this;
        }
        public Builder actions(CustomRPActionRouteDefinitionResponse... actions) {
            return actions(List.of(actions));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetCustomResourceProviderResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetCustomResourceProviderResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetCustomResourceProviderResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetCustomResourceProviderResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder resourceTypes(@Nullable List resourceTypes) {

            this.resourceTypes = resourceTypes;
            return this;
        }
        public Builder resourceTypes(CustomRPResourceTypeRouteDefinitionResponse... resourceTypes) {
            return resourceTypes(List.of(resourceTypes));
        }
        @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("GetCustomResourceProviderResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder validations(@Nullable List validations) {

            this.validations = validations;
            return this;
        }
        public Builder validations(CustomRPValidationsResponse... validations) {
            return validations(List.of(validations));
        }
        public GetCustomResourceProviderResult build() {
            final var _resultValue = new GetCustomResourceProviderResult();
            _resultValue.actions = actions;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.resourceTypes = resourceTypes;
            _resultValue.tags = tags;
            _resultValue.type = type;
            _resultValue.validations = validations;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy