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

import com.pulumi.azure.apimanagement.outputs.GetServiceAdditionalLocation;
import com.pulumi.azure.apimanagement.outputs.GetServiceHostnameConfiguration;
import com.pulumi.azure.apimanagement.outputs.GetServiceIdentity;
import com.pulumi.azure.apimanagement.outputs.GetServiceTenantAccess;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class GetServiceResult {
    /**
     * @return Zero or more `additional_location` blocks as defined below
     * 
     */
    private List<GetServiceAdditionalLocation> additionalLocations;
    /**
     * @return The URL for the Developer Portal associated with this API Management service.
     * 
     */
    private String developerPortalUrl;
    /**
     * @return Gateway URL of the API Management service in the Region.
     * 
     */
    private String gatewayRegionalUrl;
    /**
     * @return The URL for the API Management Service&#39;s Gateway.
     * 
     */
    private String gatewayUrl;
    /**
     * @return A `hostname_configuration` block as defined below.
     * 
     */
    private List<GetServiceHostnameConfiguration> hostnameConfigurations;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return (Optional) An `identity` block as defined below.
     * 
     */
    private List<GetServiceIdentity> identities;
    /**
     * @return The location name of the additional region among Azure Data center regions.
     * 
     */
    private String location;
    /**
     * @return The URL for the Management API.
     * 
     */
    private String managementApiUrl;
    /**
     * @return Specifies the plan&#39;s pricing tier.
     * 
     */
    private String name;
    /**
     * @return The email address from which the notification will be sent.
     * 
     */
    private String notificationSenderEmail;
    /**
     * @return The URL of the Publisher Portal.
     * 
     */
    private String portalUrl;
    /**
     * @return Private IP addresses of the API Management service in the additional location, for instances using virtual network mode.
     * 
     */
    private List<String> privateIpAddresses;
    /**
     * @return ID of the standard SKU IPv4 Public IP. Available only for Premium SKU deployed in a virtual network.
     * 
     */
    private String publicIpAddressId;
    /**
     * @return Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
     * 
     */
    private List<String> publicIpAddresses;
    /**
     * @return The email of Publisher/Company of the API Management Service.
     * 
     */
    private String publisherEmail;
    /**
     * @return The name of the Publisher/Company of the API Management Service.
     * 
     */
    private String publisherName;
    private String resourceGroupName;
    /**
     * @return The SCM (Source Code Management) endpoint.
     * 
     */
    private String scmUrl;
    private String skuName;
    /**
     * @return A mapping of tags assigned to the resource.
     * 
     */
    private @Nullable Map<String,String> tags;
    /**
     * @return A `tenant_access` block as defined below.
     * 
     */
    private List<GetServiceTenantAccess> tenantAccesses;

    private GetServiceResult() {}
    /**
     * @return Zero or more `additional_location` blocks as defined below
     * 
     */
    public List<GetServiceAdditionalLocation> additionalLocations() {
        return this.additionalLocations;
    }
    /**
     * @return The URL for the Developer Portal associated with this API Management service.
     * 
     */
    public String developerPortalUrl() {
        return this.developerPortalUrl;
    }
    /**
     * @return Gateway URL of the API Management service in the Region.
     * 
     */
    public String gatewayRegionalUrl() {
        return this.gatewayRegionalUrl;
    }
    /**
     * @return The URL for the API Management Service&#39;s Gateway.
     * 
     */
    public String gatewayUrl() {
        return this.gatewayUrl;
    }
    /**
     * @return A `hostname_configuration` block as defined below.
     * 
     */
    public List<GetServiceHostnameConfiguration> hostnameConfigurations() {
        return this.hostnameConfigurations;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return (Optional) An `identity` block as defined below.
     * 
     */
    public List<GetServiceIdentity> identities() {
        return this.identities;
    }
    /**
     * @return The location name of the additional region among Azure Data center regions.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return The URL for the Management API.
     * 
     */
    public String managementApiUrl() {
        return this.managementApiUrl;
    }
    /**
     * @return Specifies the plan&#39;s pricing tier.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The email address from which the notification will be sent.
     * 
     */
    public String notificationSenderEmail() {
        return this.notificationSenderEmail;
    }
    /**
     * @return The URL of the Publisher Portal.
     * 
     */
    public String portalUrl() {
        return this.portalUrl;
    }
    /**
     * @return Private IP addresses of the API Management service in the additional location, for instances using virtual network mode.
     * 
     */
    public List<String> privateIpAddresses() {
        return this.privateIpAddresses;
    }
    /**
     * @return ID of the standard SKU IPv4 Public IP. Available only for Premium SKU deployed in a virtual network.
     * 
     */
    public String publicIpAddressId() {
        return this.publicIpAddressId;
    }
    /**
     * @return Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
     * 
     */
    public List<String> publicIpAddresses() {
        return this.publicIpAddresses;
    }
    /**
     * @return The email of Publisher/Company of the API Management Service.
     * 
     */
    public String publisherEmail() {
        return this.publisherEmail;
    }
    /**
     * @return The name of the Publisher/Company of the API Management Service.
     * 
     */
    public String publisherName() {
        return this.publisherName;
    }
    public String resourceGroupName() {
        return this.resourceGroupName;
    }
    /**
     * @return The SCM (Source Code Management) endpoint.
     * 
     */
    public String scmUrl() {
        return this.scmUrl;
    }
    public String skuName() {
        return this.skuName;
    }
    /**
     * @return A mapping of tags assigned to the resource.
     * 
     */
    public Map<String,String> tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return A `tenant_access` block as defined below.
     * 
     */
    public List<GetServiceTenantAccess> tenantAccesses() {
        return this.tenantAccesses;
    }

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

    public static Builder builder(GetServiceResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<GetServiceAdditionalLocation> additionalLocations;
        private String developerPortalUrl;
        private String gatewayRegionalUrl;
        private String gatewayUrl;
        private List<GetServiceHostnameConfiguration> hostnameConfigurations;
        private String id;
        private List<GetServiceIdentity> identities;
        private String location;
        private String managementApiUrl;
        private String name;
        private String notificationSenderEmail;
        private String portalUrl;
        private List<String> privateIpAddresses;
        private String publicIpAddressId;
        private List<String> publicIpAddresses;
        private String publisherEmail;
        private String publisherName;
        private String resourceGroupName;
        private String scmUrl;
        private String skuName;
        private @Nullable Map<String,String> tags;
        private List<GetServiceTenantAccess> tenantAccesses;
        public Builder() {}
        public Builder(GetServiceResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.additionalLocations = defaults.additionalLocations;
    	      this.developerPortalUrl = defaults.developerPortalUrl;
    	      this.gatewayRegionalUrl = defaults.gatewayRegionalUrl;
    	      this.gatewayUrl = defaults.gatewayUrl;
    	      this.hostnameConfigurations = defaults.hostnameConfigurations;
    	      this.id = defaults.id;
    	      this.identities = defaults.identities;
    	      this.location = defaults.location;
    	      this.managementApiUrl = defaults.managementApiUrl;
    	      this.name = defaults.name;
    	      this.notificationSenderEmail = defaults.notificationSenderEmail;
    	      this.portalUrl = defaults.portalUrl;
    	      this.privateIpAddresses = defaults.privateIpAddresses;
    	      this.publicIpAddressId = defaults.publicIpAddressId;
    	      this.publicIpAddresses = defaults.publicIpAddresses;
    	      this.publisherEmail = defaults.publisherEmail;
    	      this.publisherName = defaults.publisherName;
    	      this.resourceGroupName = defaults.resourceGroupName;
    	      this.scmUrl = defaults.scmUrl;
    	      this.skuName = defaults.skuName;
    	      this.tags = defaults.tags;
    	      this.tenantAccesses = defaults.tenantAccesses;
        }

        @CustomType.Setter
        public Builder additionalLocations(List<GetServiceAdditionalLocation> additionalLocations) {
            this.additionalLocations = Objects.requireNonNull(additionalLocations);
            return this;
        }
        public Builder additionalLocations(GetServiceAdditionalLocation... additionalLocations) {
            return additionalLocations(List.of(additionalLocations));
        }
        @CustomType.Setter
        public Builder developerPortalUrl(String developerPortalUrl) {
            this.developerPortalUrl = Objects.requireNonNull(developerPortalUrl);
            return this;
        }
        @CustomType.Setter
        public Builder gatewayRegionalUrl(String gatewayRegionalUrl) {
            this.gatewayRegionalUrl = Objects.requireNonNull(gatewayRegionalUrl);
            return this;
        }
        @CustomType.Setter
        public Builder gatewayUrl(String gatewayUrl) {
            this.gatewayUrl = Objects.requireNonNull(gatewayUrl);
            return this;
        }
        @CustomType.Setter
        public Builder hostnameConfigurations(List<GetServiceHostnameConfiguration> hostnameConfigurations) {
            this.hostnameConfigurations = Objects.requireNonNull(hostnameConfigurations);
            return this;
        }
        public Builder hostnameConfigurations(GetServiceHostnameConfiguration... hostnameConfigurations) {
            return hostnameConfigurations(List.of(hostnameConfigurations));
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder identities(List<GetServiceIdentity> identities) {
            this.identities = Objects.requireNonNull(identities);
            return this;
        }
        public Builder identities(GetServiceIdentity... identities) {
            return identities(List.of(identities));
        }
        @CustomType.Setter
        public Builder location(String location) {
            this.location = Objects.requireNonNull(location);
            return this;
        }
        @CustomType.Setter
        public Builder managementApiUrl(String managementApiUrl) {
            this.managementApiUrl = Objects.requireNonNull(managementApiUrl);
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder notificationSenderEmail(String notificationSenderEmail) {
            this.notificationSenderEmail = Objects.requireNonNull(notificationSenderEmail);
            return this;
        }
        @CustomType.Setter
        public Builder portalUrl(String portalUrl) {
            this.portalUrl = Objects.requireNonNull(portalUrl);
            return this;
        }
        @CustomType.Setter
        public Builder privateIpAddresses(List<String> privateIpAddresses) {
            this.privateIpAddresses = Objects.requireNonNull(privateIpAddresses);
            return this;
        }
        public Builder privateIpAddresses(String... privateIpAddresses) {
            return privateIpAddresses(List.of(privateIpAddresses));
        }
        @CustomType.Setter
        public Builder publicIpAddressId(String publicIpAddressId) {
            this.publicIpAddressId = Objects.requireNonNull(publicIpAddressId);
            return this;
        }
        @CustomType.Setter
        public Builder publicIpAddresses(List<String> publicIpAddresses) {
            this.publicIpAddresses = Objects.requireNonNull(publicIpAddresses);
            return this;
        }
        public Builder publicIpAddresses(String... publicIpAddresses) {
            return publicIpAddresses(List.of(publicIpAddresses));
        }
        @CustomType.Setter
        public Builder publisherEmail(String publisherEmail) {
            this.publisherEmail = Objects.requireNonNull(publisherEmail);
            return this;
        }
        @CustomType.Setter
        public Builder publisherName(String publisherName) {
            this.publisherName = Objects.requireNonNull(publisherName);
            return this;
        }
        @CustomType.Setter
        public Builder resourceGroupName(String resourceGroupName) {
            this.resourceGroupName = Objects.requireNonNull(resourceGroupName);
            return this;
        }
        @CustomType.Setter
        public Builder scmUrl(String scmUrl) {
            this.scmUrl = Objects.requireNonNull(scmUrl);
            return this;
        }
        @CustomType.Setter
        public Builder skuName(String skuName) {
            this.skuName = Objects.requireNonNull(skuName);
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map<String,String> tags) {
            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder tenantAccesses(List<GetServiceTenantAccess> tenantAccesses) {
            this.tenantAccesses = Objects.requireNonNull(tenantAccesses);
            return this;
        }
        public Builder tenantAccesses(GetServiceTenantAccess... tenantAccesses) {
            return tenantAccesses(List.of(tenantAccesses));
        }
        public GetServiceResult build() {
            final var o = new GetServiceResult();
            o.additionalLocations = additionalLocations;
            o.developerPortalUrl = developerPortalUrl;
            o.gatewayRegionalUrl = gatewayRegionalUrl;
            o.gatewayUrl = gatewayUrl;
            o.hostnameConfigurations = hostnameConfigurations;
            o.id = id;
            o.identities = identities;
            o.location = location;
            o.managementApiUrl = managementApiUrl;
            o.name = name;
            o.notificationSenderEmail = notificationSenderEmail;
            o.portalUrl = portalUrl;
            o.privateIpAddresses = privateIpAddresses;
            o.publicIpAddressId = publicIpAddressId;
            o.publicIpAddresses = publicIpAddresses;
            o.publisherEmail = publisherEmail;
            o.publisherName = publisherName;
            o.resourceGroupName = resourceGroupName;
            o.scmUrl = scmUrl;
            o.skuName = skuName;
            o.tags = tags;
            o.tenantAccesses = tenantAccesses;
            return o;
        }
    }
}
