
com.pulumi.azurenative.appcomplianceautomation.outputs.ScopingAnswerResponse 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.azurenative.appcomplianceautomation.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class ScopingAnswerResponse {
/**
* @return Question answer value list.
*
*/
private List answers;
/**
* @return Question id.
*
*/
private String questionId;
private ScopingAnswerResponse() {}
/**
* @return Question answer value list.
*
*/
public List answers() {
return this.answers;
}
/**
* @return Question id.
*
*/
public String questionId() {
return this.questionId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScopingAnswerResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List answers;
private String questionId;
public Builder() {}
public Builder(ScopingAnswerResponse defaults) {
Objects.requireNonNull(defaults);
this.answers = defaults.answers;
this.questionId = defaults.questionId;
}
@CustomType.Setter
public Builder answers(List answers) {
if (answers == null) {
throw new MissingRequiredPropertyException("ScopingAnswerResponse", "answers");
}
this.answers = answers;
return this;
}
public Builder answers(String... answers) {
return answers(List.of(answers));
}
@CustomType.Setter
public Builder questionId(String questionId) {
if (questionId == null) {
throw new MissingRequiredPropertyException("ScopingAnswerResponse", "questionId");
}
this.questionId = questionId;
return this;
}
public ScopingAnswerResponse build() {
final var _resultValue = new ScopingAnswerResponse();
_resultValue.answers = answers;
_resultValue.questionId = questionId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy