com.pulumi.azure.iot.inputs.SecurityDeviceGroupRangeRuleArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.iot.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
public final class SecurityDeviceGroupRangeRuleArgs extends com.pulumi.resources.ResourceArgs {
public static final SecurityDeviceGroupRangeRuleArgs Empty = new SecurityDeviceGroupRangeRuleArgs();
/**
* Specifies the time range. represented in ISO 8601 duration format.
*
*/
@Import(name="duration", required=true)
private Output duration;
/**
* @return Specifies the time range. represented in ISO 8601 duration format.
*
*/
public Output duration() {
return this.duration;
}
/**
* The maximum threshold in the given time window.
*
*/
@Import(name="max", required=true)
private Output max;
/**
* @return The maximum threshold in the given time window.
*
*/
public Output max() {
return this.max;
}
/**
* The minimum threshold in the given time window.
*
*/
@Import(name="min", required=true)
private Output min;
/**
* @return The minimum threshold in the given time window.
*
*/
public Output min() {
return this.min;
}
/**
* The type of supported rule type. Possible Values are `ActiveConnectionsNotInAllowedRange`, `AmqpC2DMessagesNotInAllowedRange`, `MqttC2DMessagesNotInAllowedRange`, `HttpC2DMessagesNotInAllowedRange`, `AmqpC2DRejectedMessagesNotInAllowedRange`, `MqttC2DRejectedMessagesNotInAllowedRange`, `HttpC2DRejectedMessagesNotInAllowedRange`, `AmqpD2CMessagesNotInAllowedRange`, `MqttD2CMessagesNotInAllowedRange`, `HttpD2CMessagesNotInAllowedRange`, `DirectMethodInvokesNotInAllowedRange`, `FailedLocalLoginsNotInAllowedRange`, `FileUploadsNotInAllowedRange`, `QueuePurgesNotInAllowedRange`, `TwinUpdatesNotInAllowedRange` and `UnauthorizedOperationsNotInAllowedRange`.
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return The type of supported rule type. Possible Values are `ActiveConnectionsNotInAllowedRange`, `AmqpC2DMessagesNotInAllowedRange`, `MqttC2DMessagesNotInAllowedRange`, `HttpC2DMessagesNotInAllowedRange`, `AmqpC2DRejectedMessagesNotInAllowedRange`, `MqttC2DRejectedMessagesNotInAllowedRange`, `HttpC2DRejectedMessagesNotInAllowedRange`, `AmqpD2CMessagesNotInAllowedRange`, `MqttD2CMessagesNotInAllowedRange`, `HttpD2CMessagesNotInAllowedRange`, `DirectMethodInvokesNotInAllowedRange`, `FailedLocalLoginsNotInAllowedRange`, `FileUploadsNotInAllowedRange`, `QueuePurgesNotInAllowedRange`, `TwinUpdatesNotInAllowedRange` and `UnauthorizedOperationsNotInAllowedRange`.
*
*/
public Output type() {
return this.type;
}
private SecurityDeviceGroupRangeRuleArgs() {}
private SecurityDeviceGroupRangeRuleArgs(SecurityDeviceGroupRangeRuleArgs $) {
this.duration = $.duration;
this.max = $.max;
this.min = $.min;
this.type = $.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SecurityDeviceGroupRangeRuleArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private SecurityDeviceGroupRangeRuleArgs $;
public Builder() {
$ = new SecurityDeviceGroupRangeRuleArgs();
}
public Builder(SecurityDeviceGroupRangeRuleArgs defaults) {
$ = new SecurityDeviceGroupRangeRuleArgs(Objects.requireNonNull(defaults));
}
/**
* @param duration Specifies the time range. represented in ISO 8601 duration format.
*
* @return builder
*
*/
public Builder duration(Output duration) {
$.duration = duration;
return this;
}
/**
* @param duration Specifies the time range. represented in ISO 8601 duration format.
*
* @return builder
*
*/
public Builder duration(String duration) {
return duration(Output.of(duration));
}
/**
* @param max The maximum threshold in the given time window.
*
* @return builder
*
*/
public Builder max(Output max) {
$.max = max;
return this;
}
/**
* @param max The maximum threshold in the given time window.
*
* @return builder
*
*/
public Builder max(Integer max) {
return max(Output.of(max));
}
/**
* @param min The minimum threshold in the given time window.
*
* @return builder
*
*/
public Builder min(Output min) {
$.min = min;
return this;
}
/**
* @param min The minimum threshold in the given time window.
*
* @return builder
*
*/
public Builder min(Integer min) {
return min(Output.of(min));
}
/**
* @param type The type of supported rule type. Possible Values are `ActiveConnectionsNotInAllowedRange`, `AmqpC2DMessagesNotInAllowedRange`, `MqttC2DMessagesNotInAllowedRange`, `HttpC2DMessagesNotInAllowedRange`, `AmqpC2DRejectedMessagesNotInAllowedRange`, `MqttC2DRejectedMessagesNotInAllowedRange`, `HttpC2DRejectedMessagesNotInAllowedRange`, `AmqpD2CMessagesNotInAllowedRange`, `MqttD2CMessagesNotInAllowedRange`, `HttpD2CMessagesNotInAllowedRange`, `DirectMethodInvokesNotInAllowedRange`, `FailedLocalLoginsNotInAllowedRange`, `FileUploadsNotInAllowedRange`, `QueuePurgesNotInAllowedRange`, `TwinUpdatesNotInAllowedRange` and `UnauthorizedOperationsNotInAllowedRange`.
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type The type of supported rule type. Possible Values are `ActiveConnectionsNotInAllowedRange`, `AmqpC2DMessagesNotInAllowedRange`, `MqttC2DMessagesNotInAllowedRange`, `HttpC2DMessagesNotInAllowedRange`, `AmqpC2DRejectedMessagesNotInAllowedRange`, `MqttC2DRejectedMessagesNotInAllowedRange`, `HttpC2DRejectedMessagesNotInAllowedRange`, `AmqpD2CMessagesNotInAllowedRange`, `MqttD2CMessagesNotInAllowedRange`, `HttpD2CMessagesNotInAllowedRange`, `DirectMethodInvokesNotInAllowedRange`, `FailedLocalLoginsNotInAllowedRange`, `FileUploadsNotInAllowedRange`, `QueuePurgesNotInAllowedRange`, `TwinUpdatesNotInAllowedRange` and `UnauthorizedOperationsNotInAllowedRange`.
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
public SecurityDeviceGroupRangeRuleArgs build() {
if ($.duration == null) {
throw new MissingRequiredPropertyException("SecurityDeviceGroupRangeRuleArgs", "duration");
}
if ($.max == null) {
throw new MissingRequiredPropertyException("SecurityDeviceGroupRangeRuleArgs", "max");
}
if ($.min == null) {
throw new MissingRequiredPropertyException("SecurityDeviceGroupRangeRuleArgs", "min");
}
if ($.type == null) {
throw new MissingRequiredPropertyException("SecurityDeviceGroupRangeRuleArgs", "type");
}
return $;
}
}
}