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/sms/SMS_EXPORTS.h> 8 #include <aws/sms/SMSRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/sms/model/OutputFormat.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace SMS 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_SMS_API GenerateTemplateRequest : public SMSRequest 23 { 24 public: 25 GenerateTemplateRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "GenerateTemplate"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p>The ID of the application associated with the AWS CloudFormation 40 * template.</p> 41 */ GetAppId()42 inline const Aws::String& GetAppId() const{ return m_appId; } 43 44 /** 45 * <p>The ID of the application associated with the AWS CloudFormation 46 * template.</p> 47 */ AppIdHasBeenSet()48 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; } 49 50 /** 51 * <p>The ID of the application associated with the AWS CloudFormation 52 * template.</p> 53 */ SetAppId(const Aws::String & value)54 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; } 55 56 /** 57 * <p>The ID of the application associated with the AWS CloudFormation 58 * template.</p> 59 */ SetAppId(Aws::String && value)60 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); } 61 62 /** 63 * <p>The ID of the application associated with the AWS CloudFormation 64 * template.</p> 65 */ SetAppId(const char * value)66 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); } 67 68 /** 69 * <p>The ID of the application associated with the AWS CloudFormation 70 * template.</p> 71 */ WithAppId(const Aws::String & value)72 inline GenerateTemplateRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;} 73 74 /** 75 * <p>The ID of the application associated with the AWS CloudFormation 76 * template.</p> 77 */ WithAppId(Aws::String && value)78 inline GenerateTemplateRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;} 79 80 /** 81 * <p>The ID of the application associated with the AWS CloudFormation 82 * template.</p> 83 */ WithAppId(const char * value)84 inline GenerateTemplateRequest& WithAppId(const char* value) { SetAppId(value); return *this;} 85 86 87 /** 88 * <p>The format for generating the AWS CloudFormation template.</p> 89 */ GetTemplateFormat()90 inline const OutputFormat& GetTemplateFormat() const{ return m_templateFormat; } 91 92 /** 93 * <p>The format for generating the AWS CloudFormation template.</p> 94 */ TemplateFormatHasBeenSet()95 inline bool TemplateFormatHasBeenSet() const { return m_templateFormatHasBeenSet; } 96 97 /** 98 * <p>The format for generating the AWS CloudFormation template.</p> 99 */ SetTemplateFormat(const OutputFormat & value)100 inline void SetTemplateFormat(const OutputFormat& value) { m_templateFormatHasBeenSet = true; m_templateFormat = value; } 101 102 /** 103 * <p>The format for generating the AWS CloudFormation template.</p> 104 */ SetTemplateFormat(OutputFormat && value)105 inline void SetTemplateFormat(OutputFormat&& value) { m_templateFormatHasBeenSet = true; m_templateFormat = std::move(value); } 106 107 /** 108 * <p>The format for generating the AWS CloudFormation template.</p> 109 */ WithTemplateFormat(const OutputFormat & value)110 inline GenerateTemplateRequest& WithTemplateFormat(const OutputFormat& value) { SetTemplateFormat(value); return *this;} 111 112 /** 113 * <p>The format for generating the AWS CloudFormation template.</p> 114 */ WithTemplateFormat(OutputFormat && value)115 inline GenerateTemplateRequest& WithTemplateFormat(OutputFormat&& value) { SetTemplateFormat(std::move(value)); return *this;} 116 117 private: 118 119 Aws::String m_appId; 120 bool m_appIdHasBeenSet; 121 122 OutputFormat m_templateFormat; 123 bool m_templateFormatHasBeenSet; 124 }; 125 126 } // namespace Model 127 } // namespace SMS 128 } // namespace Aws 129