AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClusterSecurityGroupRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateClusterSecurityGroup"; }
36
37 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
53 inline const Aws::String& GetClusterSecurityGroupName() const{ return m_clusterSecurityGroupName; }
54 inline bool ClusterSecurityGroupNameHasBeenSet() const { return m_clusterSecurityGroupNameHasBeenSet; }
55 inline void SetClusterSecurityGroupName(const Aws::String& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = value; }
56 inline void SetClusterSecurityGroupName(Aws::String&& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = std::move(value); }
57 inline void SetClusterSecurityGroupName(const char* value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName.assign(value); }
62
64
67 inline const Aws::String& GetDescription() const{ return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
70 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
71 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
72 inline CreateClusterSecurityGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
73 inline CreateClusterSecurityGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
74 inline CreateClusterSecurityGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
76
78
81 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
82 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
83 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
84 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
85 inline CreateClusterSecurityGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
86 inline CreateClusterSecurityGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
87 inline CreateClusterSecurityGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
88 inline CreateClusterSecurityGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
90 private:
91
92 Aws::String m_clusterSecurityGroupName;
93 bool m_clusterSecurityGroupNameHasBeenSet = false;
94
95 Aws::String m_description;
96 bool m_descriptionHasBeenSet = false;
97
98 Aws::Vector<Tag> m_tags;
99 bool m_tagsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Redshift
104} // namespace Aws
CreateClusterSecurityGroupRequest & WithDescription(Aws::String &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateClusterSecurityGroupRequest & WithClusterSecurityGroupName(Aws::String &&value)
CreateClusterSecurityGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateClusterSecurityGroupRequest & WithClusterSecurityGroupName(const char *value)
CreateClusterSecurityGroupRequest & WithClusterSecurityGroupName(const Aws::String &value)
CreateClusterSecurityGroupRequest & WithDescription(const Aws::String &value)
CreateClusterSecurityGroupRequest & WithDescription(const char *value)
CreateClusterSecurityGroupRequest & AddTags(const Tag &value)
CreateClusterSecurityGroupRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector