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

com.pulumi.azurenative.datamigration.ServiceArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.datamigration;

import com.pulumi.azurenative.datamigration.inputs.ServiceSkuArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ServiceArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServiceArgs Empty = new ServiceArgs();

    /**
     * Name of the resource group
     * 
     */
    @Import(name="groupName", required=true)
    private Output groupName;

    /**
     * @return Name of the resource group
     * 
     */
    public Output groupName() {
        return this.groupName;
    }

    /**
     * The resource kind. Only 'vm' (the default) is supported.
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return The resource kind. Only 'vm' (the default) is supported.
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The public key of the service, used to encrypt secrets sent to the service
     * 
     */
    @Import(name="publicKey")
    private @Nullable Output publicKey;

    /**
     * @return The public key of the service, used to encrypt secrets sent to the service
     * 
     */
    public Optional> publicKey() {
        return Optional.ofNullable(this.publicKey);
    }

    /**
     * Name of the service
     * 
     */
    @Import(name="serviceName")
    private @Nullable Output serviceName;

    /**
     * @return Name of the service
     * 
     */
    public Optional> serviceName() {
        return Optional.ofNullable(this.serviceName);
    }

    /**
     * Service SKU
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return Service SKU
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The ID of the Microsoft.Network/networkInterfaces resource which the service have
     * 
     */
    @Import(name="virtualNicId")
    private @Nullable Output virtualNicId;

    /**
     * @return The ID of the Microsoft.Network/networkInterfaces resource which the service have
     * 
     */
    public Optional> virtualNicId() {
        return Optional.ofNullable(this.virtualNicId);
    }

    /**
     * The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined
     * 
     */
    @Import(name="virtualSubnetId", required=true)
    private Output virtualSubnetId;

    /**
     * @return The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined
     * 
     */
    public Output virtualSubnetId() {
        return this.virtualSubnetId;
    }

    private ServiceArgs() {}

    private ServiceArgs(ServiceArgs $) {
        this.groupName = $.groupName;
        this.kind = $.kind;
        this.location = $.location;
        this.publicKey = $.publicKey;
        this.serviceName = $.serviceName;
        this.sku = $.sku;
        this.tags = $.tags;
        this.virtualNicId = $.virtualNicId;
        this.virtualSubnetId = $.virtualSubnetId;
    }

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

    public static final class Builder {
        private ServiceArgs $;

        public Builder() {
            $ = new ServiceArgs();
        }

        public Builder(ServiceArgs defaults) {
            $ = new ServiceArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param groupName Name of the resource group
         * 
         * @return builder
         * 
         */
        public Builder groupName(Output groupName) {
            $.groupName = groupName;
            return this;
        }

        /**
         * @param groupName Name of the resource group
         * 
         * @return builder
         * 
         */
        public Builder groupName(String groupName) {
            return groupName(Output.of(groupName));
        }

        /**
         * @param kind The resource kind. Only 'vm' (the default) is supported.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind The resource kind. Only 'vm' (the default) is supported.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param publicKey The public key of the service, used to encrypt secrets sent to the service
         * 
         * @return builder
         * 
         */
        public Builder publicKey(@Nullable Output publicKey) {
            $.publicKey = publicKey;
            return this;
        }

        /**
         * @param publicKey The public key of the service, used to encrypt secrets sent to the service
         * 
         * @return builder
         * 
         */
        public Builder publicKey(String publicKey) {
            return publicKey(Output.of(publicKey));
        }

        /**
         * @param serviceName Name of the service
         * 
         * @return builder
         * 
         */
        public Builder serviceName(@Nullable Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName Name of the service
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param sku Service SKU
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku Service SKU
         * 
         * @return builder
         * 
         */
        public Builder sku(ServiceSkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param virtualNicId The ID of the Microsoft.Network/networkInterfaces resource which the service have
         * 
         * @return builder
         * 
         */
        public Builder virtualNicId(@Nullable Output virtualNicId) {
            $.virtualNicId = virtualNicId;
            return this;
        }

        /**
         * @param virtualNicId The ID of the Microsoft.Network/networkInterfaces resource which the service have
         * 
         * @return builder
         * 
         */
        public Builder virtualNicId(String virtualNicId) {
            return virtualNicId(Output.of(virtualNicId));
        }

        /**
         * @param virtualSubnetId The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined
         * 
         * @return builder
         * 
         */
        public Builder virtualSubnetId(Output virtualSubnetId) {
            $.virtualSubnetId = virtualSubnetId;
            return this;
        }

        /**
         * @param virtualSubnetId The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined
         * 
         * @return builder
         * 
         */
        public Builder virtualSubnetId(String virtualSubnetId) {
            return virtualSubnetId(Output.of(virtualSubnetId));
        }

        public ServiceArgs build() {
            if ($.groupName == null) {
                throw new MissingRequiredPropertyException("ServiceArgs", "groupName");
            }
            if ($.virtualSubnetId == null) {
                throw new MissingRequiredPropertyException("ServiceArgs", "virtualSubnetId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy