Class ServicesResource

  • Direct Known Subclasses:
    ServicesDescriptionInner

    public class ServicesResource
    extends com.azure.core.management.Resource
    The common properties of a service.
    • Constructor Detail

      • ServicesResource

        public ServicesResource()
    • Method Detail

      • kind

        public Kind kind()
        Get the kind property: The kind of the service.
        Returns:
        the kind value.
      • withKind

        public ServicesResource withKind​(Kind kind)
        Set the kind property: The kind of the service.
        Parameters:
        kind - the kind value to set.
        Returns:
        the ServicesResource object itself.
      • etag

        public String etag()
        Get the etag property: An etag associated with the resource, used for optimistic concurrency when editing it.
        Returns:
        the etag value.
      • withEtag

        public ServicesResource withEtag​(String etag)
        Set the etag property: An etag associated with the resource, used for optimistic concurrency when editing it.
        Parameters:
        etag - the etag value to set.
        Returns:
        the ServicesResource object itself.
      • identity

        public ServicesResourceIdentity identity()
        Get the identity property: Setting indicating whether the service has a managed identity associated with it.
        Returns:
        the identity value.
      • withIdentity

        public ServicesResource withIdentity​(ServicesResourceIdentity identity)
        Set the identity property: Setting indicating whether the service has a managed identity associated with it.
        Parameters:
        identity - the identity value to set.
        Returns:
        the ServicesResource object itself.
      • withLocation

        public ServicesResource withLocation​(String location)
        Overrides:
        withLocation in class com.azure.core.management.Resource
      • validate

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