Class ApplicationInsightsComponentApiKeyInner
- java.lang.Object
-
- com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentApiKeyInner
-
public final class ApplicationInsightsComponentApiKeyInner extends Object
Properties that define an API key of an Application Insights Component.
-
-
Constructor Summary
Constructors Constructor Description ApplicationInsightsComponentApiKeyInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apiKey()
Get the apiKey property: The API key value.String
createdDate()
Get the createdDate property: The create date of this API key.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.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.
-
-
-
Method Detail
-
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.
-
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.
-
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.
-
name
public String name()
Get the name property: The name of the API key.- Returns:
- the name value.
-
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.
-
linkedReadProperties
public List<String> linkedReadProperties()
Get the linkedReadProperties property: The read access rights of this API Key.- Returns:
- the linkedReadProperties value.
-
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.
-
linkedWriteProperties
public List<String> linkedWriteProperties()
Get the linkedWriteProperties property: The write access rights of this API Key.- Returns:
- the linkedWriteProperties value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-