1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/iot/IoT_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace IoT 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Structure that contains <code>payloadVersion</code> and 28 * <code>targetArn</code>.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/ProvisioningHook">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_IOT_API ProvisioningHook 33 { 34 public: 35 ProvisioningHook(); 36 ProvisioningHook(Aws::Utils::Json::JsonView jsonValue); 37 ProvisioningHook& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The payload that was sent to the target function.</p> <p> <i>Note:</i> Only 43 * Lambda functions are currently supported.</p> 44 */ GetPayloadVersion()45 inline const Aws::String& GetPayloadVersion() const{ return m_payloadVersion; } 46 47 /** 48 * <p>The payload that was sent to the target function.</p> <p> <i>Note:</i> Only 49 * Lambda functions are currently supported.</p> 50 */ PayloadVersionHasBeenSet()51 inline bool PayloadVersionHasBeenSet() const { return m_payloadVersionHasBeenSet; } 52 53 /** 54 * <p>The payload that was sent to the target function.</p> <p> <i>Note:</i> Only 55 * Lambda functions are currently supported.</p> 56 */ SetPayloadVersion(const Aws::String & value)57 inline void SetPayloadVersion(const Aws::String& value) { m_payloadVersionHasBeenSet = true; m_payloadVersion = value; } 58 59 /** 60 * <p>The payload that was sent to the target function.</p> <p> <i>Note:</i> Only 61 * Lambda functions are currently supported.</p> 62 */ SetPayloadVersion(Aws::String && value)63 inline void SetPayloadVersion(Aws::String&& value) { m_payloadVersionHasBeenSet = true; m_payloadVersion = std::move(value); } 64 65 /** 66 * <p>The payload that was sent to the target function.</p> <p> <i>Note:</i> Only 67 * Lambda functions are currently supported.</p> 68 */ SetPayloadVersion(const char * value)69 inline void SetPayloadVersion(const char* value) { m_payloadVersionHasBeenSet = true; m_payloadVersion.assign(value); } 70 71 /** 72 * <p>The payload that was sent to the target function.</p> <p> <i>Note:</i> Only 73 * Lambda functions are currently supported.</p> 74 */ WithPayloadVersion(const Aws::String & value)75 inline ProvisioningHook& WithPayloadVersion(const Aws::String& value) { SetPayloadVersion(value); return *this;} 76 77 /** 78 * <p>The payload that was sent to the target function.</p> <p> <i>Note:</i> Only 79 * Lambda functions are currently supported.</p> 80 */ WithPayloadVersion(Aws::String && value)81 inline ProvisioningHook& WithPayloadVersion(Aws::String&& value) { SetPayloadVersion(std::move(value)); return *this;} 82 83 /** 84 * <p>The payload that was sent to the target function.</p> <p> <i>Note:</i> Only 85 * Lambda functions are currently supported.</p> 86 */ WithPayloadVersion(const char * value)87 inline ProvisioningHook& WithPayloadVersion(const char* value) { SetPayloadVersion(value); return *this;} 88 89 90 /** 91 * <p>The ARN of the target function.</p> <p> <i>Note:</i> Only Lambda functions 92 * are currently supported.</p> 93 */ GetTargetArn()94 inline const Aws::String& GetTargetArn() const{ return m_targetArn; } 95 96 /** 97 * <p>The ARN of the target function.</p> <p> <i>Note:</i> Only Lambda functions 98 * are currently supported.</p> 99 */ TargetArnHasBeenSet()100 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; } 101 102 /** 103 * <p>The ARN of the target function.</p> <p> <i>Note:</i> Only Lambda functions 104 * are currently supported.</p> 105 */ SetTargetArn(const Aws::String & value)106 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; } 107 108 /** 109 * <p>The ARN of the target function.</p> <p> <i>Note:</i> Only Lambda functions 110 * are currently supported.</p> 111 */ SetTargetArn(Aws::String && value)112 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); } 113 114 /** 115 * <p>The ARN of the target function.</p> <p> <i>Note:</i> Only Lambda functions 116 * are currently supported.</p> 117 */ SetTargetArn(const char * value)118 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); } 119 120 /** 121 * <p>The ARN of the target function.</p> <p> <i>Note:</i> Only Lambda functions 122 * are currently supported.</p> 123 */ WithTargetArn(const Aws::String & value)124 inline ProvisioningHook& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} 125 126 /** 127 * <p>The ARN of the target function.</p> <p> <i>Note:</i> Only Lambda functions 128 * are currently supported.</p> 129 */ WithTargetArn(Aws::String && value)130 inline ProvisioningHook& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} 131 132 /** 133 * <p>The ARN of the target function.</p> <p> <i>Note:</i> Only Lambda functions 134 * are currently supported.</p> 135 */ WithTargetArn(const char * value)136 inline ProvisioningHook& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} 137 138 private: 139 140 Aws::String m_payloadVersion; 141 bool m_payloadVersionHasBeenSet; 142 143 Aws::String m_targetArn; 144 bool m_targetArnHasBeenSet; 145 }; 146 147 } // namespace Model 148 } // namespace IoT 149 } // namespace Aws 150