Class EndpointRulesSpecUtils
java.lang.Object
software.amazon.awssdk.codegen.poet.rules.EndpointRulesSpecUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientContextParamName
(String paramName) com.squareup.javapoet.ClassName
com.squareup.javapoet.ClassName
com.squareup.javapoet.ClassName
boolean
isDeclaredParam
(String paramName) boolean
isS3()
boolean
com.squareup.javapoet.FieldSpec
parameterBuilderFieldSpec
(String name, ParameterModel model) Creates a builder-class level field for the given parameter initialized to its default value when present.com.squareup.javapoet.MethodSpec
parameterBuilderSetterMethod
(com.squareup.javapoet.ClassName containingClass, String name, ParameterModel model) Creates a builder-class method to set the given parameter.com.squareup.javapoet.MethodSpec
parameterBuilderSetterMethodDeclaration
(com.squareup.javapoet.ClassName containingClass, String name, ParameterModel model) Creates a builder-interface method to set the given parameter.com.squareup.javapoet.MethodSpec
parameterClassAccessorMethod
(String name, ParameterModel model) Creates a data-class method to access the given parameter.com.squareup.javapoet.FieldSpec
parameterClassField
(String name, ParameterModel model) Creates a data-class level field for the given parameter.com.squareup.javapoet.MethodSpec
parameterInterfaceAccessorMethod
(String name, ParameterModel model) Creates a data-interface method to access the given parameter.com.squareup.javapoet.ClassName
com.squareup.javapoet.TypeName
parameterType
(ParameterModel param) paramMethodName
(String param) com.squareup.javapoet.ClassName
com.squareup.javapoet.ClassName
com.squareup.javapoet.ClassName
com.squareup.javapoet.ClassName
com.squareup.javapoet.TypeName
com.squareup.javapoet.ClassName
rulesRuntimeClassName
(String name) com.squareup.javapoet.TypeName
toJavaType
(String type) com.squareup.javapoet.CodeBlock
treeNodeToLiteral
(com.fasterxml.jackson.core.TreeNode treeNode) boolean
com.squareup.javapoet.CodeBlock
valueCreationCode
(String type, com.squareup.javapoet.CodeBlock param) variableName
(String name) Returns the name as a variable name using the intermediate model naming strategy.
-
Constructor Details
-
EndpointRulesSpecUtils
-
-
Method Details
-
basePackage
-
rulesRuntimeClassName
-
parametersClassName
public com.squareup.javapoet.ClassName parametersClassName() -
providerInterfaceName
public com.squareup.javapoet.ClassName providerInterfaceName() -
providerDefaultImplName
public com.squareup.javapoet.ClassName providerDefaultImplName() -
resolverInterceptorName
public com.squareup.javapoet.ClassName resolverInterceptorName() -
requestModifierInterceptorName
public com.squareup.javapoet.ClassName requestModifierInterceptorName() -
clientEndpointTestsName
public com.squareup.javapoet.ClassName clientEndpointTestsName() -
endpointProviderTestsName
public com.squareup.javapoet.ClassName endpointProviderTestsName() -
clientContextParamsName
public com.squareup.javapoet.ClassName clientContextParamsName() -
paramMethodName
-
clientContextParamMethodName
-
clientContextParamName
-
toJavaType
-
valueCreationCode
public com.squareup.javapoet.CodeBlock valueCreationCode(String type, com.squareup.javapoet.CodeBlock param) -
parameterType
-
treeNodeToLiteral
public com.squareup.javapoet.CodeBlock treeNodeToLiteral(com.fasterxml.jackson.core.TreeNode treeNode) -
isS3
public boolean isS3() -
isS3Control
public boolean isS3Control() -
useS3Express
public boolean useS3Express() -
resolverReturnType
public com.squareup.javapoet.TypeName resolverReturnType() -
rulesEngineResourceFiles
-
rulesEngineResourceFiles2
-
parameters
-
isDeclaredParam
-
parameterClassField
Creates a data-class level field for the given parameter. For instanceprivate final Region region;
-
parameterClassAccessorMethod
public com.squareup.javapoet.MethodSpec parameterClassAccessorMethod(String name, ParameterModel model) Creates a data-class method to access the given parameter. For instancepublic Region region() {…};
-
parameterInterfaceAccessorMethod
public com.squareup.javapoet.MethodSpec parameterInterfaceAccessorMethod(String name, ParameterModel model) Creates a data-interface method to access the given parameter. For instanceRegion region();
-
parameterBuilderFieldSpec
Creates a builder-class level field for the given parameter initialized to its default value when present. For instanceprivate Boolean useGlobalEndpoint = false;
-
parameterBuilderSetterMethodDeclaration
public com.squareup.javapoet.MethodSpec parameterBuilderSetterMethodDeclaration(com.squareup.javapoet.ClassName containingClass, String name, ParameterModel model) Creates a builder-interface method to set the given parameter. For instanceBuilder region(Region region);
-
parameterBuilderSetterMethod
public com.squareup.javapoet.MethodSpec parameterBuilderSetterMethod(com.squareup.javapoet.ClassName containingClass, String name, ParameterModel model) Creates a builder-class method to set the given parameter. For instancepublic Builder region(Region region) {…};
-
variableName
-