putAccountSettings method

Future<PutAccountSettingsResponse> putAccountSettings({
  1. NotificationSubscriptionStatus? notificationSubscriptionStatus,
})

Put the account settings for Artifact.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter notificationSubscriptionStatus : Desired notification subscription status.

Implementation

Future<PutAccountSettingsResponse> putAccountSettings({
  NotificationSubscriptionStatus? notificationSubscriptionStatus,
}) async {
  final $payload = <String, dynamic>{
    if (notificationSubscriptionStatus != null)
      'notificationSubscriptionStatus': notificationSubscriptionStatus.value,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/v1/account-settings/put',
    exceptionFnMap: _exceptionFns,
  );
  return PutAccountSettingsResponse.fromJson(response);
}