Class GetDocumentationPartResponse

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<GetDocumentationPartResponse.Builder,GetDocumentationPartResponse>

@Generated("software.amazon.awssdk:codegen") public final class GetDocumentationPartResponse extends ApiGatewayResponse implements ToCopyableBuilder<GetDocumentationPartResponse.Builder,GetDocumentationPartResponse>

A documentation part for a targeted API entity.

  • Method Details

    • id

      public final String id()

      The DocumentationPart identifier, generated by API Gateway when the DocumentationPart is created.

      Returns:
      The DocumentationPart identifier, generated by API Gateway when the DocumentationPart is created.
    • location

      public final DocumentationPartLocation location()

      The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.

      Returns:
      The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.
    • properties

      public final String properties()

      A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation.

      Returns:
      A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., "{ \"description\": \"The API does ...\" }". Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of x-amazon-apigateway-documentation.
    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<GetDocumentationPartResponse.Builder,GetDocumentationPartResponse>
      Specified by:
      toBuilder in class AwsResponse
    • builder

      public static GetDocumentationPartResponse.Builder builder()
    • serializableBuilderClass

      public static Class<? extends GetDocumentationPartResponse.Builder> serializableBuilderClass()
    • hashCode

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

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsResponse
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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)
      Overrides:
      getValueForField in class SdkResponse
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo