in artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/QueueConfiguration.java [720:821]
public String toJSON() {
JsonObjectBuilder builder = JsonLoader.createObjectBuilder();
if (getId() != null) {
builder.add(ID, getId());
}
if (getName() != null) {
builder.add(NAME, getName().toString());
}
if (getAddress() != null) {
builder.add(ADDRESS, getAddress().toString());
}
if (getRoutingType() != null) {
builder.add(ROUTING_TYPE, getRoutingType().toString().toUpperCase());
}
if (getFilterString() != null) {
builder.add(FILTER_STRING, getFilterString().toString());
}
if (isDurable() != null) {
builder.add(DURABLE, isDurable());
}
if (getUser() != null) {
builder.add(USER, getUser().toString());
}
if (getMaxConsumers() != null) {
builder.add(MAX_CONSUMERS, getMaxConsumers());
}
if (isExclusive() != null) {
builder.add(EXCLUSIVE, isExclusive());
}
if (isGroupRebalance() != null) {
builder.add(GROUP_REBALANCE, isGroupRebalance());
}
if (isGroupRebalancePauseDispatch() != null) {
builder.add(GROUP_REBALANCE_PAUSE_DISPATCH, isGroupRebalancePauseDispatch());
}
if (getGroupBuckets() != null) {
builder.add(GROUP_BUCKETS, getGroupBuckets());
}
if (getGroupFirstKey() != null) {
builder.add(GROUP_FIRST_KEY, getGroupFirstKey().toString());
}
if (isLastValue() != null) {
builder.add(LAST_VALUE, isLastValue());
}
if (getLastValueKey() != null) {
builder.add(LAST_VALUE_KEY, getLastValueKey().toString());
}
if (isNonDestructive() != null) {
builder.add(NON_DESTRUCTIVE, isNonDestructive());
}
if (isPurgeOnNoConsumers() != null) {
builder.add(PURGE_ON_NO_CONSUMERS, isPurgeOnNoConsumers());
}
if (isEnabled() != null) {
builder.add(ENABLED, isEnabled());
}
if (getConsumersBeforeDispatch() != null) {
builder.add(CONSUMERS_BEFORE_DISPATCH, getConsumersBeforeDispatch());
}
if (getDelayBeforeDispatch() != null) {
builder.add(DELAY_BEFORE_DISPATCH, getDelayBeforeDispatch());
}
if (getConsumerPriority() != null) {
builder.add(CONSUMER_PRIORITY, getConsumerPriority());
}
if (isAutoDelete() != null) {
builder.add(AUTO_DELETE, isAutoDelete());
}
if (getAutoDeleteDelay() != null) {
builder.add(AUTO_DELETE_DELAY, getAutoDeleteDelay());
}
if (getAutoDeleteMessageCount() != null) {
builder.add(AUTO_DELETE_MESSAGE_COUNT, getAutoDeleteMessageCount());
}
if (getRingSize() != null) {
builder.add(RING_SIZE, getRingSize());
}
if (isConfigurationManaged() != null) {
builder.add(CONFIGURATION_MANAGED, isConfigurationManaged());
}
if (isTemporary() != null) {
builder.add(TEMPORARY, isTemporary());
}
if (isAutoCreateAddress() != null) {
builder.add(AUTO_CREATE_ADDRESS, isAutoCreateAddress());
}
if (isInternal() != null) {
builder.add(INTERNAL, isInternal());
}
if (isTransient() != null) {
builder.add(TRANSIENT, isTransient());
}
if (isAutoCreated() != null) {
builder.add(AUTO_CREATED, isAutoCreated());
}
if (isFqqn() != null) {
builder.add(FQQN, isFqqn());
}
return builder.build().toString();
}