com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerList Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.confidentialledger.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.confidentialledger.fluent.models.ConfidentialLedgerInner;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Object that includes an array of Confidential Ledgers and a possible link for next set. */
@Fluent
public final class ConfidentialLedgerList {
/*
* List of Confidential Ledgers
*/
@JsonProperty(value = "value")
private List value;
/*
* The URL the client should use to fetch the next page (per server side paging).
*/
@JsonProperty(value = "nextLink")
private String nextLink;
/** Creates an instance of ConfidentialLedgerList class. */
public ConfidentialLedgerList() {
}
/**
* Get the value property: List of Confidential Ledgers.
*
* @return the value value.
*/
public List value() {
return this.value;
}
/**
* Set the value property: List of Confidential Ledgers.
*
* @param value the value value to set.
* @return the ConfidentialLedgerList object itself.
*/
public ConfidentialLedgerList withValue(List value) {
this.value = value;
return this;
}
/**
* Get the nextLink property: The URL the client should use to fetch the next page (per server side paging).
*
* @return the nextLink value.
*/
public String nextLink() {
return this.nextLink;
}
/**
* Set the nextLink property: The URL the client should use to fetch the next page (per server side paging).
*
* @param nextLink the nextLink value to set.
* @return the ConfidentialLedgerList object itself.
*/
public ConfidentialLedgerList withNextLink(String nextLink) {
this.nextLink = nextLink;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (value() != null) {
value().forEach(e -> e.validate());
}
}
}