copyWith method
AWSApiConfig
copyWith({
- EndpointType? endpointType,
- String? endpoint,
- String? region,
- APIAuthorizationType? authorizationType,
- String? apiKey,
Implementation
AWSApiConfig copyWith({
EndpointType? endpointType,
String? endpoint,
String? region,
APIAuthorizationType? authorizationType,
String? apiKey,
}) {
return AWSApiConfig(
endpointType: endpointType ?? this.endpointType,
endpoint: endpoint ?? this.endpoint,
region: region ?? this.region,
authorizationType: authorizationType ?? this.authorizationType,
apiKey: apiKey ?? this.apiKey,
);
}