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

com.pulumi.akamai.outputs.GetGtmDatacenterResult Maven / Gradle / Ivy

The 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.akamai.outputs;

import com.pulumi.akamai.outputs.GetGtmDatacenterDefaultLoadObject;
import com.pulumi.akamai.outputs.GetGtmDatacenterLink;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetGtmDatacenterResult {
    private String city;
    private Integer cloneOf;
    private Boolean cloudServerHostHeaderOverride;
    private Boolean cloudServerTargeting;
    private String continent;
    private String country;
    private Integer datacenterId;
    private List defaultLoadObjects;
    private String domain;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private Double latitude;
    private List links;
    private Double longitude;
    private String nickname;
    private Integer scorePenalty;
    private String servermonitorPool;
    private String stateOrProvince;
    private Boolean virtual;

    private GetGtmDatacenterResult() {}
    public String city() {
        return this.city;
    }
    public Integer cloneOf() {
        return this.cloneOf;
    }
    public Boolean cloudServerHostHeaderOverride() {
        return this.cloudServerHostHeaderOverride;
    }
    public Boolean cloudServerTargeting() {
        return this.cloudServerTargeting;
    }
    public String continent() {
        return this.continent;
    }
    public String country() {
        return this.country;
    }
    public Integer datacenterId() {
        return this.datacenterId;
    }
    public List defaultLoadObjects() {
        return this.defaultLoadObjects;
    }
    public String domain() {
        return this.domain;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public Double latitude() {
        return this.latitude;
    }
    public List links() {
        return this.links;
    }
    public Double longitude() {
        return this.longitude;
    }
    public String nickname() {
        return this.nickname;
    }
    public Integer scorePenalty() {
        return this.scorePenalty;
    }
    public String servermonitorPool() {
        return this.servermonitorPool;
    }
    public String stateOrProvince() {
        return this.stateOrProvince;
    }
    public Boolean virtual() {
        return this.virtual;
    }

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

    public static Builder builder(GetGtmDatacenterResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String city;
        private Integer cloneOf;
        private Boolean cloudServerHostHeaderOverride;
        private Boolean cloudServerTargeting;
        private String continent;
        private String country;
        private Integer datacenterId;
        private List defaultLoadObjects;
        private String domain;
        private String id;
        private Double latitude;
        private List links;
        private Double longitude;
        private String nickname;
        private Integer scorePenalty;
        private String servermonitorPool;
        private String stateOrProvince;
        private Boolean virtual;
        public Builder() {}
        public Builder(GetGtmDatacenterResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.city = defaults.city;
    	      this.cloneOf = defaults.cloneOf;
    	      this.cloudServerHostHeaderOverride = defaults.cloudServerHostHeaderOverride;
    	      this.cloudServerTargeting = defaults.cloudServerTargeting;
    	      this.continent = defaults.continent;
    	      this.country = defaults.country;
    	      this.datacenterId = defaults.datacenterId;
    	      this.defaultLoadObjects = defaults.defaultLoadObjects;
    	      this.domain = defaults.domain;
    	      this.id = defaults.id;
    	      this.latitude = defaults.latitude;
    	      this.links = defaults.links;
    	      this.longitude = defaults.longitude;
    	      this.nickname = defaults.nickname;
    	      this.scorePenalty = defaults.scorePenalty;
    	      this.servermonitorPool = defaults.servermonitorPool;
    	      this.stateOrProvince = defaults.stateOrProvince;
    	      this.virtual = defaults.virtual;
        }

        @CustomType.Setter
        public Builder city(String city) {
            if (city == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "city");
            }
            this.city = city;
            return this;
        }
        @CustomType.Setter
        public Builder cloneOf(Integer cloneOf) {
            if (cloneOf == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "cloneOf");
            }
            this.cloneOf = cloneOf;
            return this;
        }
        @CustomType.Setter
        public Builder cloudServerHostHeaderOverride(Boolean cloudServerHostHeaderOverride) {
            if (cloudServerHostHeaderOverride == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "cloudServerHostHeaderOverride");
            }
            this.cloudServerHostHeaderOverride = cloudServerHostHeaderOverride;
            return this;
        }
        @CustomType.Setter
        public Builder cloudServerTargeting(Boolean cloudServerTargeting) {
            if (cloudServerTargeting == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "cloudServerTargeting");
            }
            this.cloudServerTargeting = cloudServerTargeting;
            return this;
        }
        @CustomType.Setter
        public Builder continent(String continent) {
            if (continent == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "continent");
            }
            this.continent = continent;
            return this;
        }
        @CustomType.Setter
        public Builder country(String country) {
            if (country == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "country");
            }
            this.country = country;
            return this;
        }
        @CustomType.Setter
        public Builder datacenterId(Integer datacenterId) {
            if (datacenterId == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "datacenterId");
            }
            this.datacenterId = datacenterId;
            return this;
        }
        @CustomType.Setter
        public Builder defaultLoadObjects(List defaultLoadObjects) {
            if (defaultLoadObjects == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "defaultLoadObjects");
            }
            this.defaultLoadObjects = defaultLoadObjects;
            return this;
        }
        public Builder defaultLoadObjects(GetGtmDatacenterDefaultLoadObject... defaultLoadObjects) {
            return defaultLoadObjects(List.of(defaultLoadObjects));
        }
        @CustomType.Setter
        public Builder domain(String domain) {
            if (domain == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "domain");
            }
            this.domain = domain;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder latitude(Double latitude) {
            if (latitude == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "latitude");
            }
            this.latitude = latitude;
            return this;
        }
        @CustomType.Setter
        public Builder links(List links) {
            if (links == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "links");
            }
            this.links = links;
            return this;
        }
        public Builder links(GetGtmDatacenterLink... links) {
            return links(List.of(links));
        }
        @CustomType.Setter
        public Builder longitude(Double longitude) {
            if (longitude == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "longitude");
            }
            this.longitude = longitude;
            return this;
        }
        @CustomType.Setter
        public Builder nickname(String nickname) {
            if (nickname == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "nickname");
            }
            this.nickname = nickname;
            return this;
        }
        @CustomType.Setter
        public Builder scorePenalty(Integer scorePenalty) {
            if (scorePenalty == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "scorePenalty");
            }
            this.scorePenalty = scorePenalty;
            return this;
        }
        @CustomType.Setter
        public Builder servermonitorPool(String servermonitorPool) {
            if (servermonitorPool == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "servermonitorPool");
            }
            this.servermonitorPool = servermonitorPool;
            return this;
        }
        @CustomType.Setter
        public Builder stateOrProvince(String stateOrProvince) {
            if (stateOrProvince == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "stateOrProvince");
            }
            this.stateOrProvince = stateOrProvince;
            return this;
        }
        @CustomType.Setter
        public Builder virtual(Boolean virtual) {
            if (virtual == null) {
              throw new MissingRequiredPropertyException("GetGtmDatacenterResult", "virtual");
            }
            this.virtual = virtual;
            return this;
        }
        public GetGtmDatacenterResult build() {
            final var _resultValue = new GetGtmDatacenterResult();
            _resultValue.city = city;
            _resultValue.cloneOf = cloneOf;
            _resultValue.cloudServerHostHeaderOverride = cloudServerHostHeaderOverride;
            _resultValue.cloudServerTargeting = cloudServerTargeting;
            _resultValue.continent = continent;
            _resultValue.country = country;
            _resultValue.datacenterId = datacenterId;
            _resultValue.defaultLoadObjects = defaultLoadObjects;
            _resultValue.domain = domain;
            _resultValue.id = id;
            _resultValue.latitude = latitude;
            _resultValue.links = links;
            _resultValue.longitude = longitude;
            _resultValue.nickname = nickname;
            _resultValue.scorePenalty = scorePenalty;
            _resultValue.servermonitorPool = servermonitorPool;
            _resultValue.stateOrProvince = stateOrProvince;
            _resultValue.virtual = virtual;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy