Class DocumentationPart
- java.lang.Object
-
- software.amazon.awssdk.services.apigateway.model.DocumentationPart
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DocumentationPart.Builder,DocumentationPart>
@Generated("software.amazon.awssdk:codegen") public final class DocumentationPart extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DocumentationPart.Builder,DocumentationPart>
A documentation part for a targeted API entity.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDocumentationPart.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentationPart.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The DocumentationPart identifier, generated by API Gateway when theDocumentationPartis created.DocumentationPartLocationlocation()The location of the API entity to which the documentation applies.Stringproperties()A content map of API-specific key-value pairs describing the targeted API entity.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DocumentationPart.Builder>serializableBuilderClass()DocumentationPart.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
id
public final String id()
The DocumentationPart identifier, generated by API Gateway when the
DocumentationPartis created.- Returns:
- The DocumentationPart identifier, generated by API Gateway when the
DocumentationPartis 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 ofx-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 ofx-amazon-apigateway-documentation.
-
toBuilder
public DocumentationPart.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DocumentationPart.Builder,DocumentationPart>
-
builder
public static DocumentationPart.Builder builder()
-
serializableBuilderClass
public static Class<? extends DocumentationPart.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-