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

odata.msgraph.client.beta.complex.CredentialSingleSignOnExtension Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package odata.msgraph.client.beta.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.CollectionPage;
import com.github.davidmoten.odata.client.HttpRequestOptions;
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.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Optional;


/**
 * “Represents a Credential-type Single Sign-On extension profile.”
 */@JsonPropertyOrder({
    "@odata.type", 
    "configurations", 
    "domains", 
    "extensionIdentifier", 
    "realm", 
    "teamIdentifier"})
@JsonInclude(Include.NON_NULL)
public class CredentialSingleSignOnExtension extends SingleSignOnExtension implements ODataType {

    @JsonProperty("configurations")
    protected List configurations;

    @JsonProperty("configurations@nextLink")
    protected String configurationsNextLink;

    @JsonProperty("domains")
    protected List domains;

    @JsonProperty("domains@nextLink")
    protected String domainsNextLink;

    @JsonProperty("extensionIdentifier")
    protected String extensionIdentifier;

    @JsonProperty("realm")
    protected String realm;

    @JsonProperty("teamIdentifier")
    protected String teamIdentifier;

    protected CredentialSingleSignOnExtension() {
        super();
    }

    @Override
    public String odataTypeName() {
        return "microsoft.graph.credentialSingleSignOnExtension";
    }

