updateBrand method

Future<UpdateBrandResponse> updateBrand({
  1. required String awsAccountId,
  2. required String brandId,
  3. BrandDefinition? brandDefinition,
})

Updates a brand.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter awsAccountId : The ID of the Amazon Web Services account that owns the brand.

Parameter brandId : The ID of the Quick brand.

Parameter brandDefinition : The definition of the brand.

Implementation

Future<UpdateBrandResponse> updateBrand({
  required String awsAccountId,
  required String brandId,
  BrandDefinition? brandDefinition,
}) async {
  final $payload = <String, dynamic>{
    if (brandDefinition != null) 'BrandDefinition': brandDefinition,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/accounts/${Uri.encodeComponent(awsAccountId)}/brands/${Uri.encodeComponent(brandId)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateBrandResponse.fromJson(response);
}