AWS SDK for C++  1.8.71
AWS SDK for C++
RevokeCacheSecurityGroupIngressRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ElastiCache
15 {
16 namespace Model
17 {
18 
26  {
27  public:
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.
34  inline virtual const char* GetServiceRequestName() const override { return "RevokeCacheSecurityGroupIngress"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetCacheSecurityGroupName() const{ return m_cacheSecurityGroupName; }
47 
51  inline bool CacheSecurityGroupNameHasBeenSet() const { return m_cacheSecurityGroupNameHasBeenSet; }
52 
56  inline void SetCacheSecurityGroupName(const Aws::String& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = value; }
57 
61  inline void SetCacheSecurityGroupName(Aws::String&& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = std::move(value); }
62 
66  inline void SetCacheSecurityGroupName(const char* value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName.assign(value); }
67 
71  inline RevokeCacheSecurityGroupIngressRequest& WithCacheSecurityGroupName(const Aws::String& value) { SetCacheSecurityGroupName(value); return *this;}
72 
76  inline RevokeCacheSecurityGroupIngressRequest& WithCacheSecurityGroupName(Aws::String&& value) { SetCacheSecurityGroupName(std::move(value)); return *this;}
77 
81  inline RevokeCacheSecurityGroupIngressRequest& WithCacheSecurityGroupName(const char* value) { SetCacheSecurityGroupName(value); return *this;}
82 
83 
87  inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; }
88 
92  inline bool EC2SecurityGroupNameHasBeenSet() const { return m_eC2SecurityGroupNameHasBeenSet; }
93 
97  inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
98 
102  inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = std::move(value); }
103 
107  inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); }
108 
112  inline RevokeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupName(const Aws::String& value) { SetEC2SecurityGroupName(value); return *this;}
113 
117  inline RevokeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(std::move(value)); return *this;}
118 
122  inline RevokeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;}
123 
124 
130  inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; }
131 
137  inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; }
138 
144  inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
145 
151  inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = std::move(value); }
152 
158  inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); }
159 
165  inline RevokeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const Aws::String& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
166 
172  inline RevokeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(std::move(value)); return *this;}
173 
179  inline RevokeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;}
180 
181  private:
182 
183  Aws::String m_cacheSecurityGroupName;
184  bool m_cacheSecurityGroupNameHasBeenSet;
185 
186  Aws::String m_eC2SecurityGroupName;
187  bool m_eC2SecurityGroupNameHasBeenSet;
188 
189  Aws::String m_eC2SecurityGroupOwnerId;
190  bool m_eC2SecurityGroupOwnerIdHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace ElastiCache
195 } // namespace Aws
RevokeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(Aws::String &&value)
RevokeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupName(Aws::String &&value)
RevokeCacheSecurityGroupIngressRequest & WithCacheSecurityGroupName(const char *value)
RevokeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupName(const Aws::String &value)
RevokeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const Aws::String &value)
RevokeCacheSecurityGroupIngressRequest & WithCacheSecurityGroupName(const Aws::String &value)
RevokeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupName(const char *value)
RevokeCacheSecurityGroupIngressRequest & WithCacheSecurityGroupName(Aws::String &&value)
RevokeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API