/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::SSMIncidents::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateReplicationSetRequest::UpdateReplicationSetRequest() : m_actionsHasBeenSet(false), m_arnHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true) { } Aws::String UpdateReplicationSetRequest::SerializePayload() const { JsonValue payload; if(m_actionsHasBeenSet) { Aws::Utils::Array actionsJsonList(m_actions.size()); for(unsigned actionsIndex = 0; actionsIndex < actionsJsonList.GetLength(); ++actionsIndex) { actionsJsonList[actionsIndex].AsObject(m_actions[actionsIndex].Jsonize()); } payload.WithArray("actions", std::move(actionsJsonList)); } if(m_arnHasBeenSet) { payload.WithString("arn", m_arn); } if(m_clientTokenHasBeenSet) { payload.WithString("clientToken", m_clientToken); } return payload.View().WriteReadable(); }