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

odata.msgraph.client.entity.request.ServiceUpdateMessageRequest Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
import com.github.davidmoten.odata.client.NameValue;

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

import odata.msgraph.client.entity.ServiceUpdateMessage;
import odata.msgraph.client.entity.collection.request.ServiceAnnouncementAttachmentCollectionRequest;

@JsonIgnoreType
public class ServiceUpdateMessageRequest extends EntityRequest {

    public ServiceUpdateMessageRequest(ContextPath contextPath, Optional value) {
        super(ServiceUpdateMessage.class, contextPath, value, true);
    }

    public ServiceAnnouncementAttachmentRequest attachments(String id) {
        return new ServiceAnnouncementAttachmentRequest(contextPath.addSegment("attachments").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public ServiceAnnouncementAttachmentCollectionRequest attachments() {
        return new ServiceAnnouncementAttachmentCollectionRequest(
                        contextPath.addSegment("attachments"), Optional.empty());
    }

}