1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetPatchBaselineInput {
/// <p>The ID of the patch baseline to retrieve.</p><note>
/// <p>To retrieve information about an Amazon Web Services managed patch baseline, specify the full Amazon Resource Name (ARN) of the baseline. For example, for the baseline <code>AWS-AmazonLinuxDefaultPatchBaseline</code>, specify <code>arn:aws:ssm:us-east-2:733109147000:patchbaseline/pb-0e392de35e7c563b7</code> instead of <code>pb-0e392de35e7c563b7</code>.</p>
/// </note>
pub baseline_id: ::std::option::Option<::std::string::String>,
}
impl GetPatchBaselineInput {
/// <p>The ID of the patch baseline to retrieve.</p><note>
/// <p>To retrieve information about an Amazon Web Services managed patch baseline, specify the full Amazon Resource Name (ARN) of the baseline. For example, for the baseline <code>AWS-AmazonLinuxDefaultPatchBaseline</code>, specify <code>arn:aws:ssm:us-east-2:733109147000:patchbaseline/pb-0e392de35e7c563b7</code> instead of <code>pb-0e392de35e7c563b7</code>.</p>
/// </note>
pub fn baseline_id(&self) -> ::std::option::Option<&str> {
self.baseline_id.as_deref()
}
}
impl GetPatchBaselineInput {
/// Creates a new builder-style object to manufacture [`GetPatchBaselineInput`](crate::operation::get_patch_baseline::GetPatchBaselineInput).
pub fn builder() -> crate::operation::get_patch_baseline::builders::GetPatchBaselineInputBuilder {
crate::operation::get_patch_baseline::builders::GetPatchBaselineInputBuilder::default()
}
}
/// A builder for [`GetPatchBaselineInput`](crate::operation::get_patch_baseline::GetPatchBaselineInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetPatchBaselineInputBuilder {
pub(crate) baseline_id: ::std::option::Option<::std::string::String>,
}
impl GetPatchBaselineInputBuilder {
/// <p>The ID of the patch baseline to retrieve.</p><note>
/// <p>To retrieve information about an Amazon Web Services managed patch baseline, specify the full Amazon Resource Name (ARN) of the baseline. For example, for the baseline <code>AWS-AmazonLinuxDefaultPatchBaseline</code>, specify <code>arn:aws:ssm:us-east-2:733109147000:patchbaseline/pb-0e392de35e7c563b7</code> instead of <code>pb-0e392de35e7c563b7</code>.</p>
/// </note>
/// This field is required.
pub fn baseline_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.baseline_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the patch baseline to retrieve.</p><note>
/// <p>To retrieve information about an Amazon Web Services managed patch baseline, specify the full Amazon Resource Name (ARN) of the baseline. For example, for the baseline <code>AWS-AmazonLinuxDefaultPatchBaseline</code>, specify <code>arn:aws:ssm:us-east-2:733109147000:patchbaseline/pb-0e392de35e7c563b7</code> instead of <code>pb-0e392de35e7c563b7</code>.</p>
/// </note>
pub fn set_baseline_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.baseline_id = input;
self
}
/// <p>The ID of the patch baseline to retrieve.</p><note>
/// <p>To retrieve information about an Amazon Web Services managed patch baseline, specify the full Amazon Resource Name (ARN) of the baseline. For example, for the baseline <code>AWS-AmazonLinuxDefaultPatchBaseline</code>, specify <code>arn:aws:ssm:us-east-2:733109147000:patchbaseline/pb-0e392de35e7c563b7</code> instead of <code>pb-0e392de35e7c563b7</code>.</p>
/// </note>
pub fn get_baseline_id(&self) -> &::std::option::Option<::std::string::String> {
&self.baseline_id
}
/// Consumes the builder and constructs a [`GetPatchBaselineInput`](crate::operation::get_patch_baseline::GetPatchBaselineInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_patch_baseline::GetPatchBaselineInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_patch_baseline::GetPatchBaselineInput {
baseline_id: self.baseline_id,
})
}
}