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

com.pulumi.azurenative.servicefabric.outputs.NamedPartitionSchemeResponse 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.List;
import java.util.Objects;

@CustomType
public final class NamedPartitionSchemeResponse {
    /**
     * @return Array for the names of the partitions.
     * 
     */
    private List names;
    /**
     * @return Enumerates the ways that a service can be partitioned.
     * Expected value is 'Named'.
     * 
     */
    private String partitionScheme;

    private NamedPartitionSchemeResponse() {}
    /**
     * @return Array for the names of the partitions.
     * 
     */
    public List names() {
        return this.names;
    }
    /**
     * @return Enumerates the ways that a service can be partitioned.
     * Expected value is 'Named'.
     * 
     */
    public String partitionScheme() {
        return this.partitionScheme;
    }

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

    public static Builder builder(NamedPartitionSchemeResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List names;
        private String partitionScheme;
        public Builder() {}
        public Builder(NamedPartitionSchemeResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.names = defaults.names;
    	      this.partitionScheme = defaults.partitionScheme;
        }

        @CustomType.Setter
        public Builder names(List names) {
            if (names == null) {
              throw new MissingRequiredPropertyException("NamedPartitionSchemeResponse", "names");
            }
            this.names = names;
            return this;
        }
        public Builder names(String... names) {
            return names(List.of(names));
        }
        @CustomType.Setter
        public Builder partitionScheme(String partitionScheme) {
            if (partitionScheme == null) {
              throw new MissingRequiredPropertyException("NamedPartitionSchemeResponse", "partitionScheme");
            }
            this.partitionScheme = partitionScheme;
            return this;
        }
        public NamedPartitionSchemeResponse build() {
            final var _resultValue = new NamedPartitionSchemeResponse();
            _resultValue.names = names;
            _resultValue.partitionScheme = partitionScheme;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy