
com.azure.resourcemanager.eventgrid.models.ClientAuthenticationSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-eventgrid Show documentation
Show all versions of azure-resourcemanager-eventgrid Show documentation
This package contains Microsoft Azure SDK for EventGrid Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure EventGrid Management Client. Package tag package-2021-10-preview.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.eventgrid.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* Client authentication settings for namespace resource.
*/
@Fluent
public final class ClientAuthenticationSettings {
/*
* Alternative authentication name sources related to client authentication settings for namespace resource.
*/
@JsonProperty(value = "alternativeAuthenticationNameSources")
private List alternativeAuthenticationNameSources;
/*
* Custom JWT authentication settings for namespace resource.
*/
@JsonProperty(value = "customJwtAuthentication")
private CustomJwtAuthenticationSettings customJwtAuthentication;
/**
* Creates an instance of ClientAuthenticationSettings class.
*/
public ClientAuthenticationSettings() {
}
/**
* Get the alternativeAuthenticationNameSources property: Alternative authentication name sources related to client
* authentication settings for namespace resource.
*
* @return the alternativeAuthenticationNameSources value.
*/
public List alternativeAuthenticationNameSources() {
return this.alternativeAuthenticationNameSources;
}
/**
* Set the alternativeAuthenticationNameSources property: Alternative authentication name sources related to client
* authentication settings for namespace resource.
*
* @param alternativeAuthenticationNameSources the alternativeAuthenticationNameSources value to set.
* @return the ClientAuthenticationSettings object itself.
*/
public ClientAuthenticationSettings withAlternativeAuthenticationNameSources(
List alternativeAuthenticationNameSources) {
this.alternativeAuthenticationNameSources = alternativeAuthenticationNameSources;
return this;
}
/**
* Get the customJwtAuthentication property: Custom JWT authentication settings for namespace resource.
*
* @return the customJwtAuthentication value.
*/
public CustomJwtAuthenticationSettings customJwtAuthentication() {
return this.customJwtAuthentication;
}
/**
* Set the customJwtAuthentication property: Custom JWT authentication settings for namespace resource.
*
* @param customJwtAuthentication the customJwtAuthentication value to set.
* @return the ClientAuthenticationSettings object itself.
*/
public ClientAuthenticationSettings
withCustomJwtAuthentication(CustomJwtAuthenticationSettings customJwtAuthentication) {
this.customJwtAuthentication = customJwtAuthentication;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (customJwtAuthentication() != null) {
customJwtAuthentication().validate();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy