AWS SDK for C++  1.8.71
AWS SDK for C++
SetIdentityMailFromDomainRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/email/SESRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SES
16 {
17 namespace Model
18 {
19 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "SetIdentityMailFromDomain"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  protected:
43  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44 
45  public:
46 
51  inline const Aws::String& GetIdentity() const{ return m_identity; }
52 
57  inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; }
58 
63  inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; }
64 
69  inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = std::move(value); }
70 
75  inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); }
76 
81  inline SetIdentityMailFromDomainRequest& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;}
82 
87  inline SetIdentityMailFromDomainRequest& WithIdentity(Aws::String&& value) { SetIdentity(std::move(value)); return *this;}
88 
93  inline SetIdentityMailFromDomainRequest& WithIdentity(const char* value) { SetIdentity(value); return *this;}
94 
95 
105  inline const Aws::String& GetMailFromDomain() const{ return m_mailFromDomain; }
106 
116  inline bool MailFromDomainHasBeenSet() const { return m_mailFromDomainHasBeenSet; }
117 
127  inline void SetMailFromDomain(const Aws::String& value) { m_mailFromDomainHasBeenSet = true; m_mailFromDomain = value; }
128 
138  inline void SetMailFromDomain(Aws::String&& value) { m_mailFromDomainHasBeenSet = true; m_mailFromDomain = std::move(value); }
139 
149  inline void SetMailFromDomain(const char* value) { m_mailFromDomainHasBeenSet = true; m_mailFromDomain.assign(value); }
150 
160  inline SetIdentityMailFromDomainRequest& WithMailFromDomain(const Aws::String& value) { SetMailFromDomain(value); return *this;}
161 
171  inline SetIdentityMailFromDomainRequest& WithMailFromDomain(Aws::String&& value) { SetMailFromDomain(std::move(value)); return *this;}
172 
182  inline SetIdentityMailFromDomainRequest& WithMailFromDomain(const char* value) { SetMailFromDomain(value); return *this;}
183 
184 
195  inline const BehaviorOnMXFailure& GetBehaviorOnMXFailure() const{ return m_behaviorOnMXFailure; }
196 
207  inline bool BehaviorOnMXFailureHasBeenSet() const { return m_behaviorOnMXFailureHasBeenSet; }
208 
219  inline void SetBehaviorOnMXFailure(const BehaviorOnMXFailure& value) { m_behaviorOnMXFailureHasBeenSet = true; m_behaviorOnMXFailure = value; }
220 
231  inline void SetBehaviorOnMXFailure(BehaviorOnMXFailure&& value) { m_behaviorOnMXFailureHasBeenSet = true; m_behaviorOnMXFailure = std::move(value); }
232 
243  inline SetIdentityMailFromDomainRequest& WithBehaviorOnMXFailure(const BehaviorOnMXFailure& value) { SetBehaviorOnMXFailure(value); return *this;}
244 
255  inline SetIdentityMailFromDomainRequest& WithBehaviorOnMXFailure(BehaviorOnMXFailure&& value) { SetBehaviorOnMXFailure(std::move(value)); return *this;}
256 
257  private:
258 
259  Aws::String m_identity;
260  bool m_identityHasBeenSet;
261 
262  Aws::String m_mailFromDomain;
263  bool m_mailFromDomainHasBeenSet;
264 
265  BehaviorOnMXFailure m_behaviorOnMXFailure;
266  bool m_behaviorOnMXFailureHasBeenSet;
267  };
268 
269 } // namespace Model
270 } // namespace SES
271 } // namespace Aws
SetIdentityMailFromDomainRequest & WithBehaviorOnMXFailure(BehaviorOnMXFailure &&value)
SetIdentityMailFromDomainRequest & WithIdentity(const Aws::String &value)
SetIdentityMailFromDomainRequest & WithMailFromDomain(const char *value)
SetIdentityMailFromDomainRequest & WithIdentity(Aws::String &&value)
SetIdentityMailFromDomainRequest & WithBehaviorOnMXFailure(const BehaviorOnMXFailure &value)
SetIdentityMailFromDomainRequest & WithMailFromDomain(Aws::String &&value)
SetIdentityMailFromDomainRequest & WithIdentity(const char *value)
SetIdentityMailFromDomainRequest & WithMailFromDomain(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SES_API
Definition: SES_EXPORTS.h:28