Class GetGeneratedTemplateResponse

    • Method Detail

      • status

        public final GeneratedTemplateStatus status()

        The status of the template generation. Supported values are:

        • CreatePending - the creation of the template is pending.

        • CreateInProgress - the creation of the template is in progress.

        • DeletePending - the deletion of the template is pending.

        • DeleteInProgress - the deletion of the template is in progress.

        • UpdatePending - the update of the template is pending.

        • UpdateInProgress - the update of the template is in progress.

        • Failed - the template operation failed.

        • Complete - the template operation is complete.

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

        Returns:
        The status of the template generation. Supported values are:

        • CreatePending - the creation of the template is pending.

        • CreateInProgress - the creation of the template is in progress.

        • DeletePending - the deletion of the template is pending.

        • DeleteInProgress - the deletion of the template is in progress.

        • UpdatePending - the update of the template is pending.

        • UpdateInProgress - the update of the template is in progress.

        • Failed - the template operation failed.

        • Complete - the template operation is complete.

        See Also:
        GeneratedTemplateStatus
      • statusAsString

        public final String statusAsString()

        The status of the template generation. Supported values are:

        • CreatePending - the creation of the template is pending.

        • CreateInProgress - the creation of the template is in progress.

        • DeletePending - the deletion of the template is pending.

        • DeleteInProgress - the deletion of the template is in progress.

        • UpdatePending - the update of the template is pending.

        • UpdateInProgress - the update of the template is in progress.

        • Failed - the template operation failed.

        • Complete - the template operation is complete.

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

        Returns:
        The status of the template generation. Supported values are:

        • CreatePending - the creation of the template is pending.

        • CreateInProgress - the creation of the template is in progress.

        • DeletePending - the deletion of the template is pending.

        • DeleteInProgress - the deletion of the template is in progress.

        • UpdatePending - the update of the template is pending.

        • UpdateInProgress - the update of the template is in progress.

        • Failed - the template operation failed.

        • Complete - the template operation is complete.

        See Also:
        GeneratedTemplateStatus
      • templateBody

        public final String templateBody()

        The template body of the generated template, in the language specified by the Language parameter.

        Returns:
        The template body of the generated template, in the language specified by the Language parameter.
      • 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