/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace Pipes { namespace Model { /** */ class CreatePipeRequest : public PipesRequest { public: AWS_PIPES_API CreatePipeRequest(); // 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 "CreatePipe"; } AWS_PIPES_API Aws::String SerializePayload() const override; /** *

A description of the pipe.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the pipe.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the pipe.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the pipe.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the pipe.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the pipe.

*/ inline CreatePipeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the pipe.

*/ inline CreatePipeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the pipe.

*/ inline CreatePipeRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The state the pipe should be in.

*/ inline const RequestedPipeState& GetDesiredState() const{ return m_desiredState; } /** *

The state the pipe should be in.

*/ inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; } /** *

The state the pipe should be in.

*/ inline void SetDesiredState(const RequestedPipeState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; } /** *

The state the pipe should be in.

*/ inline void SetDesiredState(RequestedPipeState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); } /** *

The state the pipe should be in.

*/ inline CreatePipeRequest& WithDesiredState(const RequestedPipeState& value) { SetDesiredState(value); return *this;} /** *

The state the pipe should be in.

*/ inline CreatePipeRequest& WithDesiredState(RequestedPipeState&& value) { SetDesiredState(std::move(value)); return *this;} /** *

The ARN of the enrichment resource.

*/ inline const Aws::String& GetEnrichment() const{ return m_enrichment; } /** *

The ARN of the enrichment resource.

*/ inline bool EnrichmentHasBeenSet() const { return m_enrichmentHasBeenSet; } /** *

The ARN of the enrichment resource.

*/ inline void SetEnrichment(const Aws::String& value) { m_enrichmentHasBeenSet = true; m_enrichment = value; } /** *

The ARN of the enrichment resource.

*/ inline void SetEnrichment(Aws::String&& value) { m_enrichmentHasBeenSet = true; m_enrichment = std::move(value); } /** *

The ARN of the enrichment resource.

*/ inline void SetEnrichment(const char* value) { m_enrichmentHasBeenSet = true; m_enrichment.assign(value); } /** *

The ARN of the enrichment resource.

*/ inline CreatePipeRequest& WithEnrichment(const Aws::String& value) { SetEnrichment(value); return *this;} /** *

The ARN of the enrichment resource.

*/ inline CreatePipeRequest& WithEnrichment(Aws::String&& value) { SetEnrichment(std::move(value)); return *this;} /** *

The ARN of the enrichment resource.

*/ inline CreatePipeRequest& WithEnrichment(const char* value) { SetEnrichment(value); return *this;} /** *

The parameters required to set up enrichment on your pipe.

*/ inline const PipeEnrichmentParameters& GetEnrichmentParameters() const{ return m_enrichmentParameters; } /** *

The parameters required to set up enrichment on your pipe.

*/ inline bool EnrichmentParametersHasBeenSet() const { return m_enrichmentParametersHasBeenSet; } /** *

The parameters required to set up enrichment on your pipe.

*/ inline void SetEnrichmentParameters(const PipeEnrichmentParameters& value) { m_enrichmentParametersHasBeenSet = true; m_enrichmentParameters = value; } /** *

The parameters required to set up enrichment on your pipe.

*/ inline void SetEnrichmentParameters(PipeEnrichmentParameters&& value) { m_enrichmentParametersHasBeenSet = true; m_enrichmentParameters = std::move(value); } /** *

The parameters required to set up enrichment on your pipe.

*/ inline CreatePipeRequest& WithEnrichmentParameters(const PipeEnrichmentParameters& value) { SetEnrichmentParameters(value); return *this;} /** *

The parameters required to set up enrichment on your pipe.

*/ inline CreatePipeRequest& WithEnrichmentParameters(PipeEnrichmentParameters&& value) { SetEnrichmentParameters(std::move(value)); return *this;} /** *

The name of the pipe.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the pipe.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the pipe.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the pipe.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the pipe.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the pipe.

*/ inline CreatePipeRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the pipe.

*/ inline CreatePipeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the pipe.

*/ inline CreatePipeRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The ARN of the role that allows the pipe to send data to the target.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of the role that allows the pipe to send data to the target.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of the role that allows the pipe to send data to the target.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of the role that allows the pipe to send data to the target.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of the role that allows the pipe to send data to the target.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of the role that allows the pipe to send data to the target.

*/ inline CreatePipeRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of the role that allows the pipe to send data to the target.

*/ inline CreatePipeRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of the role that allows the pipe to send data to the target.

*/ inline CreatePipeRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The ARN of the source resource.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The ARN of the source resource.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The ARN of the source resource.

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The ARN of the source resource.

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The ARN of the source resource.

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

The ARN of the source resource.

*/ inline CreatePipeRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

The ARN of the source resource.

*/ inline CreatePipeRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

The ARN of the source resource.

*/ inline CreatePipeRequest& WithSource(const char* value) { SetSource(value); return *this;} /** *

The parameters required to set up a source for your pipe.

*/ inline const PipeSourceParameters& GetSourceParameters() const{ return m_sourceParameters; } /** *

The parameters required to set up a source for your pipe.

*/ inline bool SourceParametersHasBeenSet() const { return m_sourceParametersHasBeenSet; } /** *

The parameters required to set up a source for your pipe.

*/ inline void SetSourceParameters(const PipeSourceParameters& value) { m_sourceParametersHasBeenSet = true; m_sourceParameters = value; } /** *

The parameters required to set up a source for your pipe.

*/ inline void SetSourceParameters(PipeSourceParameters&& value) { m_sourceParametersHasBeenSet = true; m_sourceParameters = std::move(value); } /** *

The parameters required to set up a source for your pipe.

*/ inline CreatePipeRequest& WithSourceParameters(const PipeSourceParameters& value) { SetSourceParameters(value); return *this;} /** *

The parameters required to set up a source for your pipe.

*/ inline CreatePipeRequest& WithSourceParameters(PipeSourceParameters&& value) { SetSourceParameters(std::move(value)); return *this;} /** *

The list of key-value pairs to associate with the pipe.

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

The list of key-value pairs to associate with the pipe.

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

The list of key-value pairs to associate with the pipe.

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

The list of key-value pairs to associate with the pipe.

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

The list of key-value pairs to associate with the pipe.

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

The list of key-value pairs to associate with the pipe.

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

The list of key-value pairs to associate with the pipe.

*/ inline CreatePipeRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The list of key-value pairs to associate with the pipe.

*/ inline CreatePipeRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The list of key-value pairs to associate with the pipe.

*/ inline CreatePipeRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The list of key-value pairs to associate with the pipe.

*/ inline CreatePipeRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The list of key-value pairs to associate with the pipe.

*/ inline CreatePipeRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The list of key-value pairs to associate with the pipe.

*/ inline CreatePipeRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The list of key-value pairs to associate with the pipe.

*/ inline CreatePipeRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The ARN of the target resource.

*/ inline const Aws::String& GetTarget() const{ return m_target; } /** *

The ARN of the target resource.

*/ inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } /** *

The ARN of the target resource.

*/ inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; } /** *

The ARN of the target resource.

*/ inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } /** *

The ARN of the target resource.

*/ inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); } /** *

The ARN of the target resource.

*/ inline CreatePipeRequest& WithTarget(const Aws::String& value) { SetTarget(value); return *this;} /** *

The ARN of the target resource.

*/ inline CreatePipeRequest& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;} /** *

The ARN of the target resource.

*/ inline CreatePipeRequest& WithTarget(const char* value) { SetTarget(value); return *this;} /** *

The parameters required to set up a target for your pipe.

*/ inline const PipeTargetParameters& GetTargetParameters() const{ return m_targetParameters; } /** *

The parameters required to set up a target for your pipe.

*/ inline bool TargetParametersHasBeenSet() const { return m_targetParametersHasBeenSet; } /** *

The parameters required to set up a target for your pipe.

*/ inline void SetTargetParameters(const PipeTargetParameters& value) { m_targetParametersHasBeenSet = true; m_targetParameters = value; } /** *

The parameters required to set up a target for your pipe.

*/ inline void SetTargetParameters(PipeTargetParameters&& value) { m_targetParametersHasBeenSet = true; m_targetParameters = std::move(value); } /** *

The parameters required to set up a target for your pipe.

*/ inline CreatePipeRequest& WithTargetParameters(const PipeTargetParameters& value) { SetTargetParameters(value); return *this;} /** *

The parameters required to set up a target for your pipe.

*/ inline CreatePipeRequest& WithTargetParameters(PipeTargetParameters&& value) { SetTargetParameters(std::move(value)); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; RequestedPipeState m_desiredState; bool m_desiredStateHasBeenSet = false; Aws::String m_enrichment; bool m_enrichmentHasBeenSet = false; PipeEnrichmentParameters m_enrichmentParameters; bool m_enrichmentParametersHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; PipeSourceParameters m_sourceParameters; bool m_sourceParametersHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_target; bool m_targetHasBeenSet = false; PipeTargetParameters m_targetParameters; bool m_targetParametersHasBeenSet = false; }; } // namespace Model } // namespace Pipes } // namespace Aws