/** * 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 namespace Aws { namespace Pipes { namespace Model { /** */ class UpdatePipeRequest : public PipesRequest { public: AWS_PIPES_API UpdatePipeRequest(); // 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 "UpdatePipe"; } 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 UpdatePipeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the pipe.

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

A description of the pipe.

*/ inline UpdatePipeRequest& 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 UpdatePipeRequest& WithDesiredState(const RequestedPipeState& value) { SetDesiredState(value); return *this;} /** *

The state the pipe should be in.

*/ inline UpdatePipeRequest& 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 UpdatePipeRequest& WithEnrichment(const Aws::String& value) { SetEnrichment(value); return *this;} /** *

The ARN of the enrichment resource.

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

The ARN of the enrichment resource.

*/ inline UpdatePipeRequest& 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 UpdatePipeRequest& WithEnrichmentParameters(const PipeEnrichmentParameters& value) { SetEnrichmentParameters(value); return *this;} /** *

The parameters required to set up enrichment on your pipe.

*/ inline UpdatePipeRequest& 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 UpdatePipeRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the pipe.

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

The name of the pipe.

*/ inline UpdatePipeRequest& 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 UpdatePipeRequest& 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 UpdatePipeRequest& 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 UpdatePipeRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

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

*/ inline const UpdatePipeSourceParameters& 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 UpdatePipeSourceParameters& value) { m_sourceParametersHasBeenSet = true; m_sourceParameters = value; } /** *

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

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

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

*/ inline UpdatePipeRequest& WithSourceParameters(const UpdatePipeSourceParameters& value) { SetSourceParameters(value); return *this;} /** *

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

*/ inline UpdatePipeRequest& WithSourceParameters(UpdatePipeSourceParameters&& value) { SetSourceParameters(std::move(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 UpdatePipeRequest& WithTarget(const Aws::String& value) { SetTarget(value); return *this;} /** *

The ARN of the target resource.

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

The ARN of the target resource.

*/ inline UpdatePipeRequest& 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 UpdatePipeRequest& WithTargetParameters(const PipeTargetParameters& value) { SetTargetParameters(value); return *this;} /** *

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

*/ inline UpdatePipeRequest& 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; UpdatePipeSourceParameters m_sourceParameters; bool m_sourceParametersHasBeenSet = false; Aws::String m_target; bool m_targetHasBeenSet = false; PipeTargetParameters m_targetParameters; bool m_targetParametersHasBeenSet = false; }; } // namespace Model } // namespace Pipes } // namespace Aws