odata.msgraph.client.complex.CommunicationsIdentitySet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-client-msgraph Show documentation
Show all versions of odata-client-msgraph Show documentation
Java client for use with the Microsoft Graph v1.0 endpoint
package odata.msgraph.client.complex;
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.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.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import java.util.Optional;
import odata.msgraph.client.enums.EndpointType;
@JsonPropertyOrder({
"@odata.type",
"applicationInstance",
"assertedIdentity",
"azureCommunicationServicesUser",
"encrypted",
"endpointType",
"guest",
"onPremises",
"phone"})
@JsonInclude(Include.NON_NULL)
public class CommunicationsIdentitySet extends IdentitySet implements ODataType {
@JsonProperty("applicationInstance")
protected Identity applicationInstance;
@JsonProperty("assertedIdentity")
protected Identity assertedIdentity;
@JsonProperty("azureCommunicationServicesUser")
protected Identity azureCommunicationServicesUser;
@JsonProperty("encrypted")
protected Identity encrypted;
@JsonProperty("endpointType")
protected EndpointType endpointType;
@JsonProperty("guest")
protected Identity guest;
@JsonProperty("onPremises")
protected Identity onPremises;
@JsonProperty("phone")
protected Identity phone;
protected CommunicationsIdentitySet() {
super();
}
@Override
public String odataTypeName() {
return "microsoft.graph.communicationsIdentitySet";
}
@Property(name="applicationInstance")
@JsonIgnore
public Optional getApplicationInstance() {
return Optional.ofNullable(applicationInstance);
}
public CommunicationsIdentitySet withApplicationInstance(Identity applicationInstance) {
CommunicationsIdentitySet _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.communicationsIdentitySet");
_x.applicationInstance = applicationInstance;
return _x;
}
@Property(name="assertedIdentity")
@JsonIgnore
public Optional getAssertedIdentity() {
return Optional.ofNullable(assertedIdentity);
}
public CommunicationsIdentitySet withAssertedIdentity(Identity assertedIdentity) {
CommunicationsIdentitySet _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.communicationsIdentitySet");
_x.assertedIdentity = assertedIdentity;
return _x;
}
@Property(name="azureCommunicationServicesUser")
@JsonIgnore
public Optional getAzureCommunicationServicesUser() {
return Optional.ofNullable(azureCommunicationServicesUser);
}
public CommunicationsIdentitySet withAzureCommunicationServicesUser(Identity azureCommunicationServicesUser) {
CommunicationsIdentitySet _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.communicationsIdentitySet");
_x.azureCommunicationServicesUser = azureCommunicationServicesUser;
return _x;
}
@Property(name="encrypted")
@JsonIgnore
public Optional getEncrypted() {
return Optional.ofNullable(encrypted);
}
public CommunicationsIdentitySet withEncrypted(Identity encrypted) {
CommunicationsIdentitySet _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.communicationsIdentitySet");
_x.encrypted = encrypted;
return _x;
}
@Property(name="endpointType")
@JsonIgnore
public Optional getEndpointType() {
return Optional.ofNullable(endpointType);
}
public CommunicationsIdentitySet withEndpointType(EndpointType endpointType) {
CommunicationsIdentitySet _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.communicationsIdentitySet");
_x.endpointType = endpointType;
return _x;
}
@Property(name="guest")
@JsonIgnore
public Optional getGuest() {
return Optional.ofNullable(guest);
}
public CommunicationsIdentitySet withGuest(Identity guest) {
CommunicationsIdentitySet _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.communicationsIdentitySet");
_x.guest = guest;
return _x;
}
@Property(name="onPremises")
@JsonIgnore
public Optional getOnPremises() {
return Optional.ofNullable(onPremises);
}
public CommunicationsIdentitySet withOnPremises(Identity onPremises) {
CommunicationsIdentitySet _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.communicationsIdentitySet");
_x.onPremises = onPremises;
return _x;
}
@Property(name="phone")
@JsonIgnore
public Optional getPhone() {
return Optional.ofNullable(phone);
}
public CommunicationsIdentitySet withPhone(Identity phone) {
CommunicationsIdentitySet _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.communicationsIdentitySet");
_x.phone = phone;
return _x;
}
public CommunicationsIdentitySet withUnmappedField(String name, Object value) {
CommunicationsIdentitySet _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 builderCommunicationsIdentitySet() {
return new Builder();
}
public static final class Builder {
private Identity application;
private Identity device;
private Identity user;
private Identity applicationInstance;
private Identity assertedIdentity;
private Identity azureCommunicationServicesUser;
private Identity encrypted;
private EndpointType endpointType;
private Identity guest;
private Identity onPremises;
private Identity phone;
private ChangedFields changedFields = ChangedFields.EMPTY;
Builder() {
// prevent instantiation
}
public Builder application(Identity application) {
this.application = application;
this.changedFields = changedFields.add("application");
return this;
}
public Builder device(Identity device) {
this.device = device;
this.changedFields = changedFields.add("device");
return this;
}
public Builder user(Identity user) {
this.user = user;
this.changedFields = changedFields.add("user");
return this;
}
public Builder applicationInstance(Identity applicationInstance) {
this.applicationInstance = applicationInstance;
this.changedFields = changedFields.add("applicationInstance");
return this;
}
public Builder assertedIdentity(Identity assertedIdentity) {
this.assertedIdentity = assertedIdentity;
this.changedFields = changedFields.add("assertedIdentity");
return this;
}
public Builder azureCommunicationServicesUser(Identity azureCommunicationServicesUser) {
this.azureCommunicationServicesUser = azureCommunicationServicesUser;
this.changedFields = changedFields.add("azureCommunicationServicesUser");
return this;
}
public Builder encrypted(Identity encrypted) {
this.encrypted = encrypted;
this.changedFields = changedFields.add("encrypted");
return this;
}
public Builder endpointType(EndpointType endpointType) {
this.endpointType = endpointType;
this.changedFields = changedFields.add("endpointType");
return this;
}
public Builder guest(Identity guest) {
this.guest = guest;
this.changedFields = changedFields.add("guest");
return this;
}
public Builder onPremises(Identity onPremises) {
this.onPremises = onPremises;
this.changedFields = changedFields.add("onPremises");
return this;
}
public Builder phone(Identity phone) {
this.phone = phone;
this.changedFields = changedFields.add("phone");
return this;
}
public CommunicationsIdentitySet build() {
CommunicationsIdentitySet _x = new CommunicationsIdentitySet();
_x.contextPath = null;
_x.unmappedFields = new UnmappedFieldsImpl();
_x.odataType = "microsoft.graph.communicationsIdentitySet";
_x.application = application;
_x.device = device;
_x.user = user;
_x.applicationInstance = applicationInstance;
_x.assertedIdentity = assertedIdentity;
_x.azureCommunicationServicesUser = azureCommunicationServicesUser;
_x.encrypted = encrypted;
_x.endpointType = endpointType;
_x.guest = guest;
_x.onPremises = onPremises;
_x.phone = phone;
return _x;
}
}
private CommunicationsIdentitySet _copy() {
CommunicationsIdentitySet _x = new CommunicationsIdentitySet();
_x.contextPath = contextPath;
_x.unmappedFields = unmappedFields.copy();
_x.odataType = odataType;
_x.application = application;
_x.device = device;
_x.user = user;
_x.applicationInstance = applicationInstance;
_x.assertedIdentity = assertedIdentity;
_x.azureCommunicationServicesUser = azureCommunicationServicesUser;
_x.encrypted = encrypted;
_x.endpointType = endpointType;
_x.guest = guest;
_x.onPremises = onPremises;
_x.phone = phone;
return _x;
}
@Override
public String toString() {
StringBuilder b = new StringBuilder();
b.append("CommunicationsIdentitySet[");
b.append("application=");
b.append(this.application);
b.append(", ");
b.append("device=");
b.append(this.device);
b.append(", ");
b.append("user=");
b.append(this.user);
b.append(", ");
b.append("applicationInstance=");
b.append(this.applicationInstance);
b.append(", ");
b.append("assertedIdentity=");
b.append(this.assertedIdentity);
b.append(", ");
b.append("azureCommunicationServicesUser=");
b.append(this.azureCommunicationServicesUser);
b.append(", ");
b.append("encrypted=");
b.append(this.encrypted);
b.append(", ");
b.append("endpointType=");
b.append(this.endpointType);
b.append(", ");
b.append("guest=");
b.append(this.guest);
b.append(", ");
b.append("onPremises=");
b.append(this.onPremises);
b.append(", ");
b.append("phone=");
b.append(this.phone);
b.append("]");
b.append(",unmappedFields=");
b.append(unmappedFields);
b.append(",odataType=");
b.append(odataType);
return b.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy