All Downloads are FREE. Search and download functionalities are using the official Maven repository.

odata.msgraph.client.beta.entity.collection.request.NotificationMessageTemplateCollectionRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package odata.msgraph.client.beta.entity.collection.request;

import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;

import java.lang.Object;
import java.lang.String;
import java.util.Optional;

import odata.msgraph.client.beta.entity.NotificationMessageTemplate;
import odata.msgraph.client.beta.entity.request.LocalizedNotificationMessageRequest;
import odata.msgraph.client.beta.entity.request.NotificationMessageTemplateRequest;

public class NotificationMessageTemplateCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public NotificationMessageTemplateCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, NotificationMessageTemplate.class, cp -> new NotificationMessageTemplateRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public LocalizedNotificationMessageCollectionRequest localizedNotificationMessages() {
        return new LocalizedNotificationMessageCollectionRequest(contextPath.addSegment("localizedNotificationMessages"), Optional.empty());
    }

    public LocalizedNotificationMessageRequest localizedNotificationMessages(String id) {
        return new LocalizedNotificationMessageRequest(contextPath.addSegment("localizedNotificationMessages").addKeys(new NameValue(id.toString())), Optional.empty());
    }

}