com.pulumi.aws.bedrockfoundation.outputs.GetModelsResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.bedrockfoundation.outputs;
import com.pulumi.aws.bedrockfoundation.outputs.GetModelsModelSummary;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetModelsResult {
private @Nullable String byCustomizationType;
private @Nullable String byInferenceType;
private @Nullable String byOutputModality;
private @Nullable String byProvider;
/**
* @return AWS region.
*
*/
private String id;
/**
* @return List of model summary objects. See `model_summaries`.
*
*/
private List modelSummaries;
private GetModelsResult() {}
public Optional byCustomizationType() {
return Optional.ofNullable(this.byCustomizationType);
}
public Optional byInferenceType() {
return Optional.ofNullable(this.byInferenceType);
}
public Optional byOutputModality() {
return Optional.ofNullable(this.byOutputModality);
}
public Optional byProvider() {
return Optional.ofNullable(this.byProvider);
}
/**
* @return AWS region.
*
*/
public String id() {
return this.id;
}
/**
* @return List of model summary objects. See `model_summaries`.
*
*/
public List modelSummaries() {
return this.modelSummaries;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetModelsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String byCustomizationType;
private @Nullable String byInferenceType;
private @Nullable String byOutputModality;
private @Nullable String byProvider;
private String id;
private List modelSummaries;
public Builder() {}
public Builder(GetModelsResult defaults) {
Objects.requireNonNull(defaults);
this.byCustomizationType = defaults.byCustomizationType;
this.byInferenceType = defaults.byInferenceType;
this.byOutputModality = defaults.byOutputModality;
this.byProvider = defaults.byProvider;
this.id = defaults.id;
this.modelSummaries = defaults.modelSummaries;
}
@CustomType.Setter
public Builder byCustomizationType(@Nullable String byCustomizationType) {
this.byCustomizationType = byCustomizationType;
return this;
}
@CustomType.Setter
public Builder byInferenceType(@Nullable String byInferenceType) {
this.byInferenceType = byInferenceType;
return this;
}
@CustomType.Setter
public Builder byOutputModality(@Nullable String byOutputModality) {
this.byOutputModality = byOutputModality;
return this;
}
@CustomType.Setter
public Builder byProvider(@Nullable String byProvider) {
this.byProvider = byProvider;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetModelsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder modelSummaries(List modelSummaries) {
if (modelSummaries == null) {
throw new MissingRequiredPropertyException("GetModelsResult", "modelSummaries");
}
this.modelSummaries = modelSummaries;
return this;
}
public Builder modelSummaries(GetModelsModelSummary... modelSummaries) {
return modelSummaries(List.of(modelSummaries));
}
public GetModelsResult build() {
final var _resultValue = new GetModelsResult();
_resultValue.byCustomizationType = byCustomizationType;
_resultValue.byInferenceType = byInferenceType;
_resultValue.byOutputModality = byOutputModality;
_resultValue.byProvider = byProvider;
_resultValue.id = id;
_resultValue.modelSummaries = modelSummaries;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy