com.pulumi.azurenative.devices.outputs.CloudToDevicePropertiesResponse 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.devices.outputs;
import com.pulumi.azurenative.devices.outputs.FeedbackPropertiesResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CloudToDevicePropertiesResponse {
/**
* @return The default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
*
*/
private @Nullable String defaultTtlAsIso8601;
/**
* @return The properties of the feedback queue for cloud-to-device messages.
*
*/
private @Nullable FeedbackPropertiesResponse feedback;
/**
* @return The max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
*
*/
private @Nullable Integer maxDeliveryCount;
private CloudToDevicePropertiesResponse() {}
/**
* @return The default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
*
*/
public Optional defaultTtlAsIso8601() {
return Optional.ofNullable(this.defaultTtlAsIso8601);
}
/**
* @return The properties of the feedback queue for cloud-to-device messages.
*
*/
public Optional feedback() {
return Optional.ofNullable(this.feedback);
}
/**
* @return The max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
*
*/
public Optional maxDeliveryCount() {
return Optional.ofNullable(this.maxDeliveryCount);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CloudToDevicePropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String defaultTtlAsIso8601;
private @Nullable FeedbackPropertiesResponse feedback;
private @Nullable Integer maxDeliveryCount;
public Builder() {}
public Builder(CloudToDevicePropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.defaultTtlAsIso8601 = defaults.defaultTtlAsIso8601;
this.feedback = defaults.feedback;
this.maxDeliveryCount = defaults.maxDeliveryCount;
}
@CustomType.Setter
public Builder defaultTtlAsIso8601(@Nullable String defaultTtlAsIso8601) {
this.defaultTtlAsIso8601 = defaultTtlAsIso8601;
return this;
}
@CustomType.Setter
public Builder feedback(@Nullable FeedbackPropertiesResponse feedback) {
this.feedback = feedback;
return this;
}
@CustomType.Setter
public Builder maxDeliveryCount(@Nullable Integer maxDeliveryCount) {
this.maxDeliveryCount = maxDeliveryCount;
return this;
}
public CloudToDevicePropertiesResponse build() {
final var _resultValue = new CloudToDevicePropertiesResponse();
_resultValue.defaultTtlAsIso8601 = defaultTtlAsIso8601;
_resultValue.feedback = feedback;
_resultValue.maxDeliveryCount = maxDeliveryCount;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy