
com.pulumi.azurenative.awsconnector.outputs.TaskDefinitionPlacementConstraintResponse 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.awsconnector.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TaskDefinitionPlacementConstraintResponse {
/**
* @return A cluster query language expression to apply to the constraint. For more information, see [Cluster query language](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html) in the *Amazon Elastic Container Service Developer Guide*.
*
*/
private @Nullable String expression;
/**
* @return The type of constraint. The ``MemberOf`` constraint restricts selection to be from a group of valid candidates.
*
*/
private @Nullable String type;
private TaskDefinitionPlacementConstraintResponse() {}
/**
* @return A cluster query language expression to apply to the constraint. For more information, see [Cluster query language](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html) in the *Amazon Elastic Container Service Developer Guide*.
*
*/
public Optional expression() {
return Optional.ofNullable(this.expression);
}
/**
* @return The type of constraint. The ``MemberOf`` constraint restricts selection to be from a group of valid candidates.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TaskDefinitionPlacementConstraintResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String expression;
private @Nullable String type;
public Builder() {}
public Builder(TaskDefinitionPlacementConstraintResponse defaults) {
Objects.requireNonNull(defaults);
this.expression = defaults.expression;
this.type = defaults.type;
}
@CustomType.Setter
public Builder expression(@Nullable String expression) {
this.expression = expression;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public TaskDefinitionPlacementConstraintResponse build() {
final var _resultValue = new TaskDefinitionPlacementConstraintResponse();
_resultValue.expression = expression;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy