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

com.pulumi.spotinst.aws.outputs.ElastigroupMetadataOptions Maven / Gradle / Ivy

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.spotinst.aws.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 ElastigroupMetadataOptions {
    /**
     * @return The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Valid values: Integers from `1` to `64`.
     * 
     */
    private @Nullable Integer httpPutResponseHopLimit;
    /**
     * @return The state of token usage for your instance metadata requests. Valid values: `optional` or `required`.
     * 
     */
    private String httpTokens;
    /**
     * @return Indicates whether access to instance tags from the instance metadata is enabled or disabled. Can’t be null.
     * 
     */
    private @Nullable String instanceMetadataTags;

    private ElastigroupMetadataOptions() {}
    /**
     * @return The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Valid values: Integers from `1` to `64`.
     * 
     */
    public Optional httpPutResponseHopLimit() {
        return Optional.ofNullable(this.httpPutResponseHopLimit);
    }
    /**
     * @return The state of token usage for your instance metadata requests. Valid values: `optional` or `required`.
     * 
     */
    public String httpTokens() {
        return this.httpTokens;
    }
    /**
     * @return Indicates whether access to instance tags from the instance metadata is enabled or disabled. Can’t be null.
     * 
     */
    public Optional instanceMetadataTags() {
        return Optional.ofNullable(this.instanceMetadataTags);
    }

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

    public static Builder builder(ElastigroupMetadataOptions defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer httpPutResponseHopLimit;
        private String httpTokens;
        private @Nullable String instanceMetadataTags;
        public Builder() {}
        public Builder(ElastigroupMetadataOptions defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.httpPutResponseHopLimit = defaults.httpPutResponseHopLimit;
    	      this.httpTokens = defaults.httpTokens;
    	      this.instanceMetadataTags = defaults.instanceMetadataTags;
        }

        @CustomType.Setter
        public Builder httpPutResponseHopLimit(@Nullable Integer httpPutResponseHopLimit) {

            this.httpPutResponseHopLimit = httpPutResponseHopLimit;
            return this;
        }
        @CustomType.Setter
        public Builder httpTokens(String httpTokens) {
            if (httpTokens == null) {
              throw new MissingRequiredPropertyException("ElastigroupMetadataOptions", "httpTokens");
            }
            this.httpTokens = httpTokens;
            return this;
        }
        @CustomType.Setter
        public Builder instanceMetadataTags(@Nullable String instanceMetadataTags) {

            this.instanceMetadataTags = instanceMetadataTags;
            return this;
        }
        public ElastigroupMetadataOptions build() {
            final var _resultValue = new ElastigroupMetadataOptions();
            _resultValue.httpPutResponseHopLimit = httpPutResponseHopLimit;
            _resultValue.httpTokens = httpTokens;
            _resultValue.instanceMetadataTags = instanceMetadataTags;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy