/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace SSMIncidents { namespace Model { /** */ class UpdateRelatedItemsRequest : public SSMIncidentsRequest { public: AWS_SSMINCIDENTS_API UpdateRelatedItemsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateRelatedItems"; } AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override; /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline UpdateRelatedItemsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline UpdateRelatedItemsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A token that ensures that a client calls the operation only once with the * specified details.

*/ inline UpdateRelatedItemsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The Amazon Resource Name (ARN) of the incident record that contains the * related items that you update.

*/ inline const Aws::String& GetIncidentRecordArn() const{ return m_incidentRecordArn; } /** *

The Amazon Resource Name (ARN) of the incident record that contains the * related items that you update.

*/ inline bool IncidentRecordArnHasBeenSet() const { return m_incidentRecordArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the incident record that contains the * related items that you update.

*/ inline void SetIncidentRecordArn(const Aws::String& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = value; } /** *

The Amazon Resource Name (ARN) of the incident record that contains the * related items that you update.

*/ inline void SetIncidentRecordArn(Aws::String&& value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the incident record that contains the * related items that you update.

*/ inline void SetIncidentRecordArn(const char* value) { m_incidentRecordArnHasBeenSet = true; m_incidentRecordArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the incident record that contains the * related items that you update.

*/ inline UpdateRelatedItemsRequest& WithIncidentRecordArn(const Aws::String& value) { SetIncidentRecordArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the incident record that contains the * related items that you update.

*/ inline UpdateRelatedItemsRequest& WithIncidentRecordArn(Aws::String&& value) { SetIncidentRecordArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the incident record that contains the * related items that you update.

*/ inline UpdateRelatedItemsRequest& WithIncidentRecordArn(const char* value) { SetIncidentRecordArn(value); return *this;} /** *

Details about the item that you are add to, or delete from, an incident.

*/ inline const RelatedItemsUpdate& GetRelatedItemsUpdate() const{ return m_relatedItemsUpdate; } /** *

Details about the item that you are add to, or delete from, an incident.

*/ inline bool RelatedItemsUpdateHasBeenSet() const { return m_relatedItemsUpdateHasBeenSet; } /** *

Details about the item that you are add to, or delete from, an incident.

*/ inline void SetRelatedItemsUpdate(const RelatedItemsUpdate& value) { m_relatedItemsUpdateHasBeenSet = true; m_relatedItemsUpdate = value; } /** *

Details about the item that you are add to, or delete from, an incident.

*/ inline void SetRelatedItemsUpdate(RelatedItemsUpdate&& value) { m_relatedItemsUpdateHasBeenSet = true; m_relatedItemsUpdate = std::move(value); } /** *

Details about the item that you are add to, or delete from, an incident.

*/ inline UpdateRelatedItemsRequest& WithRelatedItemsUpdate(const RelatedItemsUpdate& value) { SetRelatedItemsUpdate(value); return *this;} /** *

Details about the item that you are add to, or delete from, an incident.

*/ inline UpdateRelatedItemsRequest& WithRelatedItemsUpdate(RelatedItemsUpdate&& value) { SetRelatedItemsUpdate(std::move(value)); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_incidentRecordArn; bool m_incidentRecordArnHasBeenSet = false; RelatedItemsUpdate m_relatedItemsUpdate; bool m_relatedItemsUpdateHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws