AWS SDK for C++  0.12.9
AWS SDK for C++
CreateClusterSecurityGroupRequest.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
20 #include <aws/redshift/model/Tag.h>
21 
22 namespace Aws
23 {
24 namespace Redshift
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
45  inline const Aws::String& GetClusterSecurityGroupName() const{ return m_clusterSecurityGroupName; }
46 
54  inline void SetClusterSecurityGroupName(const Aws::String& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = value; }
55 
63  inline void SetClusterSecurityGroupName(Aws::String&& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = value; }
64 
72  inline void SetClusterSecurityGroupName(const char* value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName.assign(value); }
73 
81  inline CreateClusterSecurityGroupRequest& WithClusterSecurityGroupName(const Aws::String& value) { SetClusterSecurityGroupName(value); return *this;}
82 
90  inline CreateClusterSecurityGroupRequest& WithClusterSecurityGroupName(Aws::String&& value) { SetClusterSecurityGroupName(value); return *this;}
91 
99  inline CreateClusterSecurityGroupRequest& WithClusterSecurityGroupName(const char* value) { SetClusterSecurityGroupName(value); return *this;}
100 
104  inline const Aws::String& GetDescription() const{ return m_description; }
105 
109  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
110 
114  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
115 
119  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
120 
124  inline CreateClusterSecurityGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
125 
129  inline CreateClusterSecurityGroupRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
130 
134  inline CreateClusterSecurityGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
135 
139  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
140 
144  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
145 
149  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
150 
154  inline CreateClusterSecurityGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
155 
159  inline CreateClusterSecurityGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
160 
164  inline CreateClusterSecurityGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
165 
169  inline CreateClusterSecurityGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
170 
171  private:
172  Aws::String m_clusterSecurityGroupName;
173  bool m_clusterSecurityGroupNameHasBeenSet;
174  Aws::String m_description;
175  bool m_descriptionHasBeenSet;
176  Aws::Vector<Tag> m_tags;
177  bool m_tagsHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace Redshift
182 } // namespace Aws
CreateClusterSecurityGroupRequest & AddTags(const Tag &value)
CreateClusterSecurityGroupRequest & WithClusterSecurityGroupName(Aws::String &&value)
CreateClusterSecurityGroupRequest & WithTags(const Aws::Vector< Tag > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateClusterSecurityGroupRequest & WithDescription(Aws::String &&value)
CreateClusterSecurityGroupRequest & WithDescription(const Aws::String &value)
#define AWS_REDSHIFT_API
CreateClusterSecurityGroupRequest & WithTags(Aws::Vector< Tag > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateClusterSecurityGroupRequest & WithClusterSecurityGroupName(const char *value)
CreateClusterSecurityGroupRequest & WithDescription(const char *value)
CreateClusterSecurityGroupRequest & WithClusterSecurityGroupName(const Aws::String &value)
JSON (JavaScript Object Notation).