Class ResourceCollectionWithLinks<TResource,TLinks>
java.lang.Object
com.microsoft.store.partnercenter.models.ResourceBase
com.microsoft.store.partnercenter.models.ResourceBaseWithLinks<TLinks>
com.microsoft.store.partnercenter.models.ResourceCollectionWithLinks<TResource,TLinks>
- Direct Known Subclasses:
ResourceCollection
public class ResourceCollectionWithLinks<TResource,TLinks> extends ResourceBaseWithLinks<TLinks>
Contains a collection of resources with JSON properties to represent the output Type of objects in collection
-
Constructor Summary
Constructors Modifier Constructor Description ResourceCollectionWithLinks()protectedResourceCollectionWithLinks(ResourceCollectionWithLinks<TResource,TLinks> resourceCollection)Initializes a new instance of the ResourceCollection class.ResourceCollectionWithLinks(List<TResource> items)Initializes a new instance of the ResourceCollection class. -
Method Summary
Modifier and Type Method Description Iterable<TResource>getItems()Gets the collection items.intgetTotalCount()Gets the total count.voidsetItems(List<TResource> value)Sets the collection items.voidsetTotalCount(int value)StringtoString()Converts this object to a string.Methods inherited from class com.microsoft.store.partnercenter.models.ResourceBaseWithLinks
getLinks, setLinks
-
Constructor Details
-
ResourceCollectionWithLinks
public ResourceCollectionWithLinks() -
ResourceCollectionWithLinks
Initializes a new instance of the ResourceCollection class.- Parameters:
items- The items.
-
ResourceCollectionWithLinks
protected ResourceCollectionWithLinks(ResourceCollectionWithLinks<TResource,TLinks> resourceCollection)Initializes a new instance of the ResourceCollection class.- Parameters:
resourceCollection- The resource collection.
-
-
Method Details
-
getTotalCount
public int getTotalCount()Gets the total count.- Returns:
- The total count.
-
setTotalCount
public void setTotalCount(int value) -
getItems
Gets the collection items.- Returns:
- The items in the collection.
-
setItems
Sets the collection items.- Parameters:
value- The items in the collection.
-
toString
Converts this object to a string.
-