Class DescribeResourceResponse

    • Method Detail

      • resourceId

        public final String resourceId()

        The identifier of the described resource.

        Returns:
        The identifier of the described resource.
      • email

        public final String email()

        The email of the described resource.

        Returns:
        The email of the described resource.
      • name

        public final String name()

        The name of the described resource.

        Returns:
        The name of the described resource.
      • typeAsString

        public final String typeAsString()

        The type of the described resource.

        If the service returns an enum value that is not available in the current SDK version, type will return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        Returns:
        The type of the described resource.
        See Also:
        ResourceType
      • bookingOptions

        public final BookingOptions bookingOptions()

        The booking options for the described resource.

        Returns:
        The booking options for the described resource.
      • state

        public final EntityState state()

        The state of the resource: enabled (registered to WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.

        If the service returns an enum value that is not available in the current SDK version, state will return EntityState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The state of the resource: enabled (registered to WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.
        See Also:
        EntityState
      • stateAsString

        public final String stateAsString()

        The state of the resource: enabled (registered to WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.

        If the service returns an enum value that is not available in the current SDK version, state will return EntityState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The state of the resource: enabled (registered to WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.
        See Also:
        EntityState
      • enabledDate

        public final Instant enabledDate()

        The date and time when a resource was enabled for WorkMail, in UNIX epoch time format.

        Returns:
        The date and time when a resource was enabled for WorkMail, in UNIX epoch time format.
      • disabledDate

        public final Instant disabledDate()

        The date and time when a resource was disabled from WorkMail, in UNIX epoch time format.

        Returns:
        The date and time when a resource was disabled from WorkMail, in UNIX epoch time format.
      • description

        public final String description()

        Description of the resource.

        Returns:
        Description of the resource.
      • hiddenFromGlobalAddressList

        public final Boolean hiddenFromGlobalAddressList()

        If enabled, the resource is hidden from the global address list.

        Returns:
        If enabled, the resource is hidden from the global address list.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object