odata.msgraph.client.beta.complex.WindowsInformationProtectionStoreApp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-client-msgraph-beta Show documentation
Show all versions of odata-client-msgraph-beta Show documentation
Java client for use with Microsoft Graph beta endpoint
package odata.msgraph.client.beta.complex;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.github.davidmoten.odata.client.ODataType;
import com.github.davidmoten.odata.client.UnmappedFields;
import com.github.davidmoten.odata.client.internal.ChangedFields;
import com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
/**
* “Store App for Windows information protection”
*/@JsonPropertyOrder({
"@odata.type"})
@JsonInclude(Include.NON_NULL)
public class WindowsInformationProtectionStoreApp extends WindowsInformationProtectionApp implements ODataType {
protected WindowsInformationProtectionStoreApp() {
super();
}
@Override
public String odataTypeName() {
return "microsoft.graph.windowsInformationProtectionStoreApp";
}
public WindowsInformationProtectionStoreApp withUnmappedField(String name, String value) {
WindowsInformationProtectionStoreApp _x = _copy();
_x.setUnmappedField(name, value);
return _x;
}
@JsonAnySetter
private void setUnmappedField(String name, Object value) {
if (unmappedFields == null) {
unmappedFields = new UnmappedFieldsImpl();
}
unmappedFields.put(name, value);
}
@JsonAnyGetter
private UnmappedFieldsImpl unmappedFields() {
return unmappedFields == null ? UnmappedFieldsImpl.EMPTY : unmappedFields;
}
@Override
public UnmappedFields getUnmappedFields() {
return unmappedFields();
}
@Override
public void postInject(boolean addKeysToContextPath) {
// do nothing;
}
/**
* Returns a builder which is used to create a new
* instance of this class (given that this class is immutable).
*
* @return a new Builder for this class
*/
// Suffix used on builder factory method to differentiate the method
// from static builder methods on superclasses
public static Builder builderWindowsInformationProtectionStoreApp() {
return new Builder();
}
public static final class Builder {
private Boolean denied;
private String description;
private String displayName;
private String productName;
private String publisherName;
private ChangedFields changedFields = ChangedFields.EMPTY;
Builder() {
// prevent instantiation
}
public Builder denied(Boolean denied) {
this.denied = denied;
this.changedFields = changedFields.add("denied");
return this;
}
public Builder description(String description) {
this.description = description;
this.changedFields = changedFields.add("description");
return this;
}
public Builder displayName(String displayName) {
this.displayName = displayName;
this.changedFields = changedFields.add("displayName");
return this;
}
public Builder productName(String productName) {
this.productName = productName;
this.changedFields = changedFields.add("productName");
return this;
}
public Builder publisherName(String publisherName) {
this.publisherName = publisherName;
this.changedFields = changedFields.add("publisherName");
return this;
}
public WindowsInformationProtectionStoreApp build() {
WindowsInformationProtectionStoreApp _x = new WindowsInformationProtectionStoreApp();
_x.contextPath = null;
_x.unmappedFields = new UnmappedFieldsImpl();
_x.odataType = "microsoft.graph.windowsInformationProtectionStoreApp";
_x.denied = denied;
_x.description = description;
_x.displayName = displayName;
_x.productName = productName;
_x.publisherName = publisherName;
return _x;
}
}
private WindowsInformationProtectionStoreApp _copy() {
WindowsInformationProtectionStoreApp _x = new WindowsInformationProtectionStoreApp();
_x.contextPath = contextPath;
_x.unmappedFields = unmappedFields.copy();
_x.odataType = odataType;
_x.denied = denied;
_x.description = description;
_x.displayName = displayName;
_x.productName = productName;
_x.publisherName = publisherName;
return _x;
}
@Override
public String toString() {
StringBuilder b = new StringBuilder();
b.append("WindowsInformationProtectionStoreApp[");
b.append("denied=");
b.append(this.denied);
b.append(", ");
b.append("description=");
b.append(this.description);
b.append(", ");
b.append("displayName=");
b.append(this.displayName);
b.append(", ");
b.append("productName=");
b.append(this.productName);
b.append(", ");
b.append("publisherName=");
b.append(this.publisherName);
b.append("]");
b.append(",unmappedFields=");
b.append(unmappedFields);
b.append(",odataType=");
b.append(odataType);
return b.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy