@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(restApiId()); hashCode = 31 * hashCode + Objects.hashCode(documentationVersion()); return hashCode; }
@Override public DeleteDocumentationVersionRequest build() { return new DeleteDocumentationVersionRequest(this); }
return deleteDocumentationVersion(DeleteDocumentationVersionRequest.builder() .applyMutation(deleteDocumentationVersionRequest).build());
return deleteDocumentationVersion(DeleteDocumentationVersionRequest.builder() .applyMutation(deleteDocumentationVersionRequest).build());
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DeleteDocumentationVersionRequest)) { return false; } DeleteDocumentationVersionRequest other = (DeleteDocumentationVersionRequest) obj; return Objects.equals(restApiId(), other.restApiId()) && Objects.equals(documentationVersion(), other.documentationVersion()); }
NotFoundException, BadRequestException, ConflictException, TooManyRequestsException, AwsServiceException, SdkClientException, ApiGatewayException { return deleteDocumentationVersion(DeleteDocumentationVersionRequest.builder() .applyMutation(deleteDocumentationVersionRequest).build());
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "restApiId": return Optional.ofNullable(clazz.cast(restApiId())); case "documentationVersion": return Optional.ofNullable(clazz.cast(documentationVersion())); default: return Optional.empty(); } }
/** * 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. */ @Override public String toString() { return ToString.builder("DeleteDocumentationVersionRequest").add("RestApiId", restApiId()) .add("DocumentationVersion", documentationVersion()).build(); }
/** * Marshall the given parameter object */ public void marshall(DeleteDocumentationVersionRequest deleteDocumentationVersionRequest, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(deleteDocumentationVersionRequest, "deleteDocumentationVersionRequest"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(deleteDocumentationVersionRequest.restApiId(), RESTAPIID_BINDING); protocolMarshaller.marshall(deleteDocumentationVersionRequest.documentationVersion(), DOCUMENTATIONVERSION_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }