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

com.microsoft.aad.msal4j.InstanceDiscoveryMetadataEntry Maven / Gradle / Ivy

Go to download

Microsoft Authentication Library for Java gives you the ability to obtain tokens from Azure AD v2 (work and school accounts, MSA) and Azure AD B2C, gaining access to Microsoft Cloud API and any other API secured by Microsoft identities

There is a newer version: 1.18.0
Show newest version
// Generated by delombok at Tue Mar 28 02:58:15 UTC 2023
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.aad.msal4j;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import java.util.*;

class InstanceDiscoveryMetadataEntry {
    @JsonProperty("preferred_network")
    String preferredNetwork;
    @JsonProperty("preferred_cache")
    String preferredCache;
    @JsonProperty("aliases")
    Set aliases;


    @java.lang.SuppressWarnings("all")
    public static class InstanceDiscoveryMetadataEntryBuilder {
        @java.lang.SuppressWarnings("all")
        private String preferredNetwork;
        @java.lang.SuppressWarnings("all")
        private String preferredCache;
        @java.lang.SuppressWarnings("all")
        private Set aliases;

        @java.lang.SuppressWarnings("all")
        InstanceDiscoveryMetadataEntryBuilder() {
        }

        @java.lang.SuppressWarnings("all")
        public InstanceDiscoveryMetadataEntryBuilder preferredNetwork(final String preferredNetwork) {
            this.preferredNetwork = preferredNetwork;
            return this;
        }

        @java.lang.SuppressWarnings("all")
        public InstanceDiscoveryMetadataEntryBuilder preferredCache(final String preferredCache) {
            this.preferredCache = preferredCache;
            return this;
        }

        @java.lang.SuppressWarnings("all")
        public InstanceDiscoveryMetadataEntryBuilder aliases(final Set aliases) {
            this.aliases = aliases;
            return this;
        }

        @java.lang.SuppressWarnings("all")
        public InstanceDiscoveryMetadataEntry build() {
            return new InstanceDiscoveryMetadataEntry(preferredNetwork, preferredCache, aliases);
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        public java.lang.String toString() {
            return "InstanceDiscoveryMetadataEntry.InstanceDiscoveryMetadataEntryBuilder(preferredNetwork=" + this.preferredNetwork + ", preferredCache=" + this.preferredCache + ", aliases=" + this.aliases + ")";
        }
    }

    @java.lang.SuppressWarnings("all")
    public static InstanceDiscoveryMetadataEntryBuilder builder() {
        return new InstanceDiscoveryMetadataEntryBuilder();
    }

    @java.lang.SuppressWarnings("all")
    String preferredNetwork() {
        return this.preferredNetwork;
    }

    @java.lang.SuppressWarnings("all")
    String preferredCache() {
        return this.preferredCache;
    }

    @java.lang.SuppressWarnings("all")
    Set aliases() {
        return this.aliases;
    }

    @java.lang.SuppressWarnings("all")
    public InstanceDiscoveryMetadataEntry() {
    }

    @java.lang.SuppressWarnings("all")
    public InstanceDiscoveryMetadataEntry(final String preferredNetwork, final String preferredCache, final Set aliases) {
        this.preferredNetwork = preferredNetwork;
        this.preferredCache = preferredCache;
        this.aliases = aliases;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy