AWS SDK for C++  0.14.3
AWS SDK for C++
SetIdentityMailFromDomainRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/email/SES_EXPORTS.h>
17 #include <aws/email/SESRequest.h>
20 
21 namespace Aws
22 {
23 namespace SES
24 {
25 namespace Model
26 {
27 
36  {
37  public:
39  Aws::String SerializePayload() const override;
40 
45  inline const Aws::String& GetIdentity() const{ return m_identity; }
46 
51  inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; }
52 
57  inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = value; }
58 
63  inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); }
64 
69  inline SetIdentityMailFromDomainRequest& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;}
70 
75  inline SetIdentityMailFromDomainRequest& WithIdentity(Aws::String&& value) { SetIdentity(value); return *this;}
76 
81  inline SetIdentityMailFromDomainRequest& WithIdentity(const char* value) { SetIdentity(value); return *this;}
82 
92  inline const Aws::String& GetMailFromDomain() const{ return m_mailFromDomain; }
93 
103  inline void SetMailFromDomain(const Aws::String& value) { m_mailFromDomainHasBeenSet = true; m_mailFromDomain = value; }
104 
114  inline void SetMailFromDomain(Aws::String&& value) { m_mailFromDomainHasBeenSet = true; m_mailFromDomain = value; }
115 
125  inline void SetMailFromDomain(const char* value) { m_mailFromDomainHasBeenSet = true; m_mailFromDomain.assign(value); }
126 
136  inline SetIdentityMailFromDomainRequest& WithMailFromDomain(const Aws::String& value) { SetMailFromDomain(value); return *this;}
137 
147  inline SetIdentityMailFromDomainRequest& WithMailFromDomain(Aws::String&& value) { SetMailFromDomain(value); return *this;}
148 
158  inline SetIdentityMailFromDomainRequest& WithMailFromDomain(const char* value) { SetMailFromDomain(value); return *this;}
159 
170  inline const BehaviorOnMXFailure& GetBehaviorOnMXFailure() const{ return m_behaviorOnMXFailure; }
171 
182  inline void SetBehaviorOnMXFailure(const BehaviorOnMXFailure& value) { m_behaviorOnMXFailureHasBeenSet = true; m_behaviorOnMXFailure = value; }
183 
194  inline void SetBehaviorOnMXFailure(BehaviorOnMXFailure&& value) { m_behaviorOnMXFailureHasBeenSet = true; m_behaviorOnMXFailure = value; }
195 
206  inline SetIdentityMailFromDomainRequest& WithBehaviorOnMXFailure(const BehaviorOnMXFailure& value) { SetBehaviorOnMXFailure(value); return *this;}
207 
218  inline SetIdentityMailFromDomainRequest& WithBehaviorOnMXFailure(BehaviorOnMXFailure&& value) { SetBehaviorOnMXFailure(value); return *this;}
219 
220  private:
221  Aws::String m_identity;
222  bool m_identityHasBeenSet;
223  Aws::String m_mailFromDomain;
224  bool m_mailFromDomainHasBeenSet;
225  BehaviorOnMXFailure m_behaviorOnMXFailure;
226  bool m_behaviorOnMXFailureHasBeenSet;
227  };
228 
229 } // namespace Model
230 } // namespace SES
231 } // 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:37
JSON (JavaScript Object Notation).