Class MapsKeySpecification

java.lang.Object
com.azure.resourcemanager.maps.models.MapsKeySpecification

public final class MapsKeySpecification extends Object
Whether the operation refers to the primary or secondary key.
  • Constructor Details

    • MapsKeySpecification

      public MapsKeySpecification()
      Creates an instance of MapsKeySpecification class.
  • Method Details

    • keyType

      public KeyType keyType()
      Get the keyType property: Whether the operation refers to the primary or secondary key.
      Returns:
      the keyType value.
    • withKeyType

      public MapsKeySpecification withKeyType(KeyType keyType)
      Set the keyType property: Whether the operation refers to the primary or secondary key.
      Parameters:
      keyType - the keyType value to set.
      Returns:
      the MapsKeySpecification object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.