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

com.pulumi.aws.msk.outputs.GetConfigurationResult Maven / Gradle / Ivy

// *** 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.msk.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetConfigurationResult {
    /**
     * @return ARN of the configuration.
     * 
     */
    private String arn;
    /**
     * @return Description of the configuration.
     * 
     */
    private String description;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return List of Apache Kafka versions which can use this configuration.
     * 
     */
    private List kafkaVersions;
    /**
     * @return Latest revision of the configuration.
     * 
     */
    private Integer latestRevision;
    private String name;
    /**
     * @return Contents of the server.properties file.
     * 
     */
    private String serverProperties;

    private GetConfigurationResult() {}
    /**
     * @return ARN of the configuration.
     * 
     */
    public String arn() {
        return this.arn;
    }
    /**
     * @return Description of the configuration.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return List of Apache Kafka versions which can use this configuration.
     * 
     */
    public List kafkaVersions() {
        return this.kafkaVersions;
    }
    /**
     * @return Latest revision of the configuration.
     * 
     */
    public Integer latestRevision() {
        return this.latestRevision;
    }
    public String name() {
        return this.name;
    }
    /**
     * @return Contents of the server.properties file.
     * 
     */
    public String serverProperties() {
        return this.serverProperties;
    }

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

    public static Builder builder(GetConfigurationResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String arn;
        private String description;
        private String id;
        private List kafkaVersions;
        private Integer latestRevision;
        private String name;
        private String serverProperties;
        public Builder() {}
        public Builder(GetConfigurationResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arn = defaults.arn;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.kafkaVersions = defaults.kafkaVersions;
    	      this.latestRevision = defaults.latestRevision;
    	      this.name = defaults.name;
    	      this.serverProperties = defaults.serverProperties;
        }

        @CustomType.Setter
        public Builder arn(String arn) {
            if (arn == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "arn");
            }
            this.arn = arn;
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder kafkaVersions(List kafkaVersions) {
            if (kafkaVersions == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "kafkaVersions");
            }
            this.kafkaVersions = kafkaVersions;
            return this;
        }
        public Builder kafkaVersions(String... kafkaVersions) {
            return kafkaVersions(List.of(kafkaVersions));
        }
        @CustomType.Setter
        public Builder latestRevision(Integer latestRevision) {
            if (latestRevision == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "latestRevision");
            }
            this.latestRevision = latestRevision;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder serverProperties(String serverProperties) {
            if (serverProperties == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "serverProperties");
            }
            this.serverProperties = serverProperties;
            return this;
        }
        public GetConfigurationResult build() {
            final var _resultValue = new GetConfigurationResult();
            _resultValue.arn = arn;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.kafkaVersions = kafkaVersions;
            _resultValue.latestRevision = latestRevision;
            _resultValue.name = name;
            _resultValue.serverProperties = serverProperties;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy