
com.pulumi.azurenative.managednetworkfabric.outputs.StatementActionPropertiesResponse 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.managednetworkfabric.outputs;
import com.pulumi.azurenative.managednetworkfabric.outputs.ActionIpCommunityPropertiesResponse;
import com.pulumi.azurenative.managednetworkfabric.outputs.ActionIpExtendedCommunityPropertiesResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class StatementActionPropertiesResponse {
/**
* @return action. Example: Permit | Deny.
*
*/
private String actionType;
/**
* @return IP Community Properties.
*
*/
private @Nullable ActionIpCommunityPropertiesResponse ipCommunityProperties;
/**
* @return IP Extended Community Properties.
*
*/
private @Nullable ActionIpExtendedCommunityPropertiesResponse ipExtendedCommunityProperties;
/**
* @return localPreference of the route policy.
*
*/
private @Nullable Double localPreference;
private StatementActionPropertiesResponse() {}
/**
* @return action. Example: Permit | Deny.
*
*/
public String actionType() {
return this.actionType;
}
/**
* @return IP Community Properties.
*
*/
public Optional ipCommunityProperties() {
return Optional.ofNullable(this.ipCommunityProperties);
}
/**
* @return IP Extended Community Properties.
*
*/
public Optional ipExtendedCommunityProperties() {
return Optional.ofNullable(this.ipExtendedCommunityProperties);
}
/**
* @return localPreference of the route policy.
*
*/
public Optional localPreference() {
return Optional.ofNullable(this.localPreference);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StatementActionPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String actionType;
private @Nullable ActionIpCommunityPropertiesResponse ipCommunityProperties;
private @Nullable ActionIpExtendedCommunityPropertiesResponse ipExtendedCommunityProperties;
private @Nullable Double localPreference;
public Builder() {}
public Builder(StatementActionPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.actionType = defaults.actionType;
this.ipCommunityProperties = defaults.ipCommunityProperties;
this.ipExtendedCommunityProperties = defaults.ipExtendedCommunityProperties;
this.localPreference = defaults.localPreference;
}
@CustomType.Setter
public Builder actionType(String actionType) {
if (actionType == null) {
throw new MissingRequiredPropertyException("StatementActionPropertiesResponse", "actionType");
}
this.actionType = actionType;
return this;
}
@CustomType.Setter
public Builder ipCommunityProperties(@Nullable ActionIpCommunityPropertiesResponse ipCommunityProperties) {
this.ipCommunityProperties = ipCommunityProperties;
return this;
}
@CustomType.Setter
public Builder ipExtendedCommunityProperties(@Nullable ActionIpExtendedCommunityPropertiesResponse ipExtendedCommunityProperties) {
this.ipExtendedCommunityProperties = ipExtendedCommunityProperties;
return this;
}
@CustomType.Setter
public Builder localPreference(@Nullable Double localPreference) {
this.localPreference = localPreference;
return this;
}
public StatementActionPropertiesResponse build() {
final var _resultValue = new StatementActionPropertiesResponse();
_resultValue.actionType = actionType;
_resultValue.ipCommunityProperties = ipCommunityProperties;
_resultValue.ipExtendedCommunityProperties = ipExtendedCommunityProperties;
_resultValue.localPreference = localPreference;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy