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

com.pulumi.aws.gamelift.inputs.GameSessionQueueState 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.gamelift.inputs;

import com.pulumi.aws.gamelift.inputs.GameSessionQueuePlayerLatencyPolicyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GameSessionQueueState Empty = new GameSessionQueueState();

    /**
     * Game Session Queue ARN.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return Game Session Queue ARN.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * Information to be added to all events that are related to this game session queue.
     * 
     */
    @Import(name="customEventData")
    private @Nullable Output customEventData;

    /**
     * @return Information to be added to all events that are related to this game session queue.
     * 
     */
    public Optional> customEventData() {
        return Optional.ofNullable(this.customEventData);
    }

    /**
     * List of fleet/alias ARNs used by session queue for placing game sessions.
     * 
     */
    @Import(name="destinations")
    private @Nullable Output> destinations;

    /**
     * @return List of fleet/alias ARNs used by session queue for placing game sessions.
     * 
     */
    public Optional>> destinations() {
        return Optional.ofNullable(this.destinations);
    }

    /**
     * Name of the session queue.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the session queue.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * An SNS topic ARN that is set up to receive game session placement notifications.
     * 
     */
    @Import(name="notificationTarget")
    private @Nullable Output notificationTarget;

    /**
     * @return An SNS topic ARN that is set up to receive game session placement notifications.
     * 
     */
    public Optional> notificationTarget() {
        return Optional.ofNullable(this.notificationTarget);
    }

    /**
     * One or more policies used to choose fleet based on player latency. See below.
     * 
     */
    @Import(name="playerLatencyPolicies")
    private @Nullable Output> playerLatencyPolicies;

    /**
     * @return One or more policies used to choose fleet based on player latency. See below.
     * 
     */
    public Optional>> playerLatencyPolicies() {
        return Optional.ofNullable(this.playerLatencyPolicies);
    }

    /**
     * Key-value map of resource tags. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Key-value map of resource tags. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Import(name="tagsAll")
    private @Nullable Output> tagsAll;

    /**
     * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    public Optional>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

    /**
     * Maximum time a game session request can remain in the queue.
     * 
     */
    @Import(name="timeoutInSeconds")
    private @Nullable Output timeoutInSeconds;

    /**
     * @return Maximum time a game session request can remain in the queue.
     * 
     */
    public Optional> timeoutInSeconds() {
        return Optional.ofNullable(this.timeoutInSeconds);
    }

    private GameSessionQueueState() {}

    private GameSessionQueueState(GameSessionQueueState $) {
        this.arn = $.arn;
        this.customEventData = $.customEventData;
        this.destinations = $.destinations;
        this.name = $.name;
        this.notificationTarget = $.notificationTarget;
        this.playerLatencyPolicies = $.playerLatencyPolicies;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
        this.timeoutInSeconds = $.timeoutInSeconds;
    }

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

    public static final class Builder {
        private GameSessionQueueState $;

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

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

        /**
         * @param arn Game Session Queue ARN.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn Game Session Queue ARN.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param customEventData Information to be added to all events that are related to this game session queue.
         * 
         * @return builder
         * 
         */
        public Builder customEventData(@Nullable Output customEventData) {
            $.customEventData = customEventData;
            return this;
        }

        /**
         * @param customEventData Information to be added to all events that are related to this game session queue.
         * 
         * @return builder
         * 
         */
        public Builder customEventData(String customEventData) {
            return customEventData(Output.of(customEventData));
        }

        /**
         * @param destinations List of fleet/alias ARNs used by session queue for placing game sessions.
         * 
         * @return builder
         * 
         */
        public Builder destinations(@Nullable Output> destinations) {
            $.destinations = destinations;
            return this;
        }

        /**
         * @param destinations List of fleet/alias ARNs used by session queue for placing game sessions.
         * 
         * @return builder
         * 
         */
        public Builder destinations(List destinations) {
            return destinations(Output.of(destinations));
        }

        /**
         * @param destinations List of fleet/alias ARNs used by session queue for placing game sessions.
         * 
         * @return builder
         * 
         */
        public Builder destinations(String... destinations) {
            return destinations(List.of(destinations));
        }

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

        /**
         * @param name Name of the session queue.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param notificationTarget An SNS topic ARN that is set up to receive game session placement notifications.
         * 
         * @return builder
         * 
         */
        public Builder notificationTarget(@Nullable Output notificationTarget) {
            $.notificationTarget = notificationTarget;
            return this;
        }

        /**
         * @param notificationTarget An SNS topic ARN that is set up to receive game session placement notifications.
         * 
         * @return builder
         * 
         */
        public Builder notificationTarget(String notificationTarget) {
            return notificationTarget(Output.of(notificationTarget));
        }

        /**
         * @param playerLatencyPolicies One or more policies used to choose fleet based on player latency. See below.
         * 
         * @return builder
         * 
         */
        public Builder playerLatencyPolicies(@Nullable Output> playerLatencyPolicies) {
            $.playerLatencyPolicies = playerLatencyPolicies;
            return this;
        }

        /**
         * @param playerLatencyPolicies One or more policies used to choose fleet based on player latency. See below.
         * 
         * @return builder
         * 
         */
        public Builder playerLatencyPolicies(List playerLatencyPolicies) {
            return playerLatencyPolicies(Output.of(playerLatencyPolicies));
        }

        /**
         * @param playerLatencyPolicies One or more policies used to choose fleet based on player latency. See below.
         * 
         * @return builder
         * 
         */
        public Builder playerLatencyPolicies(GameSessionQueuePlayerLatencyPolicyArgs... playerLatencyPolicies) {
            return playerLatencyPolicies(List.of(playerLatencyPolicies));
        }

        /**
         * @param tags Key-value map of resource tags. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value map of resource tags. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(@Nullable Output> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(Map tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

        /**
         * @param timeoutInSeconds Maximum time a game session request can remain in the queue.
         * 
         * @return builder
         * 
         */
        public Builder timeoutInSeconds(@Nullable Output timeoutInSeconds) {
            $.timeoutInSeconds = timeoutInSeconds;
            return this;
        }

        /**
         * @param timeoutInSeconds Maximum time a game session request can remain in the queue.
         * 
         * @return builder
         * 
         */
        public Builder timeoutInSeconds(Integer timeoutInSeconds) {
            return timeoutInSeconds(Output.of(timeoutInSeconds));
        }

        public GameSessionQueueState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy