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

com.pulumi.openstack.identity.outputs.GetEndpointResult 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.openstack.identity.outputs;

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 GetEndpointResult {
    /**
     * @return See Argument Reference above.
     * 
     */
    private @Nullable String endpointRegion;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return See Argument Reference above.
     * 
     */
    private @Nullable String interface_;
    /**
     * @return See Argument Reference above.
     * 
     */
    private @Nullable String name;
    /**
     * @return See Argument Reference above.
     * 
     */
    private String region;
    /**
     * @return See Argument Reference above.
     * 
     */
    private @Nullable String serviceId;
    /**
     * @return See Argument Reference above.
     * 
     */
    private @Nullable String serviceName;
    /**
     * @return See Argument Reference above.
     * 
     */
    private @Nullable String serviceType;
    /**
     * @return The endpoint URL.
     * 
     */
    private String url;

    private GetEndpointResult() {}
    /**
     * @return See Argument Reference above.
     * 
     */
    public Optional endpointRegion() {
        return Optional.ofNullable(this.endpointRegion);
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return See Argument Reference above.
     * 
     */
    public Optional interface_() {
        return Optional.ofNullable(this.interface_);
    }
    /**
     * @return See Argument Reference above.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return See Argument Reference above.
     * 
     */
    public String region() {
        return this.region;
    }
    /**
     * @return See Argument Reference above.
     * 
     */
    public Optional serviceId() {
        return Optional.ofNullable(this.serviceId);
    }
    /**
     * @return See Argument Reference above.
     * 
     */
    public Optional serviceName() {
        return Optional.ofNullable(this.serviceName);
    }
    /**
     * @return See Argument Reference above.
     * 
     */
    public Optional serviceType() {
        return Optional.ofNullable(this.serviceType);
    }
    /**
     * @return The endpoint URL.
     * 
     */
    public String url() {
        return this.url;
    }

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

    public static Builder builder(GetEndpointResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String endpointRegion;
        private String id;
        private @Nullable String interface_;
        private @Nullable String name;
        private String region;
        private @Nullable String serviceId;
        private @Nullable String serviceName;
        private @Nullable String serviceType;
        private String url;
        public Builder() {}
        public Builder(GetEndpointResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.endpointRegion = defaults.endpointRegion;
    	      this.id = defaults.id;
    	      this.interface_ = defaults.interface_;
    	      this.name = defaults.name;
    	      this.region = defaults.region;
    	      this.serviceId = defaults.serviceId;
    	      this.serviceName = defaults.serviceName;
    	      this.serviceType = defaults.serviceType;
    	      this.url = defaults.url;
        }

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

            this.endpointRegion = endpointRegion;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetEndpointResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter("interface")
        public Builder interface_(@Nullable String interface_) {

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

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

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

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

            this.serviceType = serviceType;
            return this;
        }
        @CustomType.Setter
        public Builder url(String url) {
            if (url == null) {
              throw new MissingRequiredPropertyException("GetEndpointResult", "url");
            }
            this.url = url;
            return this;
        }
        public GetEndpointResult build() {
            final var _resultValue = new GetEndpointResult();
            _resultValue.endpointRegion = endpointRegion;
            _resultValue.id = id;
            _resultValue.interface_ = interface_;
            _resultValue.name = name;
            _resultValue.region = region;
            _resultValue.serviceId = serviceId;
            _resultValue.serviceName = serviceName;
            _resultValue.serviceType = serviceType;
            _resultValue.url = url;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy