/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lambda { namespace Model { class InvokeWithResponseStreamInitialResponse { public: AWS_LAMBDA_API InvokeWithResponseStreamInitialResponse(); AWS_LAMBDA_API InvokeWithResponseStreamInitialResponse(Aws::Utils::Json::JsonView jsonValue); AWS_LAMBDA_API InvokeWithResponseStreamInitialResponse& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LAMBDA_API InvokeWithResponseStreamInitialResponse(const Http::HeaderValueCollection& responseHeaders); AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const; ///@{ /** *

For a successful request, the HTTP status code is in the 200 range. For the * RequestResponse invocation type, this status code is 200. For the * DryRun invocation type, this status code is 204.

*/ inline int GetStatusCode() const{ return m_statusCode; } inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } inline InvokeWithResponseStreamInitialResponse& WithStatusCode(int value) { SetStatusCode(value); return *this;} ///@} ///@{ /** *

The version of the function that executed. When you invoke a function with an * alias, this indicates which version the alias resolved to.

*/ inline const Aws::String& GetExecutedVersion() const{ return m_executedVersion; } inline bool ExecutedVersionHasBeenSet() const { return m_executedVersionHasBeenSet; } inline void SetExecutedVersion(const Aws::String& value) { m_executedVersionHasBeenSet = true; m_executedVersion = value; } inline void SetExecutedVersion(Aws::String&& value) { m_executedVersionHasBeenSet = true; m_executedVersion = std::move(value); } inline void SetExecutedVersion(const char* value) { m_executedVersionHasBeenSet = true; m_executedVersion.assign(value); } inline InvokeWithResponseStreamInitialResponse& WithExecutedVersion(const Aws::String& value) { SetExecutedVersion(value); return *this;} inline InvokeWithResponseStreamInitialResponse& WithExecutedVersion(Aws::String&& value) { SetExecutedVersion(std::move(value)); return *this;} inline InvokeWithResponseStreamInitialResponse& WithExecutedVersion(const char* value) { SetExecutedVersion(value); return *this;} ///@} ///@{ /** *

The type of data the stream is returning.

*/ inline const Aws::String& GetResponseStreamContentType() const{ return m_responseStreamContentType; } inline bool ResponseStreamContentTypeHasBeenSet() const { return m_responseStreamContentTypeHasBeenSet; } inline void SetResponseStreamContentType(const Aws::String& value) { m_responseStreamContentTypeHasBeenSet = true; m_responseStreamContentType = value; } inline void SetResponseStreamContentType(Aws::String&& value) { m_responseStreamContentTypeHasBeenSet = true; m_responseStreamContentType = std::move(value); } inline void SetResponseStreamContentType(const char* value) { m_responseStreamContentTypeHasBeenSet = true; m_responseStreamContentType.assign(value); } inline InvokeWithResponseStreamInitialResponse& WithResponseStreamContentType(const Aws::String& value) { SetResponseStreamContentType(value); return *this;} inline InvokeWithResponseStreamInitialResponse& WithResponseStreamContentType(Aws::String&& value) { SetResponseStreamContentType(std::move(value)); return *this;} inline InvokeWithResponseStreamInitialResponse& WithResponseStreamContentType(const char* value) { SetResponseStreamContentType(value); return *this;} ///@} private: int m_statusCode; bool m_statusCodeHasBeenSet = false; Aws::String m_executedVersion; bool m_executedVersionHasBeenSet = false; Aws::String m_responseStreamContentType; bool m_responseStreamContentTypeHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws