/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Neptune { namespace Model { /** */ class CreateDBClusterEndpointRequest : public NeptuneRequest { public: AWS_NEPTUNE_API CreateDBClusterEndpointRequest(); // 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 "CreateDBClusterEndpoint"; } AWS_NEPTUNE_API Aws::String SerializePayload() const override; protected: AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The DB cluster identifier of the DB cluster associated with the endpoint. * This parameter is stored as a lowercase string.

*/ inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; } /** *

The DB cluster identifier of the DB cluster associated with the endpoint. * This parameter is stored as a lowercase string.

*/ inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; } /** *

The DB cluster identifier of the DB cluster associated with the endpoint. * This parameter is stored as a lowercase string.

*/ inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; } /** *

The DB cluster identifier of the DB cluster associated with the endpoint. * This parameter is stored as a lowercase string.

*/ inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); } /** *

The DB cluster identifier of the DB cluster associated with the endpoint. * This parameter is stored as a lowercase string.

*/ inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); } /** *

The DB cluster identifier of the DB cluster associated with the endpoint. * This parameter is stored as a lowercase string.

*/ inline CreateDBClusterEndpointRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;} /** *

The DB cluster identifier of the DB cluster associated with the endpoint. * This parameter is stored as a lowercase string.

*/ inline CreateDBClusterEndpointRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;} /** *

The DB cluster identifier of the DB cluster associated with the endpoint. * This parameter is stored as a lowercase string.

*/ inline CreateDBClusterEndpointRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;} /** *

The identifier to use for the new endpoint. This parameter is stored as a * lowercase string.

*/ inline const Aws::String& GetDBClusterEndpointIdentifier() const{ return m_dBClusterEndpointIdentifier; } /** *

The identifier to use for the new endpoint. This parameter is stored as a * lowercase string.

*/ inline bool DBClusterEndpointIdentifierHasBeenSet() const { return m_dBClusterEndpointIdentifierHasBeenSet; } /** *

The identifier to use for the new endpoint. This parameter is stored as a * lowercase string.

*/ inline void SetDBClusterEndpointIdentifier(const Aws::String& value) { m_dBClusterEndpointIdentifierHasBeenSet = true; m_dBClusterEndpointIdentifier = value; } /** *

The identifier to use for the new endpoint. This parameter is stored as a * lowercase string.

*/ inline void SetDBClusterEndpointIdentifier(Aws::String&& value) { m_dBClusterEndpointIdentifierHasBeenSet = true; m_dBClusterEndpointIdentifier = std::move(value); } /** *

The identifier to use for the new endpoint. This parameter is stored as a * lowercase string.

*/ inline void SetDBClusterEndpointIdentifier(const char* value) { m_dBClusterEndpointIdentifierHasBeenSet = true; m_dBClusterEndpointIdentifier.assign(value); } /** *

The identifier to use for the new endpoint. This parameter is stored as a * lowercase string.

*/ inline CreateDBClusterEndpointRequest& WithDBClusterEndpointIdentifier(const Aws::String& value) { SetDBClusterEndpointIdentifier(value); return *this;} /** *

The identifier to use for the new endpoint. This parameter is stored as a * lowercase string.

*/ inline CreateDBClusterEndpointRequest& WithDBClusterEndpointIdentifier(Aws::String&& value) { SetDBClusterEndpointIdentifier(std::move(value)); return *this;} /** *

The identifier to use for the new endpoint. This parameter is stored as a * lowercase string.

*/ inline CreateDBClusterEndpointRequest& WithDBClusterEndpointIdentifier(const char* value) { SetDBClusterEndpointIdentifier(value); return *this;} /** *

The type of the endpoint. One of: READER, WRITER, * ANY.

*/ inline const Aws::String& GetEndpointType() const{ return m_endpointType; } /** *

The type of the endpoint. One of: READER, WRITER, * ANY.

*/ inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; } /** *

The type of the endpoint. One of: READER, WRITER, * ANY.

*/ inline void SetEndpointType(const Aws::String& value) { m_endpointTypeHasBeenSet = true; m_endpointType = value; } /** *

The type of the endpoint. One of: READER, WRITER, * ANY.

*/ inline void SetEndpointType(Aws::String&& value) { m_endpointTypeHasBeenSet = true; m_endpointType = std::move(value); } /** *

The type of the endpoint. One of: READER, WRITER, * ANY.

*/ inline void SetEndpointType(const char* value) { m_endpointTypeHasBeenSet = true; m_endpointType.assign(value); } /** *

The type of the endpoint. One of: READER, WRITER, * ANY.

*/ inline CreateDBClusterEndpointRequest& WithEndpointType(const Aws::String& value) { SetEndpointType(value); return *this;} /** *

The type of the endpoint. One of: READER, WRITER, * ANY.

*/ inline CreateDBClusterEndpointRequest& WithEndpointType(Aws::String&& value) { SetEndpointType(std::move(value)); return *this;} /** *

The type of the endpoint. One of: READER, WRITER, * ANY.

*/ inline CreateDBClusterEndpointRequest& WithEndpointType(const char* value) { SetEndpointType(value); return *this;} /** *

List of DB instance identifiers that are part of the custom endpoint * group.

*/ inline const Aws::Vector& GetStaticMembers() const{ return m_staticMembers; } /** *

List of DB instance identifiers that are part of the custom endpoint * group.

*/ inline bool StaticMembersHasBeenSet() const { return m_staticMembersHasBeenSet; } /** *

List of DB instance identifiers that are part of the custom endpoint * group.

*/ inline void SetStaticMembers(const Aws::Vector& value) { m_staticMembersHasBeenSet = true; m_staticMembers = value; } /** *

List of DB instance identifiers that are part of the custom endpoint * group.

*/ inline void SetStaticMembers(Aws::Vector&& value) { m_staticMembersHasBeenSet = true; m_staticMembers = std::move(value); } /** *

List of DB instance identifiers that are part of the custom endpoint * group.

*/ inline CreateDBClusterEndpointRequest& WithStaticMembers(const Aws::Vector& value) { SetStaticMembers(value); return *this;} /** *

List of DB instance identifiers that are part of the custom endpoint * group.

*/ inline CreateDBClusterEndpointRequest& WithStaticMembers(Aws::Vector&& value) { SetStaticMembers(std::move(value)); return *this;} /** *

List of DB instance identifiers that are part of the custom endpoint * group.

*/ inline CreateDBClusterEndpointRequest& AddStaticMembers(const Aws::String& value) { m_staticMembersHasBeenSet = true; m_staticMembers.push_back(value); return *this; } /** *

List of DB instance identifiers that are part of the custom endpoint * group.

*/ inline CreateDBClusterEndpointRequest& AddStaticMembers(Aws::String&& value) { m_staticMembersHasBeenSet = true; m_staticMembers.push_back(std::move(value)); return *this; } /** *

List of DB instance identifiers that are part of the custom endpoint * group.

*/ inline CreateDBClusterEndpointRequest& AddStaticMembers(const char* value) { m_staticMembersHasBeenSet = true; m_staticMembers.push_back(value); return *this; } /** *

List of DB instance identifiers that aren't part of the custom endpoint * group. All other eligible instances are reachable through the custom endpoint. * Only relevant if the list of static members is empty.

*/ inline const Aws::Vector& GetExcludedMembers() const{ return m_excludedMembers; } /** *

List of DB instance identifiers that aren't part of the custom endpoint * group. All other eligible instances are reachable through the custom endpoint. * Only relevant if the list of static members is empty.

*/ inline bool ExcludedMembersHasBeenSet() const { return m_excludedMembersHasBeenSet; } /** *

List of DB instance identifiers that aren't part of the custom endpoint * group. All other eligible instances are reachable through the custom endpoint. * Only relevant if the list of static members is empty.

*/ inline void SetExcludedMembers(const Aws::Vector& value) { m_excludedMembersHasBeenSet = true; m_excludedMembers = value; } /** *

List of DB instance identifiers that aren't part of the custom endpoint * group. All other eligible instances are reachable through the custom endpoint. * Only relevant if the list of static members is empty.

*/ inline void SetExcludedMembers(Aws::Vector&& value) { m_excludedMembersHasBeenSet = true; m_excludedMembers = std::move(value); } /** *

List of DB instance identifiers that aren't part of the custom endpoint * group. All other eligible instances are reachable through the custom endpoint. * Only relevant if the list of static members is empty.

*/ inline CreateDBClusterEndpointRequest& WithExcludedMembers(const Aws::Vector& value) { SetExcludedMembers(value); return *this;} /** *

List of DB instance identifiers that aren't part of the custom endpoint * group. All other eligible instances are reachable through the custom endpoint. * Only relevant if the list of static members is empty.

*/ inline CreateDBClusterEndpointRequest& WithExcludedMembers(Aws::Vector&& value) { SetExcludedMembers(std::move(value)); return *this;} /** *

List of DB instance identifiers that aren't part of the custom endpoint * group. All other eligible instances are reachable through the custom endpoint. * Only relevant if the list of static members is empty.

*/ inline CreateDBClusterEndpointRequest& AddExcludedMembers(const Aws::String& value) { m_excludedMembersHasBeenSet = true; m_excludedMembers.push_back(value); return *this; } /** *

List of DB instance identifiers that aren't part of the custom endpoint * group. All other eligible instances are reachable through the custom endpoint. * Only relevant if the list of static members is empty.

*/ inline CreateDBClusterEndpointRequest& AddExcludedMembers(Aws::String&& value) { m_excludedMembersHasBeenSet = true; m_excludedMembers.push_back(std::move(value)); return *this; } /** *

List of DB instance identifiers that aren't part of the custom endpoint * group. All other eligible instances are reachable through the custom endpoint. * Only relevant if the list of static members is empty.

*/ inline CreateDBClusterEndpointRequest& AddExcludedMembers(const char* value) { m_excludedMembersHasBeenSet = true; m_excludedMembers.push_back(value); return *this; } /** *

The tags to be assigned to the Amazon Neptune resource.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags to be assigned to the Amazon Neptune resource.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags to be assigned to the Amazon Neptune resource.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags to be assigned to the Amazon Neptune resource.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags to be assigned to the Amazon Neptune resource.

*/ inline CreateDBClusterEndpointRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags to be assigned to the Amazon Neptune resource.

*/ inline CreateDBClusterEndpointRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags to be assigned to the Amazon Neptune resource.

*/ inline CreateDBClusterEndpointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags to be assigned to the Amazon Neptune resource.

*/ inline CreateDBClusterEndpointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_dBClusterIdentifier; bool m_dBClusterIdentifierHasBeenSet = false; Aws::String m_dBClusterEndpointIdentifier; bool m_dBClusterEndpointIdentifierHasBeenSet = false; Aws::String m_endpointType; bool m_endpointTypeHasBeenSet = false; Aws::Vector m_staticMembers; bool m_staticMembersHasBeenSet = false; Aws::Vector m_excludedMembers; bool m_excludedMembersHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws