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/pinpoint/Pinpoint_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace Pinpoint 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Provides information about a request to create a message 28 * template.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateTemplateMessageBody">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_PINPOINT_API CreateTemplateMessageBody 33 { 34 public: 35 CreateTemplateMessageBody(); 36 CreateTemplateMessageBody(Aws::Utils::Json::JsonView jsonValue); 37 CreateTemplateMessageBody& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The Amazon Resource Name (ARN) of the message template that was created.</p> 43 */ GetArn()44 inline const Aws::String& GetArn() const{ return m_arn; } 45 46 /** 47 * <p>The Amazon Resource Name (ARN) of the message template that was created.</p> 48 */ ArnHasBeenSet()49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } 50 51 /** 52 * <p>The Amazon Resource Name (ARN) of the message template that was created.</p> 53 */ SetArn(const Aws::String & value)54 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } 55 56 /** 57 * <p>The Amazon Resource Name (ARN) of the message template that was created.</p> 58 */ SetArn(Aws::String && value)59 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } 60 61 /** 62 * <p>The Amazon Resource Name (ARN) of the message template that was created.</p> 63 */ SetArn(const char * value)64 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } 65 66 /** 67 * <p>The Amazon Resource Name (ARN) of the message template that was created.</p> 68 */ WithArn(const Aws::String & value)69 inline CreateTemplateMessageBody& WithArn(const Aws::String& value) { SetArn(value); return *this;} 70 71 /** 72 * <p>The Amazon Resource Name (ARN) of the message template that was created.</p> 73 */ WithArn(Aws::String && value)74 inline CreateTemplateMessageBody& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} 75 76 /** 77 * <p>The Amazon Resource Name (ARN) of the message template that was created.</p> 78 */ WithArn(const char * value)79 inline CreateTemplateMessageBody& WithArn(const char* value) { SetArn(value); return *this;} 80 81 82 /** 83 * <p>The message that's returned from the API for the request to create the 84 * message template.</p> 85 */ GetMessage()86 inline const Aws::String& GetMessage() const{ return m_message; } 87 88 /** 89 * <p>The message that's returned from the API for the request to create the 90 * message template.</p> 91 */ MessageHasBeenSet()92 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } 93 94 /** 95 * <p>The message that's returned from the API for the request to create the 96 * message template.</p> 97 */ SetMessage(const Aws::String & value)98 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } 99 100 /** 101 * <p>The message that's returned from the API for the request to create the 102 * message template.</p> 103 */ SetMessage(Aws::String && value)104 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } 105 106 /** 107 * <p>The message that's returned from the API for the request to create the 108 * message template.</p> 109 */ SetMessage(const char * value)110 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } 111 112 /** 113 * <p>The message that's returned from the API for the request to create the 114 * message template.</p> 115 */ WithMessage(const Aws::String & value)116 inline CreateTemplateMessageBody& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} 117 118 /** 119 * <p>The message that's returned from the API for the request to create the 120 * message template.</p> 121 */ WithMessage(Aws::String && value)122 inline CreateTemplateMessageBody& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} 123 124 /** 125 * <p>The message that's returned from the API for the request to create the 126 * message template.</p> 127 */ WithMessage(const char * value)128 inline CreateTemplateMessageBody& WithMessage(const char* value) { SetMessage(value); return *this;} 129 130 131 /** 132 * <p>The unique identifier for the request to create the message template.</p> 133 */ GetRequestID()134 inline const Aws::String& GetRequestID() const{ return m_requestID; } 135 136 /** 137 * <p>The unique identifier for the request to create the message template.</p> 138 */ RequestIDHasBeenSet()139 inline bool RequestIDHasBeenSet() const { return m_requestIDHasBeenSet; } 140 141 /** 142 * <p>The unique identifier for the request to create the message template.</p> 143 */ SetRequestID(const Aws::String & value)144 inline void SetRequestID(const Aws::String& value) { m_requestIDHasBeenSet = true; m_requestID = value; } 145 146 /** 147 * <p>The unique identifier for the request to create the message template.</p> 148 */ SetRequestID(Aws::String && value)149 inline void SetRequestID(Aws::String&& value) { m_requestIDHasBeenSet = true; m_requestID = std::move(value); } 150 151 /** 152 * <p>The unique identifier for the request to create the message template.</p> 153 */ SetRequestID(const char * value)154 inline void SetRequestID(const char* value) { m_requestIDHasBeenSet = true; m_requestID.assign(value); } 155 156 /** 157 * <p>The unique identifier for the request to create the message template.</p> 158 */ WithRequestID(const Aws::String & value)159 inline CreateTemplateMessageBody& WithRequestID(const Aws::String& value) { SetRequestID(value); return *this;} 160 161 /** 162 * <p>The unique identifier for the request to create the message template.</p> 163 */ WithRequestID(Aws::String && value)164 inline CreateTemplateMessageBody& WithRequestID(Aws::String&& value) { SetRequestID(std::move(value)); return *this;} 165 166 /** 167 * <p>The unique identifier for the request to create the message template.</p> 168 */ WithRequestID(const char * value)169 inline CreateTemplateMessageBody& WithRequestID(const char* value) { SetRequestID(value); return *this;} 170 171 private: 172 173 Aws::String m_arn; 174 bool m_arnHasBeenSet; 175 176 Aws::String m_message; 177 bool m_messageHasBeenSet; 178 179 Aws::String m_requestID; 180 bool m_requestIDHasBeenSet; 181 }; 182 183 } // namespace Model 184 } // namespace Pinpoint 185 } // namespace Aws 186