221 lines
9.0 KiB
C++
221 lines
9.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/redshift/Redshift_EXPORTS.h>
|
|
#include <aws/redshift/RedshiftRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/redshift/model/Tag.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Redshift
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p/><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSecurityGroupMessage">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_REDSHIFT_API CreateClusterSecurityGroupRequest : public RedshiftRequest
|
|
{
|
|
public:
|
|
CreateClusterSecurityGroupRequest();
|
|
|
|
// Service request name is the Operation name which will send this request out,
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|
// so we can not get operation's name from response.
|
|
inline virtual const char* GetServiceRequestName() const override { return "CreateClusterSecurityGroup"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
protected:
|
|
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
|
|
|
|
public:
|
|
|
|
/**
|
|
* <p>The name for the security group. Amazon Redshift stores the value as a
|
|
* lowercase string.</p> <p>Constraints:</p> <ul> <li> <p>Must contain no more than
|
|
* 255 alphanumeric characters or hyphens.</p> </li> <li> <p>Must not be
|
|
* "Default".</p> </li> <li> <p>Must be unique for all security groups that are
|
|
* created by your AWS account.</p> </li> </ul> <p>Example:
|
|
* <code>examplesecuritygroup</code> </p>
|
|
*/
|
|
inline const Aws::String& GetClusterSecurityGroupName() const{ return m_clusterSecurityGroupName; }
|
|
|
|
/**
|
|
* <p>The name for the security group. Amazon Redshift stores the value as a
|
|
* lowercase string.</p> <p>Constraints:</p> <ul> <li> <p>Must contain no more than
|
|
* 255 alphanumeric characters or hyphens.</p> </li> <li> <p>Must not be
|
|
* "Default".</p> </li> <li> <p>Must be unique for all security groups that are
|
|
* created by your AWS account.</p> </li> </ul> <p>Example:
|
|
* <code>examplesecuritygroup</code> </p>
|
|
*/
|
|
inline bool ClusterSecurityGroupNameHasBeenSet() const { return m_clusterSecurityGroupNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name for the security group. Amazon Redshift stores the value as a
|
|
* lowercase string.</p> <p>Constraints:</p> <ul> <li> <p>Must contain no more than
|
|
* 255 alphanumeric characters or hyphens.</p> </li> <li> <p>Must not be
|
|
* "Default".</p> </li> <li> <p>Must be unique for all security groups that are
|
|
* created by your AWS account.</p> </li> </ul> <p>Example:
|
|
* <code>examplesecuritygroup</code> </p>
|
|
*/
|
|
inline void SetClusterSecurityGroupName(const Aws::String& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = value; }
|
|
|
|
/**
|
|
* <p>The name for the security group. Amazon Redshift stores the value as a
|
|
* lowercase string.</p> <p>Constraints:</p> <ul> <li> <p>Must contain no more than
|
|
* 255 alphanumeric characters or hyphens.</p> </li> <li> <p>Must not be
|
|
* "Default".</p> </li> <li> <p>Must be unique for all security groups that are
|
|
* created by your AWS account.</p> </li> </ul> <p>Example:
|
|
* <code>examplesecuritygroup</code> </p>
|
|
*/
|
|
inline void SetClusterSecurityGroupName(Aws::String&& value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name for the security group. Amazon Redshift stores the value as a
|
|
* lowercase string.</p> <p>Constraints:</p> <ul> <li> <p>Must contain no more than
|
|
* 255 alphanumeric characters or hyphens.</p> </li> <li> <p>Must not be
|
|
* "Default".</p> </li> <li> <p>Must be unique for all security groups that are
|
|
* created by your AWS account.</p> </li> </ul> <p>Example:
|
|
* <code>examplesecuritygroup</code> </p>
|
|
*/
|
|
inline void SetClusterSecurityGroupName(const char* value) { m_clusterSecurityGroupNameHasBeenSet = true; m_clusterSecurityGroupName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name for the security group. Amazon Redshift stores the value as a
|
|
* lowercase string.</p> <p>Constraints:</p> <ul> <li> <p>Must contain no more than
|
|
* 255 alphanumeric characters or hyphens.</p> </li> <li> <p>Must not be
|
|
* "Default".</p> </li> <li> <p>Must be unique for all security groups that are
|
|
* created by your AWS account.</p> </li> </ul> <p>Example:
|
|
* <code>examplesecuritygroup</code> </p>
|
|
*/
|
|
inline CreateClusterSecurityGroupRequest& WithClusterSecurityGroupName(const Aws::String& value) { SetClusterSecurityGroupName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name for the security group. Amazon Redshift stores the value as a
|
|
* lowercase string.</p> <p>Constraints:</p> <ul> <li> <p>Must contain no more than
|
|
* 255 alphanumeric characters or hyphens.</p> </li> <li> <p>Must not be
|
|
* "Default".</p> </li> <li> <p>Must be unique for all security groups that are
|
|
* created by your AWS account.</p> </li> </ul> <p>Example:
|
|
* <code>examplesecuritygroup</code> </p>
|
|
*/
|
|
inline CreateClusterSecurityGroupRequest& WithClusterSecurityGroupName(Aws::String&& value) { SetClusterSecurityGroupName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name for the security group. Amazon Redshift stores the value as a
|
|
* lowercase string.</p> <p>Constraints:</p> <ul> <li> <p>Must contain no more than
|
|
* 255 alphanumeric characters or hyphens.</p> </li> <li> <p>Must not be
|
|
* "Default".</p> </li> <li> <p>Must be unique for all security groups that are
|
|
* created by your AWS account.</p> </li> </ul> <p>Example:
|
|
* <code>examplesecuritygroup</code> </p>
|
|
*/
|
|
inline CreateClusterSecurityGroupRequest& WithClusterSecurityGroupName(const char* value) { SetClusterSecurityGroupName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A description for the security group.</p>
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* <p>A description for the security group.</p>
|
|
*/
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A description for the security group.</p>
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|
|
|
/**
|
|
* <p>A description for the security group.</p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p>A description for the security group.</p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|
|
|
/**
|
|
* <p>A description for the security group.</p>
|
|
*/
|
|
inline CreateClusterSecurityGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p>A description for the security group.</p>
|
|
*/
|
|
inline CreateClusterSecurityGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A description for the security group.</p>
|
|
*/
|
|
inline CreateClusterSecurityGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline CreateClusterSecurityGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline CreateClusterSecurityGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline CreateClusterSecurityGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of tag instances.</p>
|
|
*/
|
|
inline CreateClusterSecurityGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_clusterSecurityGroupName;
|
|
bool m_clusterSecurityGroupNameHasBeenSet;
|
|
|
|
Aws::String m_description;
|
|
bool m_descriptionHasBeenSet;
|
|
|
|
Aws::Vector<Tag> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Redshift
|
|
} // namespace Aws
|