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

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

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 MatchmakingRuleSetArgs extends com.pulumi.resources.ResourceArgs {

    public static final MatchmakingRuleSetArgs Empty = new MatchmakingRuleSetArgs();

    /**
     * Name of the matchmaking rule set.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the matchmaking rule set.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * JSON encoded string containing rule set data.
     * 
     */
    @Import(name="ruleSetBody", required=true)
    private Output ruleSetBody;

    /**
     * @return JSON encoded string containing rule set data.
     * 
     */
    public Output ruleSetBody() {
        return this.ruleSetBody;
    }

    @Import(name="tags")
    private @Nullable Output> tags;

    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private MatchmakingRuleSetArgs() {}

    private MatchmakingRuleSetArgs(MatchmakingRuleSetArgs $) {
        this.name = $.name;
        this.ruleSetBody = $.ruleSetBody;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private MatchmakingRuleSetArgs $;

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

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

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

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

        /**
         * @param ruleSetBody JSON encoded string containing rule set data.
         * 
         * @return builder
         * 
         */
        public Builder ruleSetBody(Output ruleSetBody) {
            $.ruleSetBody = ruleSetBody;
            return this;
        }

        /**
         * @param ruleSetBody JSON encoded string containing rule set data.
         * 
         * @return builder
         * 
         */
        public Builder ruleSetBody(String ruleSetBody) {
            return ruleSetBody(Output.of(ruleSetBody));
        }

        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public MatchmakingRuleSetArgs build() {
            if ($.ruleSetBody == null) {
                throw new MissingRequiredPropertyException("MatchmakingRuleSetArgs", "ruleSetBody");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy