in services/route53/src/main/java/software/amazon/awssdk/services/route53/internal/Route53IdInterceptor.java [59:186]
public SdkResponse modifyResponse(Context.ModifyResponse context, ExecutionAttributes executionAttributes) {
SdkResponse response = context.response();
if (response instanceof ChangeResourceRecordSetsResponse) {
ChangeResourceRecordSetsResponse result = (ChangeResourceRecordSetsResponse) response;
return result.toBuilder()
.changeInfo(removePrefix(result.changeInfo()))
.build();
} else if (response instanceof CreateHostedZoneResponse) {
CreateHostedZoneResponse result = (CreateHostedZoneResponse) response;
return result.toBuilder()
.changeInfo(removePrefix(result.changeInfo()))
.hostedZone(removePrefix(result.hostedZone()))
.delegationSet(removePrefix(result.delegationSet()))
.build();
} else if (response instanceof DeleteHostedZoneResponse) {
DeleteHostedZoneResponse result = (DeleteHostedZoneResponse) response;
return result.toBuilder()
.changeInfo(removePrefix(result.changeInfo()))
.build();
} else if (response instanceof GetChangeResponse) {
GetChangeResponse result = (GetChangeResponse) response;
return result.toBuilder()
.changeInfo(removePrefix(result.changeInfo()))
.build();
} else if (response instanceof GetHostedZoneResponse) {
GetHostedZoneResponse result = (GetHostedZoneResponse) response;
return result.toBuilder()
.hostedZone(removePrefix(result.hostedZone()))
.delegationSet(removePrefix(result.delegationSet()))
.build();
} else if (response instanceof ListHostedZonesResponse) {
ListHostedZonesResponse result = (ListHostedZonesResponse) response;
return result.toBuilder()
.hostedZones(result.hostedZones().stream()
.map(this::removePrefix)
.collect(Collectors.toList()))
.build();
} else if (response instanceof ListResourceRecordSetsResponse) {
ListResourceRecordSetsResponse result = (ListResourceRecordSetsResponse) response;
return result.toBuilder()
.resourceRecordSets(result.resourceRecordSets().stream()
.map(this::removePrefix)
.collect(Collectors.toList()))
.build();
} else if (response instanceof CreateHealthCheckResponse) {
CreateHealthCheckResponse result = (CreateHealthCheckResponse) response;
return result.toBuilder()
.healthCheck(removePrefix(result.healthCheck()))
.build();
} else if (response instanceof GetHealthCheckResponse) {
GetHealthCheckResponse result = (GetHealthCheckResponse) response;
return result.toBuilder()
.healthCheck(removePrefix(result.healthCheck()))
.build();
} else if (response instanceof ListHealthChecksResponse) {
ListHealthChecksResponse result = (ListHealthChecksResponse) response;
return result.toBuilder()
.healthChecks(result.healthChecks().stream()
.map(this::removePrefix)
.collect(Collectors.toList()))
.build();
} else if (response instanceof CreateReusableDelegationSetResponse) {
CreateReusableDelegationSetResponse result = (CreateReusableDelegationSetResponse) response;
return result.toBuilder()
.delegationSet(removePrefix(result.delegationSet()))
.build();
} else if (response instanceof GetReusableDelegationSetResponse) {
GetReusableDelegationSetResponse result = (GetReusableDelegationSetResponse) response;
return result.toBuilder()
.delegationSet(removePrefix(result.delegationSet()))
.build();
} else if (response instanceof ListReusableDelegationSetsResponse) {
ListReusableDelegationSetsResponse result = (ListReusableDelegationSetsResponse) response;
return result.toBuilder()
.delegationSets(result.delegationSets().stream()
.map(this::removePrefix)
.collect(Collectors.toList()))
.build();
} else if (response instanceof CreateKeySigningKeyResponse) {
CreateKeySigningKeyResponse result = (CreateKeySigningKeyResponse) response;
return result.toBuilder()
.changeInfo(removePrefix(result.changeInfo()))
.build();
} else if (response instanceof DeleteKeySigningKeyResponse) {
DeleteKeySigningKeyResponse result = (DeleteKeySigningKeyResponse) response;
return result.toBuilder()
.changeInfo(removePrefix(result.changeInfo()))
.build();
} else if (response instanceof ActivateKeySigningKeyResponse) {
ActivateKeySigningKeyResponse result = (ActivateKeySigningKeyResponse) response;
return result.toBuilder()
.changeInfo(removePrefix(result.changeInfo()))
.build();
} else if (response instanceof DeactivateKeySigningKeyResponse) {
DeactivateKeySigningKeyResponse result = (DeactivateKeySigningKeyResponse) response;
return result.toBuilder()
.changeInfo(removePrefix(result.changeInfo()))
.build();
} else if (response instanceof EnableHostedZoneDnssecResponse) {
EnableHostedZoneDnssecResponse result = (EnableHostedZoneDnssecResponse) response;
return result.toBuilder()
.changeInfo(removePrefix(result.changeInfo()))
.build();
} else if (response instanceof DisableHostedZoneDnssecResponse) {
DisableHostedZoneDnssecResponse result = (DisableHostedZoneDnssecResponse) response;
return result.toBuilder()
.changeInfo(removePrefix(result.changeInfo()))
.build();
}
return response;
}