
com.pulumi.azurenative.servicebus.outputs.GetRuleResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.servicebus.outputs;
import com.pulumi.azurenative.servicebus.outputs.ActionResponse;
import com.pulumi.azurenative.servicebus.outputs.CorrelationFilterResponse;
import com.pulumi.azurenative.servicebus.outputs.SqlFilterResponse;
import com.pulumi.azurenative.servicebus.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetRuleResult {
/**
* @return Represents the filter actions which are allowed for the transformation of a message that have been matched by a filter expression.
*
*/
private @Nullable ActionResponse action;
/**
* @return Properties of correlationFilter
*
*/
private @Nullable CorrelationFilterResponse correlationFilter;
/**
* @return Filter type that is evaluated against a BrokeredMessage.
*
*/
private @Nullable String filterType;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return The geo-location where the resource lives
*
*/
private String location;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return Properties of sqlFilter
*
*/
private @Nullable SqlFilterResponse sqlFilter;
/**
* @return The system meta data relating to this resource.
*
*/
private SystemDataResponse systemData;
/**
* @return The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
*
*/
private String type;
private GetRuleResult() {}
/**
* @return Represents the filter actions which are allowed for the transformation of a message that have been matched by a filter expression.
*
*/
public Optional action() {
return Optional.ofNullable(this.action);
}
/**
* @return Properties of correlationFilter
*
*/
public Optional correlationFilter() {
return Optional.ofNullable(this.correlationFilter);
}
/**
* @return Filter type that is evaluated against a BrokeredMessage.
*
*/
public Optional filterType() {
return Optional.ofNullable(this.filterType);
}
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
public String id() {
return this.id;
}
/**
* @return The geo-location where the resource lives
*
*/
public String location() {
return this.location;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return Properties of sqlFilter
*
*/
public Optional sqlFilter() {
return Optional.ofNullable(this.sqlFilter);
}
/**
* @return The system meta data relating to this resource.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRuleResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ActionResponse action;
private @Nullable CorrelationFilterResponse correlationFilter;
private @Nullable String filterType;
private String id;
private String location;
private String name;
private @Nullable SqlFilterResponse sqlFilter;
private SystemDataResponse systemData;
private String type;
public Builder() {}
public Builder(GetRuleResult defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.correlationFilter = defaults.correlationFilter;
this.filterType = defaults.filterType;
this.id = defaults.id;
this.location = defaults.location;
this.name = defaults.name;
this.sqlFilter = defaults.sqlFilter;
this.systemData = defaults.systemData;
this.type = defaults.type;
}
@CustomType.Setter
public Builder action(@Nullable ActionResponse action) {
this.action = action;
return this;
}
@CustomType.Setter
public Builder correlationFilter(@Nullable CorrelationFilterResponse correlationFilter) {
this.correlationFilter = correlationFilter;
return this;
}
@CustomType.Setter
public Builder filterType(@Nullable String filterType) {
this.filterType = filterType;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetRuleResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetRuleResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetRuleResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder sqlFilter(@Nullable SqlFilterResponse sqlFilter) {
this.sqlFilter = sqlFilter;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetRuleResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetRuleResult", "type");
}
this.type = type;
return this;
}
public GetRuleResult build() {
final var _resultValue = new GetRuleResult();
_resultValue.action = action;
_resultValue.correlationFilter = correlationFilter;
_resultValue.filterType = filterType;
_resultValue.id = id;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.sqlFilter = sqlFilter;
_resultValue.systemData = systemData;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy