@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ImportDocumentationPartsRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
SdkBytes |
body()
Raw byte array representing the to-be-imported documentation parts.
|
static ImportDocumentationPartsRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Boolean |
failOnWarnings()
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) |
int |
hashCode() |
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. |
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. |
String |
restApiId()
The string identifier of the associated RestApi.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ImportDocumentationPartsRequest.Builder> |
serializableBuilderClass() |
ImportDocumentationPartsRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String restApiId()
The string identifier of the associated RestApi.
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 is
merge.
If the service returns an enum value that is not available in the current SDK version, mode will return
PutMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
modeAsString().
overwrite) any existing
DocumentationParts definition or to merge (merge) the new definition into the existing one.
The default value is merge.PutModepublic 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 is
merge.
If the service returns an enum value that is not available in the current SDK version, mode will return
PutMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
modeAsString().
overwrite) any existing
DocumentationParts definition or to merge (merge) the new definition into the existing one.
The default value is merge.PutModepublic 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 is false.
true) or not
(false) when a warning is encountered. The default value is false.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.
public ImportDocumentationPartsRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ImportDocumentationPartsRequest.Builder,ImportDocumentationPartsRequest>toBuilder in class ApiGatewayRequestpublic static ImportDocumentationPartsRequest.Builder builder()
public static Class<? extends ImportDocumentationPartsRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.