/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/resiliencehub/ResilienceHub_EXPORTS.h> #include <aws/resiliencehub/ResilienceHubRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace ResilienceHub { namespace Model { /** */ class DescribeAppVersionTemplateRequest : public ResilienceHubRequest { public: AWS_RESILIENCEHUB_API DescribeAppVersionTemplateRequest(); // 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 "DescribeAppVersionTemplate"; } AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override; /** * <p>The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. * For more information about ARNs, see <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> * Amazon Resource Names (ARNs)</a> in the <i>AWS General Reference</i> guide.</p> */ inline const Aws::String& GetAppArn() const{ return m_appArn; } /** * <p>The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. * For more information about ARNs, see <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> * Amazon Resource Names (ARNs)</a> in the <i>AWS General Reference</i> guide.</p> */ inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; } /** * <p>The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. * For more information about ARNs, see <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> * Amazon Resource Names (ARNs)</a> in the <i>AWS General Reference</i> guide.</p> */ inline void SetAppArn(const Aws::String& value) { m_appArnHasBeenSet = true; m_appArn = value; } /** * <p>The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. * For more information about ARNs, see <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> * Amazon Resource Names (ARNs)</a> in the <i>AWS General Reference</i> guide.</p> */ inline void SetAppArn(Aws::String&& value) { m_appArnHasBeenSet = true; m_appArn = std::move(value); } /** * <p>The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. * For more information about ARNs, see <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> * Amazon Resource Names (ARNs)</a> in the <i>AWS General Reference</i> guide.</p> */ inline void SetAppArn(const char* value) { m_appArnHasBeenSet = true; m_appArn.assign(value); } /** * <p>The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. * For more information about ARNs, see <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> * Amazon Resource Names (ARNs)</a> in the <i>AWS General Reference</i> guide.</p> */ inline DescribeAppVersionTemplateRequest& WithAppArn(const Aws::String& value) { SetAppArn(value); return *this;} /** * <p>The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. * For more information about ARNs, see <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> * Amazon Resource Names (ARNs)</a> in the <i>AWS General Reference</i> guide.</p> */ inline DescribeAppVersionTemplateRequest& WithAppArn(Aws::String&& value) { SetAppArn(std::move(value)); return *this;} /** * <p>The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. * For more information about ARNs, see <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> * Amazon Resource Names (ARNs)</a> in the <i>AWS General Reference</i> guide.</p> */ inline DescribeAppVersionTemplateRequest& WithAppArn(const char* value) { SetAppArn(value); return *this;} /** * <p>The version of the application.</p> */ inline const Aws::String& GetAppVersion() const{ return m_appVersion; } /** * <p>The version of the application.</p> */ inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; } /** * <p>The version of the application.</p> */ inline void SetAppVersion(const Aws::String& value) { m_appVersionHasBeenSet = true; m_appVersion = value; } /** * <p>The version of the application.</p> */ inline void SetAppVersion(Aws::String&& value) { m_appVersionHasBeenSet = true; m_appVersion = std::move(value); } /** * <p>The version of the application.</p> */ inline void SetAppVersion(const char* value) { m_appVersionHasBeenSet = true; m_appVersion.assign(value); } /** * <p>The version of the application.</p> */ inline DescribeAppVersionTemplateRequest& WithAppVersion(const Aws::String& value) { SetAppVersion(value); return *this;} /** * <p>The version of the application.</p> */ inline DescribeAppVersionTemplateRequest& WithAppVersion(Aws::String&& value) { SetAppVersion(std::move(value)); return *this;} /** * <p>The version of the application.</p> */ inline DescribeAppVersionTemplateRequest& WithAppVersion(const char* value) { SetAppVersion(value); return *this;} private: Aws::String m_appArn; bool m_appArnHasBeenSet = false; Aws::String m_appVersion; bool m_appVersionHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws