copyWith method

AWSApiConfig copyWith({
  1. EndpointType? endpointType,
  2. String? endpoint,
  3. String? region,
  4. APIAuthorizationType? authorizationType,
  5. 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,
  );
}