public interface TerraformVariableValidationOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getCondition()
public abstract String getCondition()Optional. The HCL expression for the validation condition (e.g., "length(var.image_id) > 4").
string condition = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The condition. |
getConditionBytes()
public abstract ByteString getConditionBytes()Optional. The HCL expression for the validation condition (e.g., "length(var.image_id) > 4").
string condition = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for condition. |
getErrorMessage()
public abstract String getErrorMessage()Optional. The error message displayed when the condition is false.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The errorMessage. |
getErrorMessageBytes()
public abstract ByteString getErrorMessageBytes()Optional. The error message displayed when the condition is false.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for errorMessage. |