
com.pulumi.azurenative.servicefabric.inputs.ServicePlacementRequiredDomainPolicyArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* Describes the policy to be used for placement of a Service Fabric service where the instances or replicas of that service must be placed in a particular domain.
*
*/
public final class ServicePlacementRequiredDomainPolicyArgs extends com.pulumi.resources.ResourceArgs {
public static final ServicePlacementRequiredDomainPolicyArgs Empty = new ServicePlacementRequiredDomainPolicyArgs();
/**
* The name of the domain that should used for placement as per this policy.
*
*/
@Import(name="domainName", required=true)
private Output domainName;
/**
* @return The name of the domain that should used for placement as per this policy.
*
*/
public Output domainName() {
return this.domainName;
}
/**
* The type of placement policy for a service fabric service. Following are the possible values.
* Expected value is 'RequiredDomain'.
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return The type of placement policy for a service fabric service. Following are the possible values.
* Expected value is 'RequiredDomain'.
*
*/
public Output type() {
return this.type;
}
private ServicePlacementRequiredDomainPolicyArgs() {}
private ServicePlacementRequiredDomainPolicyArgs(ServicePlacementRequiredDomainPolicyArgs $) {
this.domainName = $.domainName;
this.type = $.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServicePlacementRequiredDomainPolicyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ServicePlacementRequiredDomainPolicyArgs $;
public Builder() {
$ = new ServicePlacementRequiredDomainPolicyArgs();
}
public Builder(ServicePlacementRequiredDomainPolicyArgs defaults) {
$ = new ServicePlacementRequiredDomainPolicyArgs(Objects.requireNonNull(defaults));
}
/**
* @param domainName The name of the domain that should used for placement as per this policy.
*
* @return builder
*
*/
public Builder domainName(Output domainName) {
$.domainName = domainName;
return this;
}
/**
* @param domainName The name of the domain that should used for placement as per this policy.
*
* @return builder
*
*/
public Builder domainName(String domainName) {
return domainName(Output.of(domainName));
}
/**
* @param type The type of placement policy for a service fabric service. Following are the possible values.
* Expected value is 'RequiredDomain'.
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type The type of placement policy for a service fabric service. Following are the possible values.
* Expected value is 'RequiredDomain'.
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
public ServicePlacementRequiredDomainPolicyArgs build() {
if ($.domainName == null) {
throw new MissingRequiredPropertyException("ServicePlacementRequiredDomainPolicyArgs", "domainName");
}
$.type = Codegen.stringProp("type").output().arg($.type).require();
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy