Class ConvenienceTypeOverload
- java.lang.Object
-
- software.amazon.awssdk.codegen.model.config.customization.ConvenienceTypeOverload
-
public class ConvenienceTypeOverload extends Object
Customization to allow generation of additional setter overloads for a 'convenience' type (i.e. a different type then what the member actually is but a more convenient representation to work with, I.E. String rather than SdkBytes). Customization is configured with an adapter that knows how to convert the 'convenience' type to the actual member typeNote - This customization is not directly exposed through
CustomizationConfigat the moment. Instead several pre-canned customizations use this under the hood but expose limited functionality for overloading setters. This decision was made to discourage use of overloaded types and instead model the member in a more natural way to begin with. In the future we may either decide to fully expose this customization or just add more pre-canned settings as the need arisesCurrently this does not support overloads for List or Map types but it could be easily implemented in the Generator.
-
-
Constructor Summary
Constructors Constructor Description ConvenienceTypeOverload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(ShapeModel shape, MemberModel member)StringgetConvenienceType()StringgetMemberName()StringgetShapeName()StringgetTypeAdapterFqcn()voidsetConvenienceType(String convenienceType)voidsetMemberName(String memberName)voidsetShapeName(String shapeName)voidsetTypeAdapterFqcn(String typeAdapterFqcn)ConvenienceTypeOverloadwithConvenienceType(String convenienceType)ConvenienceTypeOverloadwithMemberName(String memberName)ConvenienceTypeOverloadwithShapeName(String shapeName)ConvenienceTypeOverloadwithTypeAdapterFqcn(String typeAdapterFqcn)
-
-
-
Method Detail
-
getShapeName
public String getShapeName()
-
setShapeName
public void setShapeName(String shapeName)
-
withShapeName
public ConvenienceTypeOverload withShapeName(String shapeName)
-
getMemberName
public String getMemberName()
-
setMemberName
public void setMemberName(String memberName)
-
withMemberName
public ConvenienceTypeOverload withMemberName(String memberName)
-
getConvenienceType
public String getConvenienceType()
-
setConvenienceType
public void setConvenienceType(String convenienceType)
-
withConvenienceType
public ConvenienceTypeOverload withConvenienceType(String convenienceType)
-
getTypeAdapterFqcn
public String getTypeAdapterFqcn()
-
setTypeAdapterFqcn
public void setTypeAdapterFqcn(String typeAdapterFqcn)
-
withTypeAdapterFqcn
public ConvenienceTypeOverload withTypeAdapterFqcn(String typeAdapterFqcn)
-
accepts
public boolean accepts(ShapeModel shape, MemberModel member)
- Parameters:
shape- Current shapemember- Current member- Returns:
- True if the
ConvenienceTypeOverloadapplies. False otherwise
-
-