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

com.pulumi.aws.gamelift.outputs.GameServerGroupInstanceDefinition Maven / Gradle / Ivy

Go to download

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

The 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.outputs;

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

@CustomType
public final class GameServerGroupInstanceDefinition {
    /**
     * @return An EC2 instance type.
     * 
     */
    private String instanceType;
    /**
     * @return Instance weighting that indicates how much this instance type contributes
     * to the total capacity of a game server group.
     * Instance weights are used by GameLift FleetIQ to calculate the instance type's cost per unit hour and better identify
     * the most cost-effective options.
     * 
     */
    private @Nullable String weightedCapacity;

    private GameServerGroupInstanceDefinition() {}
    /**
     * @return An EC2 instance type.
     * 
     */
    public String instanceType() {
        return this.instanceType;
    }
    /**
     * @return Instance weighting that indicates how much this instance type contributes
     * to the total capacity of a game server group.
     * Instance weights are used by GameLift FleetIQ to calculate the instance type's cost per unit hour and better identify
     * the most cost-effective options.
     * 
     */
    public Optional weightedCapacity() {
        return Optional.ofNullable(this.weightedCapacity);
    }

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

    public static Builder builder(GameServerGroupInstanceDefinition defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String instanceType;
        private @Nullable String weightedCapacity;
        public Builder() {}
        public Builder(GameServerGroupInstanceDefinition defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.instanceType = defaults.instanceType;
    	      this.weightedCapacity = defaults.weightedCapacity;
        }

        @CustomType.Setter
        public Builder instanceType(String instanceType) {
            if (instanceType == null) {
              throw new MissingRequiredPropertyException("GameServerGroupInstanceDefinition", "instanceType");
            }
            this.instanceType = instanceType;
            return this;
        }
        @CustomType.Setter
        public Builder weightedCapacity(@Nullable String weightedCapacity) {

            this.weightedCapacity = weightedCapacity;
            return this;
        }
        public GameServerGroupInstanceDefinition build() {
            final var _resultValue = new GameServerGroupInstanceDefinition();
            _resultValue.instanceType = instanceType;
            _resultValue.weightedCapacity = weightedCapacity;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy