GcpProjectDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.GcpProjectDetails

Implements

public final class GcpProjectDetails
implements JsonSerializable<GcpProjectDetails>

The details about the project represented by the security connector.

Constructor Summary

Constructor Description
GcpProjectDetails()

Creates an instance of GcpProjectDetails class.

Method Summary

Modifier and Type Method and Description
static GcpProjectDetails fromJson(JsonReader jsonReader)

Reads an instance of GcpProjectDetails from the JsonReader.

String projectId()

Get the projectId property: The GCP Project id.

String projectName()

Get the projectName property: GCP project name.

String projectNumber()

Get the projectNumber property: The unique GCP Project number.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GcpProjectDetails withProjectId(String projectId)

Set the projectId property: The GCP Project id.

GcpProjectDetails withProjectNumber(String projectNumber)

Set the projectNumber property: The unique GCP Project number.

String workloadIdentityPoolId()

Get the workloadIdentityPoolId property: The GCP workload identity federation pool id.

Methods inherited from java.lang.Object

Constructor Details

GcpProjectDetails

public GcpProjectDetails()

Creates an instance of GcpProjectDetails class.

Method Details

fromJson

public static GcpProjectDetails fromJson(JsonReader jsonReader)

Reads an instance of GcpProjectDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GcpProjectDetails 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 GcpProjectDetails.

projectId

public String projectId()

Get the projectId property: The GCP Project id.

Returns:

the projectId value.

projectName

public String projectName()

Get the projectName property: GCP project name.

Returns:

the projectName value.

projectNumber

public String projectNumber()

Get the projectNumber property: The unique GCP Project number.

Returns:

the projectNumber value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withProjectId

public GcpProjectDetails withProjectId(String projectId)

Set the projectId property: The GCP Project id.

Parameters:

projectId - the projectId value to set.

Returns:

the GcpProjectDetails object itself.

withProjectNumber

public GcpProjectDetails withProjectNumber(String projectNumber)

Set the projectNumber property: The unique GCP Project number.

Parameters:

projectNumber - the projectNumber value to set.

Returns:

the GcpProjectDetails object itself.

workloadIdentityPoolId

public String workloadIdentityPoolId()

Get the workloadIdentityPoolId property: The GCP workload identity federation pool id.

Returns:

the workloadIdentityPoolId value.

Applies to