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

com.pulumi.aws.ecs.outputs.TaskSetServiceRegistries Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.ecs.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class TaskSetServiceRegistries {
    /**
     * @return The container name value, already specified in the task definition, to be used for your service discovery service.
     * 
     */
    private @Nullable String containerName;
    /**
     * @return The port value, already specified in the task definition, to be used for your service discovery service.
     * 
     */
    private @Nullable Integer containerPort;
    /**
     * @return The port value used if your Service Discovery service specified an SRV record.
     * 
     */
    private @Nullable Integer port;
    /**
     * @return The ARN of the Service Registry. The currently supported service registry is Amazon Route 53 Auto Naming Service(`aws.servicediscovery.Service` resource). For more information, see [Service](https://docs.aws.amazon.com/Route53/latest/APIReference/API_autonaming_Service.html).
     * 
     */
    private String registryArn;

    private TaskSetServiceRegistries() {}
    /**
     * @return The container name value, already specified in the task definition, to be used for your service discovery service.
     * 
     */
    public Optional containerName() {
        return Optional.ofNullable(this.containerName);
    }
    /**
     * @return The port value, already specified in the task definition, to be used for your service discovery service.
     * 
     */
    public Optional containerPort() {
        return Optional.ofNullable(this.containerPort);
    }
    /**
     * @return The port value used if your Service Discovery service specified an SRV record.
     * 
     */
    public Optional port() {
        return Optional.ofNullable(this.port);
    }
    /**
     * @return The ARN of the Service Registry. The currently supported service registry is Amazon Route 53 Auto Naming Service(`aws.servicediscovery.Service` resource). For more information, see [Service](https://docs.aws.amazon.com/Route53/latest/APIReference/API_autonaming_Service.html).
     * 
     */
    public String registryArn() {
        return this.registryArn;
    }

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

    public static Builder builder(TaskSetServiceRegistries defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String containerName;
        private @Nullable Integer containerPort;
        private @Nullable Integer port;
        private String registryArn;
        public Builder() {}
        public Builder(TaskSetServiceRegistries defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.containerName = defaults.containerName;
    	      this.containerPort = defaults.containerPort;
    	      this.port = defaults.port;
    	      this.registryArn = defaults.registryArn;
        }

        @CustomType.Setter
        public Builder containerName(@Nullable String containerName) {

            this.containerName = containerName;
            return this;
        }
        @CustomType.Setter
        public Builder containerPort(@Nullable Integer containerPort) {

            this.containerPort = containerPort;
            return this;
        }
        @CustomType.Setter
        public Builder port(@Nullable Integer port) {

            this.port = port;
            return this;
        }
        @CustomType.Setter
        public Builder registryArn(String registryArn) {
            if (registryArn == null) {
              throw new MissingRequiredPropertyException("TaskSetServiceRegistries", "registryArn");
            }
            this.registryArn = registryArn;
            return this;
        }
        public TaskSetServiceRegistries build() {
            final var _resultValue = new TaskSetServiceRegistries();
            _resultValue.containerName = containerName;
            _resultValue.containerPort = containerPort;
            _resultValue.port = port;
            _resultValue.registryArn = registryArn;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy