
com.pulumi.azurenative.appcomplianceautomation.outputs.ScopingQuestionResponse 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 ScopingQuestionResponse {
/**
* @return Input type of the question answer.
*
*/
private String inputType;
/**
* @return Option id list.
*
*/
private List optionIds;
/**
* @return Question id.
*
*/
private String questionId;
/**
* @return The rule of the question.
*
*/
private List rules;
/**
* @return The answer value to show the sub questions.
*
*/
private String showSubQuestionsValue;
/**
* @return Superior question id.
*
*/
private String superiorQuestionId;
private ScopingQuestionResponse() {}
/**
* @return Input type of the question answer.
*
*/
public String inputType() {
return this.inputType;
}
/**
* @return Option id list.
*
*/
public List optionIds() {
return this.optionIds;
}
/**
* @return Question id.
*
*/
public String questionId() {
return this.questionId;
}
/**
* @return The rule of the question.
*
*/
public List rules() {
return this.rules;
}
/**
* @return The answer value to show the sub questions.
*
*/
public String showSubQuestionsValue() {
return this.showSubQuestionsValue;
}
/**
* @return Superior question id.
*
*/
public String superiorQuestionId() {
return this.superiorQuestionId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScopingQuestionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String inputType;
private List optionIds;
private String questionId;
private List rules;
private String showSubQuestionsValue;
private String superiorQuestionId;
public Builder() {}
public Builder(ScopingQuestionResponse defaults) {
Objects.requireNonNull(defaults);
this.inputType = defaults.inputType;
this.optionIds = defaults.optionIds;
this.questionId = defaults.questionId;
this.rules = defaults.rules;
this.showSubQuestionsValue = defaults.showSubQuestionsValue;
this.superiorQuestionId = defaults.superiorQuestionId;
}
@CustomType.Setter
public Builder inputType(String inputType) {
if (inputType == null) {
throw new MissingRequiredPropertyException("ScopingQuestionResponse", "inputType");
}
this.inputType = inputType;
return this;
}
@CustomType.Setter
public Builder optionIds(List optionIds) {
if (optionIds == null) {
throw new MissingRequiredPropertyException("ScopingQuestionResponse", "optionIds");
}
this.optionIds = optionIds;
return this;
}
public Builder optionIds(String... optionIds) {
return optionIds(List.of(optionIds));
}
@CustomType.Setter
public Builder questionId(String questionId) {
if (questionId == null) {
throw new MissingRequiredPropertyException("ScopingQuestionResponse", "questionId");
}
this.questionId = questionId;
return this;
}
@CustomType.Setter
public Builder rules(List rules) {
if (rules == null) {
throw new MissingRequiredPropertyException("ScopingQuestionResponse", "rules");
}
this.rules = rules;
return this;
}
public Builder rules(String... rules) {
return rules(List.of(rules));
}
@CustomType.Setter
public Builder showSubQuestionsValue(String showSubQuestionsValue) {
if (showSubQuestionsValue == null) {
throw new MissingRequiredPropertyException("ScopingQuestionResponse", "showSubQuestionsValue");
}
this.showSubQuestionsValue = showSubQuestionsValue;
return this;
}
@CustomType.Setter
public Builder superiorQuestionId(String superiorQuestionId) {
if (superiorQuestionId == null) {
throw new MissingRequiredPropertyException("ScopingQuestionResponse", "superiorQuestionId");
}
this.superiorQuestionId = superiorQuestionId;
return this;
}
public ScopingQuestionResponse build() {
final var _resultValue = new ScopingQuestionResponse();
_resultValue.inputType = inputType;
_resultValue.optionIds = optionIds;
_resultValue.questionId = questionId;
_resultValue.rules = rules;
_resultValue.showSubQuestionsValue = showSubQuestionsValue;
_resultValue.superiorQuestionId = superiorQuestionId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy