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/lambda/Lambda_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 template<typename RESULT_TYPE> 14 class AmazonWebServiceResult; 15 16 namespace Utils 17 { 18 namespace Json 19 { 20 class JsonValue; 21 } // namespace Json 22 } // namespace Utils 23 namespace Lambda 24 { 25 namespace Model 26 { 27 class AWS_LAMBDA_API PutFunctionCodeSigningConfigResult 28 { 29 public: 30 PutFunctionCodeSigningConfigResult(); 31 PutFunctionCodeSigningConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 32 PutFunctionCodeSigningConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 34 35 /** 36 * <p>The The Amazon Resource Name (ARN) of the code signing configuration.</p> 37 */ GetCodeSigningConfigArn()38 inline const Aws::String& GetCodeSigningConfigArn() const{ return m_codeSigningConfigArn; } 39 40 /** 41 * <p>The The Amazon Resource Name (ARN) of the code signing configuration.</p> 42 */ SetCodeSigningConfigArn(const Aws::String & value)43 inline void SetCodeSigningConfigArn(const Aws::String& value) { m_codeSigningConfigArn = value; } 44 45 /** 46 * <p>The The Amazon Resource Name (ARN) of the code signing configuration.</p> 47 */ SetCodeSigningConfigArn(Aws::String && value)48 inline void SetCodeSigningConfigArn(Aws::String&& value) { m_codeSigningConfigArn = std::move(value); } 49 50 /** 51 * <p>The The Amazon Resource Name (ARN) of the code signing configuration.</p> 52 */ SetCodeSigningConfigArn(const char * value)53 inline void SetCodeSigningConfigArn(const char* value) { m_codeSigningConfigArn.assign(value); } 54 55 /** 56 * <p>The The Amazon Resource Name (ARN) of the code signing configuration.</p> 57 */ WithCodeSigningConfigArn(const Aws::String & value)58 inline PutFunctionCodeSigningConfigResult& WithCodeSigningConfigArn(const Aws::String& value) { SetCodeSigningConfigArn(value); return *this;} 59 60 /** 61 * <p>The The Amazon Resource Name (ARN) of the code signing configuration.</p> 62 */ WithCodeSigningConfigArn(Aws::String && value)63 inline PutFunctionCodeSigningConfigResult& WithCodeSigningConfigArn(Aws::String&& value) { SetCodeSigningConfigArn(std::move(value)); return *this;} 64 65 /** 66 * <p>The The Amazon Resource Name (ARN) of the code signing configuration.</p> 67 */ WithCodeSigningConfigArn(const char * value)68 inline PutFunctionCodeSigningConfigResult& WithCodeSigningConfigArn(const char* value) { SetCodeSigningConfigArn(value); return *this;} 69 70 71 /** 72 * <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b> 73 * </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li> 74 * <li> <p> <b>Function ARN</b> - 75 * <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> 76 * </li> <li> <p> <b>Partial ARN</b> - 77 * <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length 78 * constraint applies only to the full ARN. If you specify only the function name, 79 * it is limited to 64 characters in length.</p> 80 */ GetFunctionName()81 inline const Aws::String& GetFunctionName() const{ return m_functionName; } 82 83 /** 84 * <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b> 85 * </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li> 86 * <li> <p> <b>Function ARN</b> - 87 * <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> 88 * </li> <li> <p> <b>Partial ARN</b> - 89 * <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length 90 * constraint applies only to the full ARN. If you specify only the function name, 91 * it is limited to 64 characters in length.</p> 92 */ SetFunctionName(const Aws::String & value)93 inline void SetFunctionName(const Aws::String& value) { m_functionName = value; } 94 95 /** 96 * <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b> 97 * </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li> 98 * <li> <p> <b>Function ARN</b> - 99 * <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> 100 * </li> <li> <p> <b>Partial ARN</b> - 101 * <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length 102 * constraint applies only to the full ARN. If you specify only the function name, 103 * it is limited to 64 characters in length.</p> 104 */ SetFunctionName(Aws::String && value)105 inline void SetFunctionName(Aws::String&& value) { m_functionName = std::move(value); } 106 107 /** 108 * <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b> 109 * </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li> 110 * <li> <p> <b>Function ARN</b> - 111 * <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> 112 * </li> <li> <p> <b>Partial ARN</b> - 113 * <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length 114 * constraint applies only to the full ARN. If you specify only the function name, 115 * it is limited to 64 characters in length.</p> 116 */ SetFunctionName(const char * value)117 inline void SetFunctionName(const char* value) { m_functionName.assign(value); } 118 119 /** 120 * <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b> 121 * </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li> 122 * <li> <p> <b>Function ARN</b> - 123 * <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> 124 * </li> <li> <p> <b>Partial ARN</b> - 125 * <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length 126 * constraint applies only to the full ARN. If you specify only the function name, 127 * it is limited to 64 characters in length.</p> 128 */ WithFunctionName(const Aws::String & value)129 inline PutFunctionCodeSigningConfigResult& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;} 130 131 /** 132 * <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b> 133 * </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li> 134 * <li> <p> <b>Function ARN</b> - 135 * <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> 136 * </li> <li> <p> <b>Partial ARN</b> - 137 * <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length 138 * constraint applies only to the full ARN. If you specify only the function name, 139 * it is limited to 64 characters in length.</p> 140 */ WithFunctionName(Aws::String && value)141 inline PutFunctionCodeSigningConfigResult& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;} 142 143 /** 144 * <p>The name of the Lambda function.</p> <p class="title"> <b>Name formats</b> 145 * </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li> 146 * <li> <p> <b>Function ARN</b> - 147 * <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> 148 * </li> <li> <p> <b>Partial ARN</b> - 149 * <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length 150 * constraint applies only to the full ARN. If you specify only the function name, 151 * it is limited to 64 characters in length.</p> 152 */ WithFunctionName(const char * value)153 inline PutFunctionCodeSigningConfigResult& WithFunctionName(const char* value) { SetFunctionName(value); return *this;} 154 155 private: 156 157 Aws::String m_codeSigningConfigArn; 158 159 Aws::String m_functionName; 160 }; 161 162 } // namespace Model 163 } // namespace Lambda 164 } // namespace Aws 165