Struct aws_sdk_ssm::types::builders::DocumentRequiresBuilder
source · #[non_exhaustive]pub struct DocumentRequiresBuilder { /* private fields */ }
Expand description
A builder for DocumentRequires
.
Implementations§
source§impl DocumentRequiresBuilder
impl DocumentRequiresBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the required SSM document. The name can be an Amazon Resource Name (ARN).
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the required SSM document. The name can be an Amazon Resource Name (ARN).
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the required SSM document. The name can be an Amazon Resource Name (ARN).
sourcepub fn version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
The document version required by the current document.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The document version required by the current document.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The document version required by the current document.
sourcepub fn require_type(self, input: impl Into<String>) -> Self
pub fn require_type(self, input: impl Into<String>) -> Self
The document type of the required SSM document.
sourcepub fn set_require_type(self, input: Option<String>) -> Self
pub fn set_require_type(self, input: Option<String>) -> Self
The document type of the required SSM document.
sourcepub fn get_require_type(&self) -> &Option<String>
pub fn get_require_type(&self) -> &Option<String>
The document type of the required SSM document.
sourcepub fn version_name(self, input: impl Into<String>) -> Self
pub fn version_name(self, input: impl Into<String>) -> Self
An optional field specifying the version of the artifact associated with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document, and can't be changed.
sourcepub fn set_version_name(self, input: Option<String>) -> Self
pub fn set_version_name(self, input: Option<String>) -> Self
An optional field specifying the version of the artifact associated with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document, and can't be changed.
sourcepub fn get_version_name(&self) -> &Option<String>
pub fn get_version_name(&self) -> &Option<String>
An optional field specifying the version of the artifact associated with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document, and can't be changed.
sourcepub fn build(self) -> Result<DocumentRequires, BuildError>
pub fn build(self) -> Result<DocumentRequires, BuildError>
Consumes the builder and constructs a DocumentRequires
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DocumentRequiresBuilder
impl Clone for DocumentRequiresBuilder
source§fn clone(&self) -> DocumentRequiresBuilder
fn clone(&self) -> DocumentRequiresBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DocumentRequiresBuilder
impl Debug for DocumentRequiresBuilder
source§impl Default for DocumentRequiresBuilder
impl Default for DocumentRequiresBuilder
source§fn default() -> DocumentRequiresBuilder
fn default() -> DocumentRequiresBuilder
source§impl PartialEq for DocumentRequiresBuilder
impl PartialEq for DocumentRequiresBuilder
source§fn eq(&self, other: &DocumentRequiresBuilder) -> bool
fn eq(&self, other: &DocumentRequiresBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.