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

com.pulumi.alicloud.mongodb.outputs.GetShardingNetworkPublicAddressesResult Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show 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.alicloud.mongodb.outputs;

import com.pulumi.alicloud.mongodb.outputs.GetShardingNetworkPublicAddressesAddress;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetShardingNetworkPublicAddressesResult {
    private List addresses;
    private String dbInstanceId;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private @Nullable String nodeId;
    private @Nullable String outputFile;
    private @Nullable String role;

    private GetShardingNetworkPublicAddressesResult() {}
    public List addresses() {
        return this.addresses;
    }
    public String dbInstanceId() {
        return this.dbInstanceId;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public Optional nodeId() {
        return Optional.ofNullable(this.nodeId);
    }
    public Optional outputFile() {
        return Optional.ofNullable(this.outputFile);
    }
    public Optional role() {
        return Optional.ofNullable(this.role);
    }

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

    public static Builder builder(GetShardingNetworkPublicAddressesResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List addresses;
        private String dbInstanceId;
        private String id;
        private @Nullable String nodeId;
        private @Nullable String outputFile;
        private @Nullable String role;
        public Builder() {}
        public Builder(GetShardingNetworkPublicAddressesResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.addresses = defaults.addresses;
    	      this.dbInstanceId = defaults.dbInstanceId;
    	      this.id = defaults.id;
    	      this.nodeId = defaults.nodeId;
    	      this.outputFile = defaults.outputFile;
    	      this.role = defaults.role;
        }

        @CustomType.Setter
        public Builder addresses(List addresses) {
            if (addresses == null) {
              throw new MissingRequiredPropertyException("GetShardingNetworkPublicAddressesResult", "addresses");
            }
            this.addresses = addresses;
            return this;
        }
        public Builder addresses(GetShardingNetworkPublicAddressesAddress... addresses) {
            return addresses(List.of(addresses));
        }
        @CustomType.Setter
        public Builder dbInstanceId(String dbInstanceId) {
            if (dbInstanceId == null) {
              throw new MissingRequiredPropertyException("GetShardingNetworkPublicAddressesResult", "dbInstanceId");
            }
            this.dbInstanceId = dbInstanceId;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetShardingNetworkPublicAddressesResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder nodeId(@Nullable String nodeId) {

            this.nodeId = nodeId;
            return this;
        }
        @CustomType.Setter
        public Builder outputFile(@Nullable String outputFile) {

            this.outputFile = outputFile;
            return this;
        }
        @CustomType.Setter
        public Builder role(@Nullable String role) {

            this.role = role;
            return this;
        }
        public GetShardingNetworkPublicAddressesResult build() {
            final var _resultValue = new GetShardingNetworkPublicAddressesResult();
            _resultValue.addresses = addresses;
            _resultValue.dbInstanceId = dbInstanceId;
            _resultValue.id = id;
            _resultValue.nodeId = nodeId;
            _resultValue.outputFile = outputFile;
            _resultValue.role = role;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy