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, 12.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, 12.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, 12.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 ==
.impl StructuralPartialEq for DocumentRequiresBuilder
Auto Trait Implementations§
impl Freeze for DocumentRequiresBuilder
impl RefUnwindSafe for DocumentRequiresBuilder
impl Send for DocumentRequiresBuilder
impl Sync for DocumentRequiresBuilder
impl Unpin for DocumentRequiresBuilder
impl UnwindSafe for DocumentRequiresBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more