in aws-ec2-transitgatewayvpcattachment/src/main/java/com/aws/ec2/transitgatewayvpcattachment/workflow/create/Create.java [60:81]
private CreateTransitGatewayVpcAttachmentRequestOptions translateModelToOptions(ResourceModel model) {
//DEFAULT OPTIONS
String ipv6Support = "disable";
String applianceModeSupport = "disable";
String dnsSupport = "disable";
if(model.getOptions() != null) {
if(model.getOptions().getIpv6Support() != null) {
ipv6Support = model.getOptions().getIpv6Support() ;
}
if(model.getOptions().getApplianceModeSupport() != null) {
applianceModeSupport = model.getOptions().getApplianceModeSupport();
}
if(model.getOptions().getDnsSupport() != null) {
dnsSupport = model.getOptions().getDnsSupport();
}
}
return CreateTransitGatewayVpcAttachmentRequestOptions.builder()
.ipv6Support(ipv6Support)
.applianceModeSupport(applianceModeSupport)
.dnsSupport(dnsSupport)
.build();
}