Class ImportDocumentationPartsRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.apigateway.model.ApiGatewayRequest
-
- software.amazon.awssdk.services.apigateway.model.ImportDocumentationPartsRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ImportDocumentationPartsRequest.Builder,ImportDocumentationPartsRequest>
@Generated("software.amazon.awssdk:codegen") public final class ImportDocumentationPartsRequest extends ApiGatewayRequest implements ToCopyableBuilder<ImportDocumentationPartsRequest.Builder,ImportDocumentationPartsRequest>
Import documentation parts from an external (e.g., OpenAPI) definition file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceImportDocumentationPartsRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SdkBytesbody()Raw byte array representing the to-be-imported documentation parts.static ImportDocumentationPartsRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)BooleanfailOnWarnings()A query parameter to specify whether to rollback the documentation importation (true) or not (false) when a warning is encountered.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()PutModemode()A query parameter to indicate whether to overwrite (overwrite) any existing DocumentationParts definition or to merge (merge) the new definition into the existing one.StringmodeAsString()A query parameter to indicate whether to overwrite (overwrite) any existing DocumentationParts definition or to merge (merge) the new definition into the existing one.StringrestApiId()The string identifier of the associated RestApi.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ImportDocumentationPartsRequest.Builder>serializableBuilderClass()ImportDocumentationPartsRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
restApiId
public final String restApiId()
The string identifier of the associated RestApi.
- Returns:
- The string identifier of the associated RestApi.
-
mode
public final PutMode mode()
A query parameter to indicate whether to overwrite (
overwrite) any existing DocumentationParts definition or to merge (merge) the new definition into the existing one. The default value ismerge.If the service returns an enum value that is not available in the current SDK version,
modewill returnPutMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommodeAsString().- Returns:
- A query parameter to indicate whether to overwrite (
overwrite) any existing DocumentationParts definition or to merge (merge) the new definition into the existing one. The default value ismerge. - See Also:
PutMode
-
modeAsString
public final String modeAsString()
A query parameter to indicate whether to overwrite (
overwrite) any existing DocumentationParts definition or to merge (merge) the new definition into the existing one. The default value ismerge.If the service returns an enum value that is not available in the current SDK version,
modewill returnPutMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommodeAsString().- Returns:
- A query parameter to indicate whether to overwrite (
overwrite) any existing DocumentationParts definition or to merge (merge) the new definition into the existing one. The default value ismerge. - See Also:
PutMode
-
failOnWarnings
public final Boolean failOnWarnings()
A query parameter to specify whether to rollback the documentation importation (
true) or not (false) when a warning is encountered. The default value isfalse.- Returns:
- A query parameter to specify whether to rollback the documentation importation (
true) or not (false) when a warning is encountered. The default value isfalse.
-
body
public final SdkBytes body()
Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.
- Returns:
- Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.
-
toBuilder
public ImportDocumentationPartsRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ImportDocumentationPartsRequest.Builder,ImportDocumentationPartsRequest>- Specified by:
toBuilderin classApiGatewayRequest
-
builder
public static ImportDocumentationPartsRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends ImportDocumentationPartsRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-