Class AccountInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.cognitiveservices.models.AzureEntityResource
-
- com.azure.resourcemanager.cognitiveservices.fluent.models.AccountInner
-
public final class AccountInner extends AzureEntityResource
Cognitive Services account is an Azure resource representing the provisioned account, it's type, location and SKU.
-
-
Constructor Summary
Constructors Constructor Description AccountInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Identity
identity()
Get the identity property: Identity for the resource.String
kind()
Get the kind property: The Kind of the resource.String
location()
Get the location property: The geo-location where the resource lives.AccountProperties
properties()
Get the properties property: Properties of Cognitive Services account.Sku
sku()
Get the sku property: The resource model definition representing SKU.com.azure.core.management.SystemData
systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.Map<String,String>
tags()
Get the tags property: Resource tags.void
validate()
Validates the instance.AccountInner
withIdentity(Identity identity)
Set the identity property: Identity for the resource.AccountInner
withKind(String kind)
Set the kind property: The Kind of the resource.AccountInner
withLocation(String location)
Set the location property: The geo-location where the resource lives.AccountInner
withProperties(AccountProperties properties)
Set the properties property: Properties of Cognitive Services account.AccountInner
withSku(Sku sku)
Set the sku property: The resource model definition representing SKU.AccountInner
withTags(Map<String,String> tags)
Set the tags property: Resource tags.-
Methods inherited from class com.azure.resourcemanager.cognitiveservices.models.AzureEntityResource
etag
-
-
-
-
Method Detail
-
kind
public String kind()
Get the kind property: The Kind of the resource.- Returns:
- the kind value.
-
withKind
public AccountInner withKind(String kind)
Set the kind property: The Kind of the resource.- Parameters:
kind
- the kind value to set.- Returns:
- the AccountInner object itself.
-
sku
public Sku sku()
Get the sku property: The resource model definition representing SKU.- Returns:
- the sku value.
-
withSku
public AccountInner withSku(Sku sku)
Set the sku property: The resource model definition representing SKU.- Parameters:
sku
- the sku value to set.- Returns:
- the AccountInner object itself.
-
identity
public Identity identity()
Get the identity property: Identity for the resource.- Returns:
- the identity value.
-
withIdentity
public AccountInner withIdentity(Identity identity)
Set the identity property: Identity for the resource.- Parameters:
identity
- the identity value to set.- Returns:
- the AccountInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
tags
public Map<String,String> tags()
Get the tags property: Resource tags.- Returns:
- the tags value.
-
withTags
public AccountInner withTags(Map<String,String> tags)
Set the tags property: Resource tags.- Parameters:
tags
- the tags value to set.- Returns:
- the AccountInner object itself.
-
location
public String location()
Get the location property: The geo-location where the resource lives.- Returns:
- the location value.
-
withLocation
public AccountInner withLocation(String location)
Set the location property: The geo-location where the resource lives.- Parameters:
location
- the location value to set.- Returns:
- the AccountInner object itself.
-
properties
public AccountProperties properties()
Get the properties property: Properties of Cognitive Services account.- Returns:
- the properties value.
-
withProperties
public AccountInner withProperties(AccountProperties properties)
Set the properties property: Properties of Cognitive Services account.- Parameters:
properties
- the properties value to set.- Returns:
- the AccountInner object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAzureEntityResource
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-