AWS SDK for C++  1.9.40
AWS SDK for C++
GenerateTemplateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sms/SMS_EXPORTS.h>
8 #include <aws/sms/SMSRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SMS
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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.
31  inline virtual const char* GetServiceRequestName() const override { return "GenerateTemplate"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetAppId() const{ return m_appId; }
43 
48  inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
49 
54  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
55 
60  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
61 
66  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
67 
72  inline GenerateTemplateRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
73 
78  inline GenerateTemplateRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
79 
84  inline GenerateTemplateRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
85 
86 
90  inline const OutputFormat& GetTemplateFormat() const{ return m_templateFormat; }
91 
95  inline bool TemplateFormatHasBeenSet() const { return m_templateFormatHasBeenSet; }
96 
100  inline void SetTemplateFormat(const OutputFormat& value) { m_templateFormatHasBeenSet = true; m_templateFormat = value; }
101 
105  inline void SetTemplateFormat(OutputFormat&& value) { m_templateFormatHasBeenSet = true; m_templateFormat = std::move(value); }
106 
110  inline GenerateTemplateRequest& WithTemplateFormat(const OutputFormat& value) { SetTemplateFormat(value); return *this;}
111 
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
Aws::SMS::Model::GenerateTemplateRequest::TemplateFormatHasBeenSet
bool TemplateFormatHasBeenSet() const
Definition: GenerateTemplateRequest.h:95
Aws::SMS::Model::GenerateTemplateRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
SMSRequest.h
Aws::SMS::Model::GenerateTemplateRequest::WithAppId
GenerateTemplateRequest & WithAppId(const char *value)
Definition: GenerateTemplateRequest.h:84
Aws::SMS::Model::GenerateTemplateRequest::SetAppId
void SetAppId(const Aws::String &value)
Definition: GenerateTemplateRequest.h:54
Aws::SMS::Model::GenerateTemplateRequest::SetAppId
void SetAppId(const char *value)
Definition: GenerateTemplateRequest.h:66
Aws::SMS::Model::GenerateTemplateRequest
Definition: GenerateTemplateRequest.h:23
Aws::SMS::Model::GenerateTemplateRequest::WithTemplateFormat
GenerateTemplateRequest & WithTemplateFormat(OutputFormat &&value)
Definition: GenerateTemplateRequest.h:115
Aws::SMS::Model::GenerateTemplateRequest::WithAppId
GenerateTemplateRequest & WithAppId(Aws::String &&value)
Definition: GenerateTemplateRequest.h:78
Aws::SMS::Model::GenerateTemplateRequest::GetTemplateFormat
const OutputFormat & GetTemplateFormat() const
Definition: GenerateTemplateRequest.h:90
Aws::SMS::Model::GenerateTemplateRequest::SetAppId
void SetAppId(Aws::String &&value)
Definition: GenerateTemplateRequest.h:60
SMS_EXPORTS.h
Aws::SMS::Model::GenerateTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GenerateTemplateRequest.h:31
Aws::SMS::Model::GenerateTemplateRequest::GenerateTemplateRequest
GenerateTemplateRequest()
Aws::SMS::SMSRequest
Definition: SMSRequest.h:17
Aws::SMS::Model::GenerateTemplateRequest::AppIdHasBeenSet
bool AppIdHasBeenSet() const
Definition: GenerateTemplateRequest.h:48
Aws::SMS::Model::GenerateTemplateRequest::WithAppId
GenerateTemplateRequest & WithAppId(const Aws::String &value)
Definition: GenerateTemplateRequest.h:72
Aws::SMS::Model::GenerateTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AmplifyBackend::Model::DeliveryMethod::NOT_SET
@ NOT_SET
AWSString.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SMS::Model::GenerateTemplateRequest::WithTemplateFormat
GenerateTemplateRequest & WithTemplateFormat(const OutputFormat &value)
Definition: GenerateTemplateRequest.h:110
Aws::SMS::Model::OutputFormat
OutputFormat
Definition: OutputFormat.h:17
AWS_SMS_API
#define AWS_SMS_API
Definition: SMS_EXPORTS.h:28
Aws::SMS::Model::GenerateTemplateRequest::SetTemplateFormat
void SetTemplateFormat(OutputFormat &&value)
Definition: GenerateTemplateRequest.h:105
Aws::SMS::Model::GenerateTemplateRequest::SetTemplateFormat
void SetTemplateFormat(const OutputFormat &value)
Definition: GenerateTemplateRequest.h:100
Aws::SMS::Model::GenerateTemplateRequest::GetAppId
const Aws::String & GetAppId() const
Definition: GenerateTemplateRequest.h:42
OutputFormat.h