Interface Resource.DefinitionWithTags<T>

Type Parameters:
T - the type of the next stage resource definition
All Known Subinterfaces:
GenericResource.Definition, GenericResource.DefinitionStages.WithCreate, ResourceGroup.Definition, ResourceGroup.DefinitionStages.WithCreate
Enclosing interface:
Resource

public static interface Resource.DefinitionWithTags<T>
A resource definition allowing tags to be modified for the resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    withTag(String key, String value)
    Adds a tag to the resource.
    Specifies tags for the resource as a Map.
  • Method Details

    • withTags

      T withTags(Map<String,String> tags)
      Specifies tags for the resource as a Map.
      Parameters:
      tags - a Map of tags
      Returns:
      the next stage of the definition
    • withTag

      T withTag(String key, String value)
      Adds a tag to the resource.
      Parameters:
      key - the key for the tag
      value - the value for the tag
      Returns:
      the next stage of the definition