in aws-ec2-transitgatewaymulticastdomain/src/main/java/software/amazon/ec2/transitgatewaymulticastdomain/workflow/read/Read.java [69:95]
private ResourceModel translateResponsesToModel(DescribeTransitGatewayMulticastDomainsResponse awsResponse) {
TransitGatewayMulticastDomain response = awsResponse.transitGatewayMulticastDomains().get(0);
if(response.options() == null) {
return ResourceModel.builder()
.transitGatewayMulticastDomainId(response.transitGatewayMulticastDomainId())
.transitGatewayId(response.transitGatewayId())
.state(response.state().toString())
.creationTime(response.creationTime().toString())
.tags(TagUtils.sdkTagsToCfnTags(response.tags()))
.build();
} else {
return ResourceModel.builder()
.transitGatewayMulticastDomainId(response.transitGatewayMulticastDomainId())
.transitGatewayId(response.transitGatewayId())
.transitGatewayMulticastDomainArn(response.transitGatewayMulticastDomainArn())
.state(response.state().toString())
.creationTime(response.creationTime().toString())
.options(
Options.builder()
.autoAcceptSharedAssociations(response.options().autoAcceptSharedAssociationsAsString())
.igmpv2Support(response.options().igmpv2SupportAsString())
.staticSourcesSupport(response.options().staticSourcesSupportAsString())
.build())
.tags(TagUtils.sdkTagsToCfnTags(response.tags()))
.build();
}
}