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-email/PinpointEmail_EXPORTS.h>
8 #include <aws/pinpoint-email/PinpointEmailRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace PinpointEmail
15 {
16 namespace Model
17 {
18 
19   /**
20    * <p>A request to move a dedicated IP address to a dedicated IP
21    * pool.</p><p><h3>See Also:</h3>   <a
22    * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutDedicatedIpInPoolRequest">AWS
23    * API Reference</a></p>
24    */
25   class AWS_PINPOINTEMAIL_API PutDedicatedIpInPoolRequest : public PinpointEmailRequest
26   {
27   public:
28     PutDedicatedIpInPoolRequest();
29 
30     // Service request name is the Operation name which will send this request out,
31     // each operation should has unique request name, so that we can get operation's name from this request.
32     // Note: this is not true for response, multiple operations may have the same response name,
33     // so we can not get operation's name from response.
GetServiceRequestName()34     inline virtual const char* GetServiceRequestName() const override { return "PutDedicatedIpInPool"; }
35 
36     Aws::String SerializePayload() const override;
37 
38 
39     /**
40      * <p>The IP address that you want to move to the dedicated IP pool. The value you
41      * specify has to be a dedicated IP address that's associated with your Amazon
42      * Pinpoint account.</p>
43      */
GetIp()44     inline const Aws::String& GetIp() const{ return m_ip; }
45 
46     /**
47      * <p>The IP address that you want to move to the dedicated IP pool. The value you
48      * specify has to be a dedicated IP address that's associated with your Amazon
49      * Pinpoint account.</p>
50      */
IpHasBeenSet()51     inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
52 
53     /**
54      * <p>The IP address that you want to move to the dedicated IP pool. The value you
55      * specify has to be a dedicated IP address that's associated with your Amazon
56      * Pinpoint account.</p>
57      */
SetIp(const Aws::String & value)58     inline void SetIp(const Aws::String& value) { m_ipHasBeenSet = true; m_ip = value; }
59 
60     /**
61      * <p>The IP address that you want to move to the dedicated IP pool. The value you
62      * specify has to be a dedicated IP address that's associated with your Amazon
63      * Pinpoint account.</p>
64      */
SetIp(Aws::String && value)65     inline void SetIp(Aws::String&& value) { m_ipHasBeenSet = true; m_ip = std::move(value); }
66 
67     /**
68      * <p>The IP address that you want to move to the dedicated IP pool. The value you
69      * specify has to be a dedicated IP address that's associated with your Amazon
70      * Pinpoint account.</p>
71      */
SetIp(const char * value)72     inline void SetIp(const char* value) { m_ipHasBeenSet = true; m_ip.assign(value); }
73 
74     /**
75      * <p>The IP address that you want to move to the dedicated IP pool. The value you
76      * specify has to be a dedicated IP address that's associated with your Amazon
77      * Pinpoint account.</p>
78      */
WithIp(const Aws::String & value)79     inline PutDedicatedIpInPoolRequest& WithIp(const Aws::String& value) { SetIp(value); return *this;}
80 
81     /**
82      * <p>The IP address that you want to move to the dedicated IP pool. The value you
83      * specify has to be a dedicated IP address that's associated with your Amazon
84      * Pinpoint account.</p>
85      */
WithIp(Aws::String && value)86     inline PutDedicatedIpInPoolRequest& WithIp(Aws::String&& value) { SetIp(std::move(value)); return *this;}
87 
88     /**
89      * <p>The IP address that you want to move to the dedicated IP pool. The value you
90      * specify has to be a dedicated IP address that's associated with your Amazon
91      * Pinpoint account.</p>
92      */
WithIp(const char * value)93     inline PutDedicatedIpInPoolRequest& WithIp(const char* value) { SetIp(value); return *this;}
94 
95 
96     /**
97      * <p>The name of the IP pool that you want to add the dedicated IP address to. You
98      * have to specify an IP pool that already exists.</p>
99      */
GetDestinationPoolName()100     inline const Aws::String& GetDestinationPoolName() const{ return m_destinationPoolName; }
101 
102     /**
103      * <p>The name of the IP pool that you want to add the dedicated IP address to. You
104      * have to specify an IP pool that already exists.</p>
105      */
DestinationPoolNameHasBeenSet()106     inline bool DestinationPoolNameHasBeenSet() const { return m_destinationPoolNameHasBeenSet; }
107 
108     /**
109      * <p>The name of the IP pool that you want to add the dedicated IP address to. You
110      * have to specify an IP pool that already exists.</p>
111      */
SetDestinationPoolName(const Aws::String & value)112     inline void SetDestinationPoolName(const Aws::String& value) { m_destinationPoolNameHasBeenSet = true; m_destinationPoolName = value; }
113 
114     /**
115      * <p>The name of the IP pool that you want to add the dedicated IP address to. You
116      * have to specify an IP pool that already exists.</p>
117      */
SetDestinationPoolName(Aws::String && value)118     inline void SetDestinationPoolName(Aws::String&& value) { m_destinationPoolNameHasBeenSet = true; m_destinationPoolName = std::move(value); }
119 
120     /**
121      * <p>The name of the IP pool that you want to add the dedicated IP address to. You
122      * have to specify an IP pool that already exists.</p>
123      */
SetDestinationPoolName(const char * value)124     inline void SetDestinationPoolName(const char* value) { m_destinationPoolNameHasBeenSet = true; m_destinationPoolName.assign(value); }
125 
126     /**
127      * <p>The name of the IP pool that you want to add the dedicated IP address to. You
128      * have to specify an IP pool that already exists.</p>
129      */
WithDestinationPoolName(const Aws::String & value)130     inline PutDedicatedIpInPoolRequest& WithDestinationPoolName(const Aws::String& value) { SetDestinationPoolName(value); return *this;}
131 
132     /**
133      * <p>The name of the IP pool that you want to add the dedicated IP address to. You
134      * have to specify an IP pool that already exists.</p>
135      */
WithDestinationPoolName(Aws::String && value)136     inline PutDedicatedIpInPoolRequest& WithDestinationPoolName(Aws::String&& value) { SetDestinationPoolName(std::move(value)); return *this;}
137 
138     /**
139      * <p>The name of the IP pool that you want to add the dedicated IP address to. You
140      * have to specify an IP pool that already exists.</p>
141      */
WithDestinationPoolName(const char * value)142     inline PutDedicatedIpInPoolRequest& WithDestinationPoolName(const char* value) { SetDestinationPoolName(value); return *this;}
143 
144   private:
145 
146     Aws::String m_ip;
147     bool m_ipHasBeenSet;
148 
149     Aws::String m_destinationPoolName;
150     bool m_destinationPoolNameHasBeenSet;
151   };
152 
153 } // namespace Model
154 } // namespace PinpointEmail
155 } // namespace Aws
156