Class LaunchTemplateSpecification

    • Method Detail

      • name

        public final String name()

        The name of the launch template.

        You must specify either the launch template name or the launch template ID in the request, but not both.

        Returns:
        The name of the launch template.

        You must specify either the launch template name or the launch template ID in the request, but not both.

      • version

        public final String version()

        The version number of the launch template to use. If no version is specified, then the template's default version is used.

        Returns:
        The version number of the launch template to use. If no version is specified, then the template's default version is used.
      • id

        public final String id()

        The ID of the launch template.

        You must specify either the launch template ID or the launch template name in the request, but not both.

        Returns:
        The ID of the launch template.

        You must specify either the launch template ID or the launch template name in the request, but not both.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)