    /**
     * “Gets or sets a list of typed key-value pairs used to configure Credential-type
     * profiles. This collection can contain a maximum of 500 elements.”
     * 
     * @return property configurations
     */
    @Property(name="configurations")
    @JsonIgnore
    public CollectionPage getConfigurations() {
        return new CollectionPage(contextPath, KeyTypedValuePair.class, this.configurations, Optional.ofNullable(configurationsNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY);
    }

    /**
     * “Gets or sets a list of typed key-value pairs used to configure Credential-type
     * profiles. This collection can contain a maximum of 500 elements.”
     * 
     * @param options
     *            specify connect and read timeouts
     * @return property configurations
     */
    @Property(name="configurations")
    @JsonIgnore
    public CollectionPage getConfigurations(HttpRequestOptions options) {
        return new CollectionPage(contextPath, KeyTypedValuePair.class, this.configurations, Optional.ofNullable(configurationsNextLink), Collections.emptyList(), options);
    }

    /**
     * “Gets or sets a list of hosts or domain names for which the app extension
     * performs SSO.”
     * 
     * @return property domains
     */
    @Property(name="domains")
    @JsonIgnore
    public CollectionPage getDomains() {
        return new CollectionPage(contextPath, String.class, this.domains, Optional.ofNullable(domainsNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY);
    }

    /**
     * “Gets or sets a list of hosts or domain names for which the app extension
     * performs SSO.”
     * 
     * @param options
     *            specify connect and read timeouts
     * @return property domains
     */
    @Property(name="domains")
    @JsonIgnore
    public CollectionPage getDomains(HttpRequestOptions options) {
        return new CollectionPage(contextPath, String.class, this.domains, Optional.ofNullable(domainsNextLink), Collections.emptyList(), options);
    }

    /**
     * “Gets or sets the bundle ID of the app extension that performs SSO for the
     * specified URLs.”
     * 
     * @return property extensionIdentifier
     */
    @Property(name="extensionIdentifier")
    @JsonIgnore
    public Optional getExtensionIdentifier() {
        return Optional.ofNullable(extensionIdentifier);
    }

    /**
     * Returns an immutable copy of {@code this} with just the {@code
     * extensionIdentifier} field changed. Field description below. The field name is
     * also added to an internal map of changed fields in the returned object so that
     * when {@code this.patch()} is called (if available)on the returned object only
     * the changed fields are submitted.
     * 

* “Gets or sets the bundle ID of the app extension that performs SSO for the * specified URLs.” * * @param extensionIdentifier * new value of {@code extensionIdentifier} field (as defined in service metadata) * @return immutable copy of {@code this} with just the {@code extensionIdentifier} field changed */ public CredentialSingleSignOnExtension withExtensionIdentifier(String extensionIdentifier) { CredentialSingleSignOnExtension _x = _copy(); _x.odataType = Util.nvl(odataType, "microsoft.graph.credentialSingleSignOnExtension"); _x.extensionIdentifier = extensionIdentifier; return _x; } /** * “Gets or sets the case-sensitive realm name for this profile.” * * @return property realm */ @Property(name="realm") @JsonIgnore public Optional getRealm() { return Optional.ofNullable(realm); } /** * Returns an immutable copy of {@code this} with just the {@code realm} field * changed. Field description below. The field name is also added to an internal * map of changed fields in the returned object so that when {@code this.patch()} * is called (if available)on the returned object only the changed fields are * submitted. *

* “Gets or sets the case-sensitive realm name for this profile.” * * @param realm * new value of {@code realm} field (as defined in service metadata) * @return immutable copy of {@code this} with just the {@code realm} field changed */ public CredentialSingleSignOnExtension withRealm(String realm) { CredentialSingleSignOnExtension _x = _copy(); _x.odataType = Util.nvl(odataType, "microsoft.graph.credentialSingleSignOnExtension"); _x.realm = realm; return _x; } /** * “Gets or sets the team ID of the app extension that performs SSO for the * specified URLs.” * * @return property teamIdentifier */ @Property(name="teamIdentifier") @JsonIgnore public Optional getTeamIdentifier() { return Optional.ofNullable(teamIdentifier); } /** * Returns an immutable copy of {@code this} with just the {@code teamIdentifier} * field changed. Field description below. The field name is also added to an * internal map of changed fields in the returned object so that when {@code this. * patch()} is called (if available)on the returned object only the changed fields * are submitted. *

* “Gets or sets the team ID of the app extension that performs SSO for the * specified URLs.” * * @param teamIdentifier * new value of {@code teamIdentifier} field (as defined in service metadata) * @return immutable copy of {@code this} with just the {@code teamIdentifier} field changed */ public CredentialSingleSignOnExtension withTeamIdentifier(String teamIdentifier) { CredentialSingleSignOnExtension _x = _copy(); _x.odataType = Util.nvl(odataType, "microsoft.graph.credentialSingleSignOnExtension"); _x.teamIdentifier = teamIdentifier; return _x; } public CredentialSingleSignOnExtension withUnmappedField(String name, String value) { CredentialSingleSignOnExtension _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 builderCredentialSingleSignOnExtension() { return new Builder(); } public static final class Builder { private List configurations; private String configurationsNextLink; private List domains; private String domainsNextLink; private String extensionIdentifier; private String realm; private String teamIdentifier; private ChangedFields changedFields = ChangedFields.EMPTY; Builder() { // prevent instantiation } /** * “Gets or sets a list of typed key-value pairs used to configure Credential-type * profiles. This collection can contain a maximum of 500 elements.” * * @param configurations * value of {@code configurations} property (as defined in service metadata) * @return {@code this} (for method chaining) */ public Builder configurations(List configurations) { this.configurations = configurations; this.changedFields = changedFields.add("configurations"); return this; } /** * “Gets or sets a list of typed key-value pairs used to configure Credential-type * profiles. This collection can contain a maximum of 500 elements.” * * @param configurations * value of {@code configurations} property (as defined in service metadata) * @return {@code this} (for method chaining) */ public Builder configurations(KeyTypedValuePair... configurations) { return configurations(Arrays.asList(configurations)); } /** * “Gets or sets a list of typed key-value pairs used to configure Credential-type * profiles. This collection can contain a maximum of 500 elements.” * * @param configurationsNextLink * value of {@code configurations@nextLink} property (as defined in service metadata) * @return {@code this} (for method chaining) */ public Builder configurationsNextLink(String configurationsNextLink) { this.configurationsNextLink = configurationsNextLink; this.changedFields = changedFields.add("configurations"); return this; } /** * “Gets or sets a list of hosts or domain names for which the app extension * performs SSO.” * * @param domains * value of {@code domains} property (as defined in service metadata) * @return {@code this} (for method chaining) */ public Builder domains(List domains) { this.domains = domains; this.changedFields = changedFields.add("domains"); return this; } /** * “Gets or sets a list of hosts or domain names for which the app extension * performs SSO.” * * @param domains * value of {@code domains} property (as defined in service metadata) * @return {@code this} (for method chaining) */ public Builder domains(String... domains) { return domains(Arrays.asList(domains)); } /** * “Gets or sets a list of hosts or domain names for which the app extension * performs SSO.” * * @param domainsNextLink * value of {@code domains@nextLink} property (as defined in service metadata) * @return {@code this} (for method chaining) */ public Builder domainsNextLink(String domainsNextLink) { this.domainsNextLink = domainsNextLink; this.changedFields = changedFields.add("domains"); return this; } /** * “Gets or sets the bundle ID of the app extension that performs SSO for the * specified URLs.” * * @param extensionIdentifier * value of {@code extensionIdentifier} property (as defined in service metadata) * @return {@code this} (for method chaining) */ public Builder extensionIdentifier(String extensionIdentifier) { this.extensionIdentifier = extensionIdentifier; this.changedFields = changedFields.add("extensionIdentifier"); return this; } /** * “Gets or sets the case-sensitive realm name for this profile.” * * @param realm * value of {@code realm} property (as defined in service metadata) * @return {@code this} (for method chaining) */ public Builder realm(String realm) { this.realm = realm; this.changedFields = changedFields.add("realm"); return this; } /** * “Gets or sets the team ID of the app extension that performs SSO for the * specified URLs.” * * @param teamIdentifier * value of {@code teamIdentifier} property (as defined in service metadata) * @return {@code this} (for method chaining) */ public Builder teamIdentifier(String teamIdentifier) { this.teamIdentifier = teamIdentifier; this.changedFields = changedFields.add("teamIdentifier"); return this; } public CredentialSingleSignOnExtension build() { CredentialSingleSignOnExtension _x = new CredentialSingleSignOnExtension(); _x.contextPath = null; _x.unmappedFields = new UnmappedFieldsImpl(); _x.odataType = "microsoft.graph.credentialSingleSignOnExtension"; _x.configurations = configurations; _x.configurationsNextLink = configurationsNextLink; _x.domains = domains; _x.domainsNextLink = domainsNextLink; _x.extensionIdentifier = extensionIdentifier; _x.realm = realm; _x.teamIdentifier = teamIdentifier; return _x; } } private CredentialSingleSignOnExtension _copy() { CredentialSingleSignOnExtension _x = new CredentialSingleSignOnExtension(); _x.contextPath = contextPath; _x.unmappedFields = unmappedFields.copy(); _x.odataType = odataType; _x.configurations = configurations; _x.domains = domains; _x.extensionIdentifier = extensionIdentifier; _x.realm = realm; _x.teamIdentifier = teamIdentifier; return _x; } @Override public String toString() { StringBuilder b = new StringBuilder(); b.append("CredentialSingleSignOnExtension["); b.append("configurations="); b.append(this.configurations); b.append(", "); b.append("domains="); b.append(this.domains); b.append(", "); b.append("extensionIdentifier="); b.append(this.extensionIdentifier); b.append(", "); b.append("realm="); b.append(this.realm); b.append(", "); b.append("teamIdentifier="); b.append(this.teamIdentifier); b.append("]"); b.append(",unmappedFields="); b.append(unmappedFields); b.append(",odataType="); b.append(odataType); return b.toString(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy