Interface MapsAccount
public interface MapsAccount
An immutable client-side representation of MapsAccount.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the MapsAccount definition.static interface
The MapsAccount definition stages.static interface
The template for MapsAccount update.static interface
The MapsAccount update stages. -
Method Summary
Modifier and TypeMethodDescriptionid()
Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.maps.fluent.models.MapsAccountInner object.kind()
Gets the kind property: Get or Set Kind property.listKeys()
Get the keys to use with the Maps APIs.com.azure.core.http.rest.Response<MapsAccountKeys>
listKeysWithResponse
(com.azure.core.util.Context context) Get the keys to use with the Maps APIs.location()
Gets the location property: The geo-location where the resource lives.name()
Gets the name property: The name of the resource.Gets the properties property: The map account properties.refresh()
Refreshes the resource to sync with Azure.refresh
(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.regenerateKeys
(MapsKeySpecification keySpecification) Regenerate either the primary or secondary key for use with the Maps APIs.com.azure.core.http.rest.Response<MapsAccountKeys>
regenerateKeysWithResponse
(MapsKeySpecification keySpecification, com.azure.core.util.Context context) Regenerate either the primary or secondary key for use with the Maps APIs.com.azure.core.management.Region
region()
Gets the region of the resource.Gets the name of the resource region.Gets the name of the resource group.sku()
Gets the sku property: The SKU of this account.com.azure.core.management.SystemData
Gets the systemData property: The system meta data relating to this resource.tags()
Gets the tags property: Resource tags.type()
Gets the type property: The type of the resource.update()
Begins update for the MapsAccount resource.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
location
String location()Gets the location property: The geo-location where the resource lives.- Returns:
- the location value.
-
tags
Gets the tags property: Resource tags.- Returns:
- the tags value.
-
sku
Sku sku()Gets the sku property: The SKU of this account.- Returns:
- the sku value.
-
kind
Kind kind()Gets the kind property: Get or Set Kind property.- Returns:
- the kind value.
-
systemData
com.azure.core.management.SystemData systemData()Gets the systemData property: The system meta data relating to this resource.- Returns:
- the systemData value.
-
properties
MapsAccountProperties properties()Gets the properties property: The map account properties.- Returns:
- the properties value.
-
region
com.azure.core.management.Region region()Gets the region of the resource.- Returns:
- the region of the resource.
-
regionName
String regionName()Gets the name of the resource region.- Returns:
- the name of the resource region.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
MapsAccountInner innerModel()Gets the inner com.azure.resourcemanager.maps.fluent.models.MapsAccountInner object.- Returns:
- the inner object.
-
update
MapsAccount.Update update()Begins update for the MapsAccount resource.- Returns:
- the stage of resource update.
-
refresh
MapsAccount refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context
- The context to associate with this operation.- Returns:
- the refreshed resource.
-
listKeysWithResponse
com.azure.core.http.rest.Response<MapsAccountKeys> listKeysWithResponse(com.azure.core.util.Context context) Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.- Parameters:
context
- The context to associate with this operation.- Returns:
- the keys to use with the Maps APIs along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listKeys
MapsAccountKeys listKeys()Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.- Returns:
- the keys to use with the Maps APIs.
- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
regenerateKeysWithResponse
com.azure.core.http.rest.Response<MapsAccountKeys> regenerateKeysWithResponse(MapsKeySpecification keySpecification, com.azure.core.util.Context context) Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.- Parameters:
keySpecification
- Which key to regenerate: primary or secondary.context
- The context to associate with this operation.- Returns:
- the set of keys which can be used to access the Maps REST APIs along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
regenerateKeys
Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.- Parameters:
keySpecification
- Which key to regenerate: primary or secondary.- Returns:
- the set of keys which can be used to access the Maps REST APIs.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-