/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** *

Structure that contains payloadVersion and * targetArn.

See Also:

AWS * API Reference

*/ class ProvisioningHook { public: AWS_IOT_API ProvisioningHook(); AWS_IOT_API ProvisioningHook(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API ProvisioningHook& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The payload that was sent to the target function.

Note: Only * Lambda functions are currently supported.

*/ inline const Aws::String& GetPayloadVersion() const{ return m_payloadVersion; } /** *

The payload that was sent to the target function.

Note: Only * Lambda functions are currently supported.

*/ inline bool PayloadVersionHasBeenSet() const { return m_payloadVersionHasBeenSet; } /** *

The payload that was sent to the target function.

Note: Only * Lambda functions are currently supported.

*/ inline void SetPayloadVersion(const Aws::String& value) { m_payloadVersionHasBeenSet = true; m_payloadVersion = value; } /** *

The payload that was sent to the target function.

Note: Only * Lambda functions are currently supported.

*/ inline void SetPayloadVersion(Aws::String&& value) { m_payloadVersionHasBeenSet = true; m_payloadVersion = std::move(value); } /** *

The payload that was sent to the target function.

Note: Only * Lambda functions are currently supported.

*/ inline void SetPayloadVersion(const char* value) { m_payloadVersionHasBeenSet = true; m_payloadVersion.assign(value); } /** *

The payload that was sent to the target function.

Note: Only * Lambda functions are currently supported.

*/ inline ProvisioningHook& WithPayloadVersion(const Aws::String& value) { SetPayloadVersion(value); return *this;} /** *

The payload that was sent to the target function.

Note: Only * Lambda functions are currently supported.

*/ inline ProvisioningHook& WithPayloadVersion(Aws::String&& value) { SetPayloadVersion(std::move(value)); return *this;} /** *

The payload that was sent to the target function.

Note: Only * Lambda functions are currently supported.

*/ inline ProvisioningHook& WithPayloadVersion(const char* value) { SetPayloadVersion(value); return *this;} /** *

The ARN of the target function.

Note: Only Lambda functions * are currently supported.

*/ inline const Aws::String& GetTargetArn() const{ return m_targetArn; } /** *

The ARN of the target function.

Note: Only Lambda functions * are currently supported.

*/ inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; } /** *

The ARN of the target function.

Note: Only Lambda functions * are currently supported.

*/ inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; } /** *

The ARN of the target function.

Note: Only Lambda functions * are currently supported.

*/ inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); } /** *

The ARN of the target function.

Note: Only Lambda functions * are currently supported.

*/ inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); } /** *

The ARN of the target function.

Note: Only Lambda functions * are currently supported.

*/ inline ProvisioningHook& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} /** *

The ARN of the target function.

Note: Only Lambda functions * are currently supported.

*/ inline ProvisioningHook& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} /** *

The ARN of the target function.

Note: Only Lambda functions * are currently supported.

*/ inline ProvisioningHook& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} private: Aws::String m_payloadVersion; bool m_payloadVersionHasBeenSet = false; Aws::String m_targetArn; bool m_targetArnHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws