
odata.msgraph.client.complex.RemoteItem Maven / Gradle / Ivy
package odata.msgraph.client.complex;
import com.fasterxml.jackson.annotation.JacksonInject;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.ODataType;
import com.github.davidmoten.odata.client.UnmappedFields;
import com.github.davidmoten.odata.client.Util;
import com.github.davidmoten.odata.client.annotation.Property;
import com.github.davidmoten.odata.client.internal.ChangedFields;
import com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl;
import java.lang.Long;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import java.time.OffsetDateTime;
import java.util.Optional;
@JsonPropertyOrder({
"@odata.type",
"createdBy",
"createdDateTime",
"file",
"fileSystemInfo",
"folder",
"id",
"image",
"lastModifiedBy",
"lastModifiedDateTime",
"name",
"package",
"parentReference",
"shared",
"sharepointIds",
"size",
"specialFolder",
"video",
"webDavUrl",
"webUrl"})
@JsonInclude(Include.NON_NULL)
public class RemoteItem implements ODataType {
@JacksonInject
@JsonIgnore
protected ContextPath contextPath;
@JacksonInject
@JsonIgnore
protected UnmappedFieldsImpl unmappedFields;
@JsonProperty("@odata.type")
protected String odataType;
@JsonProperty("createdBy")
protected IdentitySet createdBy;
@JsonProperty("createdDateTime")
protected OffsetDateTime createdDateTime;
@JsonProperty("file")
protected File file;
@JsonProperty("fileSystemInfo")
protected FileSystemInfo fileSystemInfo;
@JsonProperty("folder")
protected Folder folder;
@JsonProperty("id")
protected String id;
@JsonProperty("image")
protected Image image;
@JsonProperty("lastModifiedBy")
protected IdentitySet lastModifiedBy;
@JsonProperty("lastModifiedDateTime")
protected OffsetDateTime lastModifiedDateTime;
@JsonProperty("name")
protected String name;
@JsonProperty("package")
protected Package package_;
@JsonProperty("parentReference")
protected ItemReference parentReference;
@JsonProperty("shared")
protected Shared shared;
@JsonProperty("sharepointIds")
protected SharepointIds sharepointIds;
@JsonProperty("size")
protected Long size;
@JsonProperty("specialFolder")
protected SpecialFolder specialFolder;
@JsonProperty("video")
protected Video video;
@JsonProperty("webDavUrl")
protected String webDavUrl;
@JsonProperty("webUrl")
protected String webUrl;
protected RemoteItem() {
}
@Override
public String odataTypeName() {
return "microsoft.graph.remoteItem";
}
@Property(name="createdBy")
@JsonIgnore
public Optional getCreatedBy() {
return Optional.ofNullable(createdBy);
}
public RemoteItem withCreatedBy(IdentitySet createdBy) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.createdBy = createdBy;
return _x;
}
@Property(name="createdDateTime")
@JsonIgnore
public Optional getCreatedDateTime() {
return Optional.ofNullable(createdDateTime);
}
public RemoteItem withCreatedDateTime(OffsetDateTime createdDateTime) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.createdDateTime = createdDateTime;
return _x;
}
@Property(name="file")
@JsonIgnore
public Optional getFile() {
return Optional.ofNullable(file);
}
public RemoteItem withFile(File file) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.file = file;
return _x;
}
@Property(name="fileSystemInfo")
@JsonIgnore
public Optional getFileSystemInfo() {
return Optional.ofNullable(fileSystemInfo);
}
public RemoteItem withFileSystemInfo(FileSystemInfo fileSystemInfo) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.fileSystemInfo = fileSystemInfo;
return _x;
}
@Property(name="folder")
@JsonIgnore
public Optional getFolder() {
return Optional.ofNullable(folder);
}
public RemoteItem withFolder(Folder folder) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.folder = folder;
return _x;
}
@Property(name="id")
@JsonIgnore
public Optional getId() {
return Optional.ofNullable(id);
}
public RemoteItem withId(String id) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.id = id;
return _x;
}
@Property(name="image")
@JsonIgnore
public Optional getImage() {
return Optional.ofNullable(image);
}
public RemoteItem withImage(Image image) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.image = image;
return _x;
}
@Property(name="lastModifiedBy")
@JsonIgnore
public Optional getLastModifiedBy() {
return Optional.ofNullable(lastModifiedBy);
}
public RemoteItem withLastModifiedBy(IdentitySet lastModifiedBy) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.lastModifiedBy = lastModifiedBy;
return _x;
}
@Property(name="lastModifiedDateTime")
@JsonIgnore
public Optional getLastModifiedDateTime() {
return Optional.ofNullable(lastModifiedDateTime);
}
public RemoteItem withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.lastModifiedDateTime = lastModifiedDateTime;
return _x;
}
@Property(name="name")
@JsonIgnore
public Optional getName() {
return Optional.ofNullable(name);
}
public RemoteItem withName(String name) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.name = name;
return _x;
}
@Property(name="package")
@JsonIgnore
public Optional getPackage() {
return Optional.ofNullable(package_);
}
public RemoteItem withPackage(Package package_) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.package_ = package_;
return _x;
}
@Property(name="parentReference")
@JsonIgnore
public Optional getParentReference() {
return Optional.ofNullable(parentReference);
}
public RemoteItem withParentReference(ItemReference parentReference) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.parentReference = parentReference;
return _x;
}
@Property(name="shared")
@JsonIgnore
public Optional getShared() {
return Optional.ofNullable(shared);
}
public RemoteItem withShared(Shared shared) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.shared = shared;
return _x;
}
@Property(name="sharepointIds")
@JsonIgnore
public Optional getSharepointIds() {
return Optional.ofNullable(sharepointIds);
}
public RemoteItem withSharepointIds(SharepointIds sharepointIds) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.sharepointIds = sharepointIds;
return _x;
}
@Property(name="size")
@JsonIgnore
public Optional getSize() {
return Optional.ofNullable(size);
}
public RemoteItem withSize(Long size) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.size = size;
return _x;
}
@Property(name="specialFolder")
@JsonIgnore
public Optional getSpecialFolder() {
return Optional.ofNullable(specialFolder);
}
public RemoteItem withSpecialFolder(SpecialFolder specialFolder) {
RemoteItem _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.remoteItem");
_x.specialFolder = specialFolder;
return _x;
}
@Property(name="video")
@JsonIgnore
public Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy