OpenShiftManagedClusterAadIdentityProvider Class

public final class OpenShiftManagedClusterAadIdentityProvider
extends OpenShiftManagedClusterBaseIdentityProvider

Defines the Identity provider for MS AAD.

Constructor Summary

Constructor Description
OpenShiftManagedClusterAadIdentityProvider()

Creates an instance of OpenShiftManagedClusterAadIdentityProvider class.

Method Summary

Modifier and Type Method and Description
String clientId()

Get the clientId property: The clientId password associated with the provider.

String customerAdminGroupId()

Get the customerAdminGroupId property: The groupId to be granted cluster admin role.

static OpenShiftManagedClusterAadIdentityProvider fromJson(JsonReader jsonReader)

Reads an instance of OpenShiftManagedClusterAadIdentityProvider from the JsonReader.

String kind()

Get the kind property: The kind of the provider.

String secret()

Get the secret property: The secret password associated with the provider.

String tenantId()

Get the tenantId property: The tenantId associated with the provider.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OpenShiftManagedClusterAadIdentityProvider withClientId(String clientId)

Set the clientId property: The clientId password associated with the provider.

OpenShiftManagedClusterAadIdentityProvider withCustomerAdminGroupId(String customerAdminGroupId)

Set the customerAdminGroupId property: The groupId to be granted cluster admin role.

OpenShiftManagedClusterAadIdentityProvider withSecret(String secret)

Set the secret property: The secret password associated with the provider.

OpenShiftManagedClusterAadIdentityProvider withTenantId(String tenantId)

Set the tenantId property: The tenantId associated with the provider.

Methods inherited from OpenShiftManagedClusterBaseIdentityProvider

Methods inherited from java.lang.Object

Constructor Details

OpenShiftManagedClusterAadIdentityProvider

public OpenShiftManagedClusterAadIdentityProvider()

Creates an instance of OpenShiftManagedClusterAadIdentityProvider class.

Method Details

clientId

public String clientId()

Get the clientId property: The clientId password associated with the provider.

Returns:

the clientId value.

customerAdminGroupId

public String customerAdminGroupId()

Get the customerAdminGroupId property: The groupId to be granted cluster admin role.

Returns:

the customerAdminGroupId value.

fromJson

public static OpenShiftManagedClusterAadIdentityProvider fromJson(JsonReader jsonReader)

Reads an instance of OpenShiftManagedClusterAadIdentityProvider from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OpenShiftManagedClusterAadIdentityProvider if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the OpenShiftManagedClusterAadIdentityProvider.

kind

public String kind()

Get the kind property: The kind of the provider.

Overrides:

OpenShiftManagedClusterAadIdentityProvider.kind()

Returns:

the kind value.

secret

public String secret()

Get the secret property: The secret password associated with the provider.

Returns:

the secret value.

tenantId

public String tenantId()

Get the tenantId property: The tenantId associated with the provider.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

OpenShiftManagedClusterAadIdentityProvider.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

OpenShiftManagedClusterAadIdentityProvider.validate()

withClientId

public OpenShiftManagedClusterAadIdentityProvider withClientId(String clientId)

Set the clientId property: The clientId password associated with the provider.

Parameters:

clientId - the clientId value to set.

Returns:

the OpenShiftManagedClusterAadIdentityProvider object itself.

withCustomerAdminGroupId

public OpenShiftManagedClusterAadIdentityProvider withCustomerAdminGroupId(String customerAdminGroupId)

Set the customerAdminGroupId property: The groupId to be granted cluster admin role.

Parameters:

customerAdminGroupId - the customerAdminGroupId value to set.

Returns:

the OpenShiftManagedClusterAadIdentityProvider object itself.

withSecret

public OpenShiftManagedClusterAadIdentityProvider withSecret(String secret)

Set the secret property: The secret password associated with the provider.

Parameters:

secret - the secret value to set.

Returns:

the OpenShiftManagedClusterAadIdentityProvider object itself.

withTenantId

public OpenShiftManagedClusterAadIdentityProvider withTenantId(String tenantId)

Set the tenantId property: The tenantId associated with the provider.

Parameters:

tenantId - the tenantId value to set.

Returns:

the OpenShiftManagedClusterAadIdentityProvider object itself.

Applies to