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

com.pulumi.azurenative.servicefabric.outputs.ServicePlacementPreferPrimaryDomainPolicyResponse 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.servicefabric.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class ServicePlacementPreferPrimaryDomainPolicyResponse {
    /**
     * @return The name of the domain that should used for placement as per this policy.
     * 
     */
    private String domainName;
    /**
     * @return The type of placement policy for a service fabric service. Following are the possible values.
     * Expected value is 'PreferredPrimaryDomain'.
     * 
     */
    private String type;

    private ServicePlacementPreferPrimaryDomainPolicyResponse() {}
    /**
     * @return The name of the domain that should used for placement as per this policy.
     * 
     */
    public String domainName() {
        return this.domainName;
    }
    /**
     * @return The type of placement policy for a service fabric service. Following are the possible values.
     * Expected value is 'PreferredPrimaryDomain'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(ServicePlacementPreferPrimaryDomainPolicyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String domainName;
        private String type;
        public Builder() {}
        public Builder(ServicePlacementPreferPrimaryDomainPolicyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.domainName = defaults.domainName;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder domainName(String domainName) {
            if (domainName == null) {
              throw new MissingRequiredPropertyException("ServicePlacementPreferPrimaryDomainPolicyResponse", "domainName");
            }
            this.domainName = domainName;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("ServicePlacementPreferPrimaryDomainPolicyResponse", "type");
            }
            this.type = type;
            return this;
        }
        public ServicePlacementPreferPrimaryDomainPolicyResponse build() {
            final var _resultValue = new ServicePlacementPreferPrimaryDomainPolicyResponse();
            _resultValue.domainName = domainName;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy