
templates.common.SyncClientAbstractClass.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-code-generator Show documentation
Show all versions of aws-java-sdk-code-generator Show documentation
The AWS SDK for Java - Code Generator module holds the classes and templates required to generate the AWS Java SDK clients for AWS services.
${fileHeader}
package ${metadata.packageName};
import ${metadata.packageName}.model.*;
import com.amazonaws.*;
<#if hasWaiters>
import ${metadata.packageName}.waiters.${metadata.syncInterface}Waiters;
#if>
/**
* Abstract implementation of {@code ${metadata.syncInterface}}. Convenient
* method forms pass through to the corresponding overload that takes a
* request object, which throws an {@code UnsupportedOperationException}.
*/
public class ${metadata.syncAbstractClass} implements ${metadata.syncInterface} {
protected ${metadata.syncAbstractClass}() {
}
@Override
public void setEndpoint(String endpoint) {
throw new java.lang.UnsupportedOperationException();
}
@Override
public void setRegion(com.amazonaws.regions.Region region) {
throw new java.lang.UnsupportedOperationException();
}
<#list operations?values as operationModel>
<@ClientMethodForUnsupportedOperation.content operationModel />
<@ClientMethodForOperationWithSimpleForm.content operationModel/>
#list>
<#if AdditionalClientMethodsMacro?has_content>
<@AdditionalClientMethodsMacro.content .data_model />
#if>
<#if customizationConfig.skipInterfaceAdditions == false>
@Override
public void shutdown() {
throw new java.lang.UnsupportedOperationException();
}
<#assign responseMetadataClassName=customizationConfig.customResponseMetadataClassName!"com.amazonaws.ResponseMetadata" />
@Override
public ${responseMetadataClassName} getCachedResponseMetadata(com.amazonaws.AmazonWebServiceRequest request) {
throw new java.lang.UnsupportedOperationException();
}
#if>
<#if hasWaiters>
@Override
public ${metadata.syncInterface}Waiters waiters() {
throw new java.lang.UnsupportedOperationException();
}
#if>
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy