/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace GuardDuty { namespace Model { /** */ class AWS_GUARDDUTY_API UpdatePublishingDestinationRequest : public GuardDutyRequest { public: UpdatePublishingDestinationRequest(); // 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 "UpdatePublishingDestination"; } Aws::String SerializePayload() const override; /** *

The ID of the detector associated with the publishing destinations to * update.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } /** *

The ID of the detector associated with the publishing destinations to * update.

*/ inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } /** *

The ID of the detector associated with the publishing destinations to * update.

*/ inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; } /** *

The ID of the detector associated with the publishing destinations to * update.

*/ inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); } /** *

The ID of the detector associated with the publishing destinations to * update.

*/ inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); } /** *

The ID of the detector associated with the publishing destinations to * update.

*/ inline UpdatePublishingDestinationRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;} /** *

The ID of the detector associated with the publishing destinations to * update.

*/ inline UpdatePublishingDestinationRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;} /** *

The ID of the detector associated with the publishing destinations to * update.

*/ inline UpdatePublishingDestinationRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;} /** *

The ID of the publishing destination to update.

*/ inline const Aws::String& GetDestinationId() const{ return m_destinationId; } /** *

The ID of the publishing destination to update.

*/ inline bool DestinationIdHasBeenSet() const { return m_destinationIdHasBeenSet; } /** *

The ID of the publishing destination to update.

*/ inline void SetDestinationId(const Aws::String& value) { m_destinationIdHasBeenSet = true; m_destinationId = value; } /** *

The ID of the publishing destination to update.

*/ inline void SetDestinationId(Aws::String&& value) { m_destinationIdHasBeenSet = true; m_destinationId = std::move(value); } /** *

The ID of the publishing destination to update.

*/ inline void SetDestinationId(const char* value) { m_destinationIdHasBeenSet = true; m_destinationId.assign(value); } /** *

The ID of the publishing destination to update.

*/ inline UpdatePublishingDestinationRequest& WithDestinationId(const Aws::String& value) { SetDestinationId(value); return *this;} /** *

The ID of the publishing destination to update.

*/ inline UpdatePublishingDestinationRequest& WithDestinationId(Aws::String&& value) { SetDestinationId(std::move(value)); return *this;} /** *

The ID of the publishing destination to update.

*/ inline UpdatePublishingDestinationRequest& WithDestinationId(const char* value) { SetDestinationId(value); return *this;} /** *

A DestinationProperties object that includes the * DestinationArn and KmsKeyArn of the publishing * destination.

*/ inline const DestinationProperties& GetDestinationProperties() const{ return m_destinationProperties; } /** *

A DestinationProperties object that includes the * DestinationArn and KmsKeyArn of the publishing * destination.

*/ inline bool DestinationPropertiesHasBeenSet() const { return m_destinationPropertiesHasBeenSet; } /** *

A DestinationProperties object that includes the * DestinationArn and KmsKeyArn of the publishing * destination.

*/ inline void SetDestinationProperties(const DestinationProperties& value) { m_destinationPropertiesHasBeenSet = true; m_destinationProperties = value; } /** *

A DestinationProperties object that includes the * DestinationArn and KmsKeyArn of the publishing * destination.

*/ inline void SetDestinationProperties(DestinationProperties&& value) { m_destinationPropertiesHasBeenSet = true; m_destinationProperties = std::move(value); } /** *

A DestinationProperties object that includes the * DestinationArn and KmsKeyArn of the publishing * destination.

*/ inline UpdatePublishingDestinationRequest& WithDestinationProperties(const DestinationProperties& value) { SetDestinationProperties(value); return *this;} /** *

A DestinationProperties object that includes the * DestinationArn and KmsKeyArn of the publishing * destination.

*/ inline UpdatePublishingDestinationRequest& WithDestinationProperties(DestinationProperties&& value) { SetDestinationProperties(std::move(value)); return *this;} private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet; Aws::String m_destinationId; bool m_destinationIdHasBeenSet; DestinationProperties m_destinationProperties; bool m_destinationPropertiesHasBeenSet; }; } // namespace Model } // namespace GuardDuty } // namespace Aws