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

com.pulumi.spotinst.aws.outputs.ManagedInstanceMetadataOptions 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 ManagedInstanceMetadataOptions {
    private @Nullable Integer httpPutResponseHopLimit;
    private String httpTokens;
    private @Nullable String instanceMetadataTags;

    private ManagedInstanceMetadataOptions() {}
    public Optional httpPutResponseHopLimit() {
        return Optional.ofNullable(this.httpPutResponseHopLimit);
    }
    public String httpTokens() {
        return this.httpTokens;
    }
    public Optional instanceMetadataTags() {
        return Optional.ofNullable(this.instanceMetadataTags);
    }

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

    public static Builder builder(ManagedInstanceMetadataOptions 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(ManagedInstanceMetadataOptions 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("ManagedInstanceMetadataOptions", "httpTokens");
            }
            this.httpTokens = httpTokens;
            return this;
        }
        @CustomType.Setter
        public Builder instanceMetadataTags(@Nullable String instanceMetadataTags) {

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy