Class DefaultNamingStrategy
java.lang.Object
software.amazon.awssdk.codegen.naming.DefaultNamingStrategy
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultNamingStrategy
(ServiceModel serviceModel, CustomizationConfig customizationConfig) -
Method Summary
Modifier and TypeMethodDescriptiongetAuthSchemePackageName
(String serviceName) Retrieve the auth scheme package name that should be used based on the service name.getBatchManagerPackageName
(String serviceName) Retrieve the batchManager package name that should be used based on the service name.getBeanStyleGetterMethodName
(String memberName, Shape parentShape, Shape c2jShape) getBeanStyleSetterMethodName
(String memberName, Shape parentShape, Shape c2jShape) getClientPackageName
(String serviceName) Retrieve the client package name that should be used based on the service name.getEndpointRulesPackageName
(String serviceName) Retrieve the endpoint rules package name that should be used based on the service name.getEnumValueName
(String enumValue) getExceptionName
(String errorShapeName) getExistenceCheckMethodName
(String memberName, Shape parentShape) Names a method that would check for existence of the member in the response.getFluentEnumGetterMethodName
(String memberName, Shape parentShape, Shape shape) getFluentEnumSetterMethodName
(String memberName, Shape parentShape, Shape shape) getFluentGetterMethodName
(String memberName, Shape parentShape, Shape shape) getFluentSetterMethodName
(String memberName, Shape parentShape, Shape shape) getJmesPathPackageName
(String serviceName) Retrieve the path runtime package name that should be used based on the service name.getModelPackageName
(String serviceName) Retrieve the model package name that should be used based on the service name.getPaginatorsPackageName
(String serviceName) Retrieve the paginators package name that should be used based on the service name.getRequestClassName
(String operationName) getRequestTransformPackageName
(String serviceName) Retrieve the request transform package name that should be used based on the service name.getResponseClassName
(String operationName) getSdkFieldFieldName
(MemberModel memberModel) Stuttering is intentional, returns the name of theSdkField
field.Retrieve the service name that should be used based on the model.Retrieve the service name that should be used for environment variables.Retrieve the service name that should be used for profile properties.Retrieve the service name that should be used for system properties.getShapeClassName
(String shapeName) Retrieve the service's signing name that should be used based on the model.Retrieve the service's signing name that should be used for environment variables.Retrieve the service's signing name that should be used for system properties.getSmokeTestPackageName
(String serviceName) Retrieve the smote test package name that should be used based on the service name.getTransformPackageName
(String serviceName) Retrieve the transform package name that should be used based on the service name.getUnionEnumTypeName
(MemberModel memberModel) Returns the name of the provided member as if it will be included in an enum (as in, when the parent shape is a union and we need to create an enum with each member name in it).getVariableName
(String name) getWaitersPackageName
(String serviceName) Retrieve the waiters package name that should be used based on the service name.void
validateCustomerVisibleNaming
(IntermediateModel trimmedModel) Verify the customer-visible naming in the provided intermediate model will compile and is idiomatic to Java.
-
Constructor Details
-
DefaultNamingStrategy
-
-
Method Details
-
getServiceName
Description copied from interface:NamingStrategy
Retrieve the service name that should be used based on the model.- Specified by:
getServiceName
in interfaceNamingStrategy
-
getServiceNameForEnvironmentVariables
Description copied from interface:NamingStrategy
Retrieve the service name that should be used for environment variables.- Specified by:
getServiceNameForEnvironmentVariables
in interfaceNamingStrategy
-
getServiceNameForSystemProperties
Description copied from interface:NamingStrategy
Retrieve the service name that should be used for system properties.- Specified by:
getServiceNameForSystemProperties
in interfaceNamingStrategy
-
getServiceNameForProfileFile
Description copied from interface:NamingStrategy
Retrieve the service name that should be used for profile properties.- Specified by:
getServiceNameForProfileFile
in interfaceNamingStrategy
-
getClientPackageName
Description copied from interface:NamingStrategy
Retrieve the client package name that should be used based on the service name.- Specified by:
getClientPackageName
in interfaceNamingStrategy
-
getModelPackageName
Description copied from interface:NamingStrategy
Retrieve the model package name that should be used based on the service name.- Specified by:
getModelPackageName
in interfaceNamingStrategy
-
getTransformPackageName
Description copied from interface:NamingStrategy
Retrieve the transform package name that should be used based on the service name.- Specified by:
getTransformPackageName
in interfaceNamingStrategy
-
getRequestTransformPackageName
Description copied from interface:NamingStrategy
Retrieve the request transform package name that should be used based on the service name.- Specified by:
getRequestTransformPackageName
in interfaceNamingStrategy
-
getPaginatorsPackageName
Description copied from interface:NamingStrategy
Retrieve the paginators package name that should be used based on the service name.- Specified by:
getPaginatorsPackageName
in interfaceNamingStrategy
-
getWaitersPackageName
Description copied from interface:NamingStrategy
Retrieve the waiters package name that should be used based on the service name.- Specified by:
getWaitersPackageName
in interfaceNamingStrategy
-
getEndpointRulesPackageName
Description copied from interface:NamingStrategy
Retrieve the endpoint rules package name that should be used based on the service name.- Specified by:
getEndpointRulesPackageName
in interfaceNamingStrategy
-
getAuthSchemePackageName
Description copied from interface:NamingStrategy
Retrieve the auth scheme package name that should be used based on the service name.- Specified by:
getAuthSchemePackageName
in interfaceNamingStrategy
-
getJmesPathPackageName
Description copied from interface:NamingStrategy
Retrieve the path runtime package name that should be used based on the service name.- Specified by:
getJmesPathPackageName
in interfaceNamingStrategy
-
getBatchManagerPackageName
Description copied from interface:NamingStrategy
Retrieve the batchManager package name that should be used based on the service name.- Specified by:
getBatchManagerPackageName
in interfaceNamingStrategy
-
getSmokeTestPackageName
Description copied from interface:NamingStrategy
Retrieve the smote test package name that should be used based on the service name.- Specified by:
getSmokeTestPackageName
in interfaceNamingStrategy
-
getExceptionName
- Specified by:
getExceptionName
in interfaceNamingStrategy
- Parameters:
errorShapeName
- Name of error shape to derive exception class name from.- Returns:
- Appropriate name to use for a Java exception class name
-
getRequestClassName
- Specified by:
getRequestClassName
in interfaceNamingStrategy
- Parameters:
operationName
- Name of operation used to derive request class name.- Returns:
- Appropriate name to use for the Java class representing the request shape.
-
getResponseClassName
- Specified by:
getResponseClassName
in interfaceNamingStrategy
- Parameters:
operationName
- Name of operation used to derive response class name.- Returns:
- Appropriate name to use for the Java class representing the response shape.
-
getVariableName
- Specified by:
getVariableName
in interfaceNamingStrategy
- Parameters:
name
- Some contextual name to derive variable name from (i.e. member name, java class name, etc).- Returns:
- Appropriate name to use for a Java variable or field.
-
getEnumValueName
- Specified by:
getEnumValueName
in interfaceNamingStrategy
- Parameters:
enumValue
- Enum value as defined in the service model used to derive the java name.- Returns:
- Appropriate name to use for a Java enum value
-
getShapeClassName
- Specified by:
getShapeClassName
in interfaceNamingStrategy
- Parameters:
shapeName
- Name of structure used to derive Java class name.- Returns:
- Appropriate name to use for a Java class for an arbitrary (not a request, response, error) structure.
-
getFluentGetterMethodName
- Specified by:
getFluentGetterMethodName
in interfaceNamingStrategy
- Parameters:
memberName
- Member name to name getter for.shape
- The shape associated with the member.- Returns:
- Name of the getter method for a model class member.
-
getFluentEnumGetterMethodName
- Specified by:
getFluentEnumGetterMethodName
in interfaceNamingStrategy
- Parameters:
memberName
- The full member to get the name for.shape
- The shape associated with the member.- Returns:
- Name of the getter method for an enum model class member.
-
getExistenceCheckMethodName
Description copied from interface:NamingStrategy
Names a method that would check for existence of the member in the response.- Specified by:
getExistenceCheckMethodName
in interfaceNamingStrategy
- Parameters:
memberName
- The member name to get the method name for.parentShape
- The shape containing the member.- Returns:
- Name of an existence check method.
-
getBeanStyleGetterMethodName
- Specified by:
getBeanStyleGetterMethodName
in interfaceNamingStrategy
- Parameters:
memberName
- Member name to name getter for.- Returns:
- Name of the JavaBean getter method for model class member.
-
getBeanStyleSetterMethodName
- Specified by:
getBeanStyleSetterMethodName
in interfaceNamingStrategy
- Parameters:
memberName
- Member name to name setter for.- Returns:
- Name of the JavaBean setter method for model class member.
-
getFluentSetterMethodName
- Specified by:
getFluentSetterMethodName
in interfaceNamingStrategy
- Parameters:
memberName
- Member name to name fluent setter for.- Returns:
- Appropriate name to use for fluent setter method (i.e. withFoo) for a model class member.
-
getFluentEnumSetterMethodName
- Specified by:
getFluentEnumSetterMethodName
in interfaceNamingStrategy
- Parameters:
memberName
- The full member to get the name for.shape
- The shape associated with the member.- Returns:
- Name of the getter method for an enum model class member.
-
getSdkFieldFieldName
Description copied from interface:NamingStrategy
Stuttering is intentional, returns the name of theSdkField
field.- Specified by:
getSdkFieldFieldName
in interfaceNamingStrategy
- Parameters:
memberModel
- Member to generate field name for.- Returns:
- Name of field for
SdkField
pojo.
-
getUnionEnumTypeName
Description copied from interface:NamingStrategy
Returns the name of the provided member as if it will be included in an enum (as in, when the parent shape is a union and we need to create an enum with each member name in it).- Specified by:
getUnionEnumTypeName
in interfaceNamingStrategy
- Parameters:
memberModel
- Member to generate the union enum type name for.
-
getSigningName
Description copied from interface:NamingStrategy
Retrieve the service's signing name that should be used based on the model.- Specified by:
getSigningName
in interfaceNamingStrategy
-
getSigningNameForEnvironmentVariables
Description copied from interface:NamingStrategy
Retrieve the service's signing name that should be used for environment variables.- Specified by:
getSigningNameForEnvironmentVariables
in interfaceNamingStrategy
-
getSigningNameForSystemProperties
Description copied from interface:NamingStrategy
Retrieve the service's signing name that should be used for system properties.- Specified by:
getSigningNameForSystemProperties
in interfaceNamingStrategy
-
validateCustomerVisibleNaming
Description copied from interface:NamingStrategy
Verify the customer-visible naming in the provided intermediate model will compile and is idiomatic to Java.- Specified by:
validateCustomerVisibleNaming
in interfaceNamingStrategy
-