共用方式為


ApplicationInsightsComponentApiKeyInner Class

  • java.lang.Object
    • com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentApiKeyInner

Implements

public final class ApplicationInsightsComponentApiKeyInner
implements JsonSerializable<ApplicationInsightsComponentApiKeyInner>

Properties that define an API key of an Application Insights Component.

Constructor Summary

Constructor Description
ApplicationInsightsComponentApiKeyInner()

Creates an instance of ApplicationInsightsComponentApiKeyInner class.

Method Summary

Modifier and Type Method and Description
String apiKey()

Get the apiKey property: The API key value.

String createdDate()

Get the createdDate property: The create date of this API key.

static ApplicationInsightsComponentApiKeyInner fromJson(JsonReader jsonReader)

Reads an instance of ApplicationInsightsComponentApiKeyInner from the JsonReader.

String id()

Get the id property: The unique ID of the API key inside an Application Insights component.

List<String> linkedReadProperties()

Get the linkedReadProperties property: The read access rights of this API Key.

List<String> linkedWriteProperties()

Get the linkedWriteProperties property: The write access rights of this API Key.

String name()

Get the name property: The name of the API key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationInsightsComponentApiKeyInner withCreatedDate(String createdDate)

Set the createdDate property: The create date of this API key.

ApplicationInsightsComponentApiKeyInner withLinkedReadProperties(List<String> linkedReadProperties)

Set the linkedReadProperties property: The read access rights of this API Key.

ApplicationInsightsComponentApiKeyInner withLinkedWriteProperties(List<String> linkedWriteProperties)

Set the linkedWriteProperties property: The write access rights of this API Key.

ApplicationInsightsComponentApiKeyInner withName(String name)

Set the name property: The name of the API key.

Methods inherited from java.lang.Object

Constructor Details

ApplicationInsightsComponentApiKeyInner

public ApplicationInsightsComponentApiKeyInner()

Creates an instance of ApplicationInsightsComponentApiKeyInner class.

Method Details

apiKey

public String apiKey()

Get the apiKey property: The API key value. It will be only return once when the API Key was created.

Returns:

the apiKey value.

createdDate

public String createdDate()

Get the createdDate property: The create date of this API key.

Returns:

the createdDate value.

fromJson

public static ApplicationInsightsComponentApiKeyInner fromJson(JsonReader jsonReader)

Reads an instance of ApplicationInsightsComponentApiKeyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The unique ID of the API key inside an Application Insights component. It is auto generated when the API key is created.

Returns:

the id value.

linkedReadProperties

public List<String> linkedReadProperties()

Get the linkedReadProperties property: The read access rights of this API Key.

Returns:

the linkedReadProperties value.

linkedWriteProperties

public List<String> linkedWriteProperties()

Get the linkedWriteProperties property: The write access rights of this API Key.

Returns:

the linkedWriteProperties value.

name

public String name()

Get the name property: The name of the API key.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCreatedDate

public ApplicationInsightsComponentApiKeyInner withCreatedDate(String createdDate)

Set the createdDate property: The create date of this API key.

Parameters:

createdDate - the createdDate value to set.

Returns:

the ApplicationInsightsComponentApiKeyInner object itself.

withLinkedReadProperties

public ApplicationInsightsComponentApiKeyInner withLinkedReadProperties(List<String> linkedReadProperties)

Set the linkedReadProperties property: The read access rights of this API Key.

Parameters:

linkedReadProperties - the linkedReadProperties value to set.

Returns:

the ApplicationInsightsComponentApiKeyInner object itself.

withLinkedWriteProperties

public ApplicationInsightsComponentApiKeyInner withLinkedWriteProperties(List<String> linkedWriteProperties)

Set the linkedWriteProperties property: The write access rights of this API Key.

Parameters:

linkedWriteProperties - the linkedWriteProperties value to set.

Returns:

the ApplicationInsightsComponentApiKeyInner object itself.

withName

public ApplicationInsightsComponentApiKeyInner withName(String name)

Set the name property: The name of the API key.

Parameters:

name - the name value to set.

Returns:

the ApplicationInsightsComponentApiKeyInner object itself.

Applies to