/******************************************************************************* **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 Contact . */ public class ContactFetcher extends OrcEntityFetcher<Contact,ContactOperations> implements Readable<Contact> { /** * Instantiates a new ContactFetcher. * * @param urlComponent the url component * @param parent the parent */ public ContactFetcher(String urlComponent, OrcExecutable parent) { super(urlComponent, parent, Contact.class, ContactOperations.class); } /** * Add parameter. * * @param name the name * @param value the value * @return the fetcher */ public ContactFetcher addParameter(String name, Object value) { addCustomParameter(name, value); return this; } /** * Add header. * * @param name the name * @param value the value * @return the fetcher */ public ContactFetcher addHeader(String name, String value) { addCustomHeader(name, value); return this; } /** * Gets manager. * * @return the manager */ public DirectoryObjectFetcher getManager() { return new DirectoryObjectFetcher("manager", this); } /** * Gets direct reports. * * @return the direct reports */ public OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations> getDirectReports() { return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("directReports", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class); } /** * Gets direct report. * * @return the direct report */ public DirectoryObjectFetcher getDirectReport(String id){ return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("directReports", 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); } }