/******************************************************************************* **NOTE** This code was generated by a tool and will occasionally be overwritten. We welcome comments and issues regarding this code; they will be addressed in the generation tool. If you wish to submit pull requests, please do so for the templates in that tool. This code was generated by Vipr (https://github.com/microsoft/vipr) using the T4TemplateWriter (https://github.com/msopentech/vipr-t4templatewriter). Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License 2.0; see LICENSE in the source repository root for authoritative license information. ******************************************************************************/ package com.microsoft.services.graph.fetchers; import com.microsoft.services.graph.*; import com.google.common.util.concurrent.*; import com.microsoft.services.orc.core.*; import com.microsoft.services.orc.core.Readable; /** * The type Group . */ public class GroupFetcher extends OrcEntityFetcher<Group,GroupOperations> implements Readable<Group> { /** * Instantiates a new GroupFetcher. * * @param urlComponent the url component * @param parent the parent */ public GroupFetcher(String urlComponent, OrcExecutable parent) { super(urlComponent, parent, Group.class, GroupOperations.class); } /** * Add parameter. * * @param name the name * @param value the value * @return the fetcher */ public GroupFetcher addParameter(String name, Object value) { addCustomParameter(name, value); return this; } /** * Add header. * * @param name the name * @param value the value * @return the fetcher */ public GroupFetcher addHeader(String name, String value) { addCustomHeader(name, value); return this; } /** * Gets app role assignments. * * @return the app role assignments */ public OrcCollectionFetcher<AppRoleAssignment, AppRoleAssignmentFetcher, AppRoleAssignmentCollectionOperations> getAppRoleAssignments() { return new OrcCollectionFetcher<AppRoleAssignment, AppRoleAssignmentFetcher, AppRoleAssignmentCollectionOperations>("appRoleAssignments", this, AppRoleAssignment.class, AppRoleAssignmentCollectionOperations.class); } /** * Gets app role assignment. * * @return the app role assignment */ public AppRoleAssignmentFetcher getAppRoleAssignment(String id){ return new OrcCollectionFetcher<AppRoleAssignment, AppRoleAssignmentFetcher, AppRoleAssignmentCollectionOperations>("appRoleAssignments", this, AppRoleAssignment.class, AppRoleAssignmentCollectionOperations.class).getById(id); } /** * Gets members. * * @return the members */ public OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations> getMembers() { return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("members", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class); } /** * Gets member. * * @return the member */ public DirectoryObjectFetcher getMember(String id){ return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("members", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class).getById(id); } /** * Gets member of. * * @return the member of */ public OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations> getMemberOf() { return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("memberOf", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class); } /** * Gets member of. * * @return the member of */ public DirectoryObjectFetcher getMemberOf(String id){ return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("memberOf", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class).getById(id); } /** * Gets createdonbehalfof. * * @return the created on behalf of */ public DirectoryObjectFetcher getCreatedOnBehalfOf() { return new DirectoryObjectFetcher("createdOnBehalfOf", this); } /** * Gets owners. * * @return the owners */ public OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations> getOwners() { return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("owners", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class); } /** * Gets owner. * * @return the owner */ public DirectoryObjectFetcher getOwner(String id){ return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("owners", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class).getById(id); } /** * Gets groupphoto. * * @return the group photo */ public PhotoFetcher getGroupPhoto() { return new PhotoFetcher("GroupPhoto", this); } /** * Gets group photos. * * @return the group photos */ public OrcCollectionFetcher<Photo, PhotoFetcher, PhotoCollectionOperations> getGroupPhotos() { return new OrcCollectionFetcher<Photo, PhotoFetcher, PhotoCollectionOperations>("GroupPhotos", this, Photo.class, PhotoCollectionOperations.class); } /** * Gets group photo. * * @return the group photo */ public PhotoFetcher getGroupPhoto(String id){ return new OrcCollectionFetcher<Photo, PhotoFetcher, PhotoCollectionOperations>("GroupPhotos", this, Photo.class, PhotoCollectionOperations.class).getById(id); } /** * Gets conversations. * * @return the conversations */ public OrcCollectionFetcher<Conversation, ConversationFetcher, ConversationCollectionOperations> getConversations() { return new OrcCollectionFetcher<Conversation, ConversationFetcher, ConversationCollectionOperations>("Conversations", this, Conversation.class, ConversationCollectionOperations.class); } /** * Gets conversation. * * @return the conversation */ public ConversationFetcher getConversation(String id){ return new OrcCollectionFetcher<Conversation, ConversationFetcher, ConversationCollectionOperations>("Conversations", this, Conversation.class, ConversationCollectionOperations.class).getById(id); } /** * Gets threads. * * @return the threads */ public OrcCollectionFetcher<ConversationThread, ConversationThreadFetcher, ConversationThreadCollectionOperations> getThreads() { return new OrcCollectionFetcher<ConversationThread, ConversationThreadFetcher, ConversationThreadCollectionOperations>("Threads", this, ConversationThread.class, ConversationThreadCollectionOperations.class); } /** * Gets thread. * * @return the thread */ public ConversationThreadFetcher getThread(String id){ return new OrcCollectionFetcher<ConversationThread, ConversationThreadFetcher, ConversationThreadCollectionOperations>("Threads", this, ConversationThread.class, ConversationThreadCollectionOperations.class).getById(id); } /** * Gets calendar. * * @return the calendar */ public CalendarFetcher getCalendar() { return new CalendarFetcher("Calendar", this); } /** * Gets events. * * @return the events */ public OrcCollectionFetcher<Event, EventFetcher, EventCollectionOperations> getEvents() { return new OrcCollectionFetcher<Event, EventFetcher, EventCollectionOperations>("Events", this, Event.class, EventCollectionOperations.class); } /** * Gets event. * * @return the event */ public EventFetcher getEvent(String id){ return new OrcCollectionFetcher<Event, EventFetcher, EventCollectionOperations>("Events", this, Event.class, EventCollectionOperations.class).getById(id); } /** * Gets calendar view. * * @return the calendar view */ public OrcCollectionFetcher<Event, EventFetcher, EventCollectionOperations> getCalendarView() { return new OrcCollectionFetcher<Event, EventFetcher, EventCollectionOperations>("CalendarView", this, Event.class, EventCollectionOperations.class); } /** * Gets calendar view. * * @return the calendar view */ public EventFetcher getCalendarView(String id){ return new OrcCollectionFetcher<Event, EventFetcher, EventCollectionOperations>("CalendarView", this, Event.class, EventCollectionOperations.class).getById(id); } /** * Gets files. * * @return the files */ public OrcCollectionFetcher<Item, ItemFetcher, ItemCollectionOperations> getFiles() { return new OrcCollectionFetcher<Item, ItemFetcher, ItemCollectionOperations>("files", this, Item.class, ItemCollectionOperations.class); } /** * Gets file. * * @return the file */ public ItemFetcher getFile(String id){ return new OrcCollectionFetcher<Item, ItemFetcher, ItemCollectionOperations>("files", this, Item.class, ItemCollectionOperations.class).getById(id); } }