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

com.pulumi.azurenative.managedservices.outputs.RegistrationDefinitionPropertiesResponse 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.managedservices.outputs;

import com.pulumi.azurenative.managedservices.outputs.AuthorizationResponse;
import com.pulumi.azurenative.managedservices.outputs.EligibleAuthorizationResponse;
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 RegistrationDefinitionPropertiesResponse {
    /**
     * @return The collection of authorization objects describing the access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant.
     * 
     */
    private List authorizations;
    /**
     * @return The description of the registration definition.
     * 
     */
    private @Nullable String description;
    /**
     * @return The collection of eligible authorization objects describing the just-in-time access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant.
     * 
     */
    private @Nullable List eligibleAuthorizations;
    /**
     * @return The identifier of the managedBy tenant.
     * 
     */
    private String managedByTenantId;
    /**
     * @return The name of the managedBy tenant.
     * 
     */
    private String managedByTenantName;
    /**
     * @return The identifier of the managed tenant.
     * 
     */
    private String manageeTenantId;
    /**
     * @return The name of the managed tenant.
     * 
     */
    private String manageeTenantName;
    /**
     * @return The current provisioning state of the registration definition.
     * 
     */
    private String provisioningState;
    /**
     * @return The name of the registration definition.
     * 
     */
    private @Nullable String registrationDefinitionName;

    private RegistrationDefinitionPropertiesResponse() {}
    /**
     * @return The collection of authorization objects describing the access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant.
     * 
     */
    public List authorizations() {
        return this.authorizations;
    }
    /**
     * @return The description of the registration definition.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The collection of eligible authorization objects describing the just-in-time access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant.
     * 
     */
    public List eligibleAuthorizations() {
        return this.eligibleAuthorizations == null ? List.of() : this.eligibleAuthorizations;
    }
    /**
     * @return The identifier of the managedBy tenant.
     * 
     */
    public String managedByTenantId() {
        return this.managedByTenantId;
    }
    /**
     * @return The name of the managedBy tenant.
     * 
     */
    public String managedByTenantName() {
        return this.managedByTenantName;
    }
    /**
     * @return The identifier of the managed tenant.
     * 
     */
    public String manageeTenantId() {
        return this.manageeTenantId;
    }
    /**
     * @return The name of the managed tenant.
     * 
     */
    public String manageeTenantName() {
        return this.manageeTenantName;
    }
    /**
     * @return The current provisioning state of the registration definition.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The name of the registration definition.
     * 
     */
    public Optional registrationDefinitionName() {
        return Optional.ofNullable(this.registrationDefinitionName);
    }

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

    public static Builder builder(RegistrationDefinitionPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List authorizations;
        private @Nullable String description;
        private @Nullable List eligibleAuthorizations;
        private String managedByTenantId;
        private String managedByTenantName;
        private String manageeTenantId;
        private String manageeTenantName;
        private String provisioningState;
        private @Nullable String registrationDefinitionName;
        public Builder() {}
        public Builder(RegistrationDefinitionPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authorizations = defaults.authorizations;
    	      this.description = defaults.description;
    	      this.eligibleAuthorizations = defaults.eligibleAuthorizations;
    	      this.managedByTenantId = defaults.managedByTenantId;
    	      this.managedByTenantName = defaults.managedByTenantName;
    	      this.manageeTenantId = defaults.manageeTenantId;
    	      this.manageeTenantName = defaults.manageeTenantName;
    	      this.provisioningState = defaults.provisioningState;
    	      this.registrationDefinitionName = defaults.registrationDefinitionName;
        }

        @CustomType.Setter
        public Builder authorizations(List authorizations) {
            if (authorizations == null) {
              throw new MissingRequiredPropertyException("RegistrationDefinitionPropertiesResponse", "authorizations");
            }
            this.authorizations = authorizations;
            return this;
        }
        public Builder authorizations(AuthorizationResponse... authorizations) {
            return authorizations(List.of(authorizations));
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

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

            this.eligibleAuthorizations = eligibleAuthorizations;
            return this;
        }
        public Builder eligibleAuthorizations(EligibleAuthorizationResponse... eligibleAuthorizations) {
            return eligibleAuthorizations(List.of(eligibleAuthorizations));
        }
        @CustomType.Setter
        public Builder managedByTenantId(String managedByTenantId) {
            if (managedByTenantId == null) {
              throw new MissingRequiredPropertyException("RegistrationDefinitionPropertiesResponse", "managedByTenantId");
            }
            this.managedByTenantId = managedByTenantId;
            return this;
        }
        @CustomType.Setter
        public Builder managedByTenantName(String managedByTenantName) {
            if (managedByTenantName == null) {
              throw new MissingRequiredPropertyException("RegistrationDefinitionPropertiesResponse", "managedByTenantName");
            }
            this.managedByTenantName = managedByTenantName;
            return this;
        }
        @CustomType.Setter
        public Builder manageeTenantId(String manageeTenantId) {
            if (manageeTenantId == null) {
              throw new MissingRequiredPropertyException("RegistrationDefinitionPropertiesResponse", "manageeTenantId");
            }
            this.manageeTenantId = manageeTenantId;
            return this;
        }
        @CustomType.Setter
        public Builder manageeTenantName(String manageeTenantName) {
            if (manageeTenantName == null) {
              throw new MissingRequiredPropertyException("RegistrationDefinitionPropertiesResponse", "manageeTenantName");
            }
            this.manageeTenantName = manageeTenantName;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("RegistrationDefinitionPropertiesResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder registrationDefinitionName(@Nullable String registrationDefinitionName) {

            this.registrationDefinitionName = registrationDefinitionName;
            return this;
        }
        public RegistrationDefinitionPropertiesResponse build() {
            final var _resultValue = new RegistrationDefinitionPropertiesResponse();
            _resultValue.authorizations = authorizations;
            _resultValue.description = description;
            _resultValue.eligibleAuthorizations = eligibleAuthorizations;
            _resultValue.managedByTenantId = managedByTenantId;
            _resultValue.managedByTenantName = managedByTenantName;
            _resultValue.manageeTenantId = manageeTenantId;
            _resultValue.manageeTenantName = manageeTenantName;
            _resultValue.provisioningState = provisioningState;
            _resultValue.registrationDefinitionName = registrationDefinitionName;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy