aws_sdk_osis/operation/validate_pipeline/_validate_pipeline_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ValidatePipelineInput {
6 /// <p>The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with <code>\n</code>.</p>
7 pub pipeline_configuration_body: ::std::option::Option<::std::string::String>,
8}
9impl ValidatePipelineInput {
10 /// <p>The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with <code>\n</code>.</p>
11 pub fn pipeline_configuration_body(&self) -> ::std::option::Option<&str> {
12 self.pipeline_configuration_body.as_deref()
13 }
14}
15impl ValidatePipelineInput {
16 /// Creates a new builder-style object to manufacture [`ValidatePipelineInput`](crate::operation::validate_pipeline::ValidatePipelineInput).
17 pub fn builder() -> crate::operation::validate_pipeline::builders::ValidatePipelineInputBuilder {
18 crate::operation::validate_pipeline::builders::ValidatePipelineInputBuilder::default()
19 }
20}
21
22/// A builder for [`ValidatePipelineInput`](crate::operation::validate_pipeline::ValidatePipelineInput).
23#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
24#[non_exhaustive]
25pub struct ValidatePipelineInputBuilder {
26 pub(crate) pipeline_configuration_body: ::std::option::Option<::std::string::String>,
27}
28impl ValidatePipelineInputBuilder {
29 /// <p>The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with <code>\n</code>.</p>
30 /// This field is required.
31 pub fn pipeline_configuration_body(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
32 self.pipeline_configuration_body = ::std::option::Option::Some(input.into());
33 self
34 }
35 /// <p>The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with <code>\n</code>.</p>
36 pub fn set_pipeline_configuration_body(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
37 self.pipeline_configuration_body = input;
38 self
39 }
40 /// <p>The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with <code>\n</code>.</p>
41 pub fn get_pipeline_configuration_body(&self) -> &::std::option::Option<::std::string::String> {
42 &self.pipeline_configuration_body
43 }
44 /// Consumes the builder and constructs a [`ValidatePipelineInput`](crate::operation::validate_pipeline::ValidatePipelineInput).
45 pub fn build(
46 self,
47 ) -> ::std::result::Result<crate::operation::validate_pipeline::ValidatePipelineInput, ::aws_smithy_types::error::operation::BuildError> {
48 ::std::result::Result::Ok(crate::operation::validate_pipeline::ValidatePipelineInput {
49 pipeline_configuration_body: self.pipeline_configuration_body,
50 })
51 }
52}