com.azure.resourcemanager.storage.fluent.models.QueueProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-storage Show documentation
Show all versions of azure-resourcemanager-storage Show documentation
This package contains Microsoft Azure Storage Management SDK.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.storage.fluent.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/**
* The QueueProperties model.
*/
@Fluent
public final class QueueProperties {
/*
* A name-value pair that represents queue metadata.
*/
@JsonProperty(value = "metadata")
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map metadata;
/*
* Integer indicating an approximate number of messages in the queue. This number is not lower than the actual
* number of messages in the queue, but could be higher.
*/
@JsonProperty(value = "approximateMessageCount", access = JsonProperty.Access.WRITE_ONLY)
private Integer approximateMessageCount;
/**
* Creates an instance of QueueProperties class.
*/
public QueueProperties() {
}
/**
* Get the metadata property: A name-value pair that represents queue metadata.
*
* @return the metadata value.
*/
public Map metadata() {
return this.metadata;
}
/**
* Set the metadata property: A name-value pair that represents queue metadata.
*
* @param metadata the metadata value to set.
* @return the QueueProperties object itself.
*/
public QueueProperties withMetadata(Map metadata) {
this.metadata = metadata;
return this;
}
/**
* Get the approximateMessageCount property: Integer indicating an approximate number of messages in the queue. This
* number is not lower than the actual number of messages in the queue, but could be higher.
*
* @return the approximateMessageCount value.
*/
public Integer approximateMessageCount() {
return this.approximateMessageCount;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy