Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.cdn.implementation; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.azure.Page; import java.util.List;
An instance of this class defines a page of Azure resources and a link to get the next page of resources, if any.
Type parameters:
  • <T> – type of Azure resource
/** * An instance of this class defines a page of Azure resources and a link to * get the next page of resources, if any. * * @param <T> type of Azure resource */
public class PageImpl<T> implements Page<T> {
The link to the next page.
/** * The link to the next page. */
@JsonProperty("nextLink") private String nextPageLink;
The list of items.
/** * The list of items. */
@JsonProperty("value") private List<T> items;
Gets the link to the next page.
Returns:the link to the next page.
/** * Gets the link to the next page. * * @return the link to the next page. */
@Override public String nextPageLink() { return this.nextPageLink; }
Gets the list of items.
Returns:the list of items in List.
/** * Gets the list of items. * * @return the list of items in {@link List}. */
@Override public List<T> items() { return items; }
Sets the link to the next page.
Params:
  • nextPageLink – the link to the next page.
Returns:this Page object itself.
/** * Sets the link to the next page. * * @param nextPageLink the link to the next page. * @return this Page object itself. */
public PageImpl<T> setNextPageLink(String nextPageLink) { this.nextPageLink = nextPageLink; return this; }
Sets the list of items.
Params:
  • items – the list of items in List.
Returns:this Page object itself.
/** * Sets the list of items. * * @param items the list of items in {@link List}. * @return this Page object itself. */
public PageImpl<T> setItems(List<T> items) { this.items = items; return this; } }