#[non_exhaustive]pub struct UpdateDocumentInputBuilder { /* private fields */ }
Expand description
A builder for UpdateDocumentInput
.
Implementations§
source§impl UpdateDocumentInputBuilder
impl UpdateDocumentInputBuilder
sourcepub fn content(self, input: impl Into<String>) -> Self
pub fn content(self, input: impl Into<String>) -> Self
A valid JSON or YAML string.
This field is required.sourcepub fn set_content(self, input: Option<String>) -> Self
pub fn set_content(self, input: Option<String>) -> Self
A valid JSON or YAML string.
sourcepub fn get_content(&self) -> &Option<String>
pub fn get_content(&self) -> &Option<String>
A valid JSON or YAML string.
sourcepub fn attachments(self, input: AttachmentsSource) -> Self
pub fn attachments(self, input: AttachmentsSource) -> Self
Appends an item to attachments
.
To override the contents of this collection use set_attachments
.
A list of key-value pairs that describe attachments to a version of a document.
sourcepub fn set_attachments(self, input: Option<Vec<AttachmentsSource>>) -> Self
pub fn set_attachments(self, input: Option<Vec<AttachmentsSource>>) -> Self
A list of key-value pairs that describe attachments to a version of a document.
sourcepub fn get_attachments(&self) -> &Option<Vec<AttachmentsSource>>
pub fn get_attachments(&self) -> &Option<Vec<AttachmentsSource>>
A list of key-value pairs that describe attachments to a version of a document.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the SSM document that you want to update.
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 SSM document that you want to update.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the SSM document that you want to update.
sourcepub fn display_name(self, input: impl Into<String>) -> Self
pub fn display_name(self, input: impl Into<String>) -> Self
The friendly name of the SSM document that you want to update. This value can differ for each version of the document. If you don't specify a value for this parameter in your request, the existing value is applied to the new document version.
sourcepub fn set_display_name(self, input: Option<String>) -> Self
pub fn set_display_name(self, input: Option<String>) -> Self
The friendly name of the SSM document that you want to update. This value can differ for each version of the document. If you don't specify a value for this parameter in your request, the existing value is applied to the new document version.
sourcepub fn get_display_name(&self) -> &Option<String>
pub fn get_display_name(&self) -> &Option<String>
The friendly name of the SSM document that you want to update. This value can differ for each version of the document. If you don't specify a value for this parameter in your request, the existing value is applied to the new document version.
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 you are updating 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 you are updating 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 you are updating with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.
sourcepub fn document_version(self, input: impl Into<String>) -> Self
pub fn document_version(self, input: impl Into<String>) -> Self
The version of the document that you want to update. Currently, Systems Manager supports updating only the latest version of the document. You can specify the version number of the latest version or use the $LATEST
variable.
If you change a document version for a State Manager association, Systems Manager immediately runs the association unless you previously specifed the apply-only-at-cron-interval
parameter.
sourcepub fn set_document_version(self, input: Option<String>) -> Self
pub fn set_document_version(self, input: Option<String>) -> Self
The version of the document that you want to update. Currently, Systems Manager supports updating only the latest version of the document. You can specify the version number of the latest version or use the $LATEST
variable.
If you change a document version for a State Manager association, Systems Manager immediately runs the association unless you previously specifed the apply-only-at-cron-interval
parameter.
sourcepub fn get_document_version(&self) -> &Option<String>
pub fn get_document_version(&self) -> &Option<String>
The version of the document that you want to update. Currently, Systems Manager supports updating only the latest version of the document. You can specify the version number of the latest version or use the $LATEST
variable.
If you change a document version for a State Manager association, Systems Manager immediately runs the association unless you previously specifed the apply-only-at-cron-interval
parameter.
sourcepub fn document_format(self, input: DocumentFormat) -> Self
pub fn document_format(self, input: DocumentFormat) -> Self
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
sourcepub fn set_document_format(self, input: Option<DocumentFormat>) -> Self
pub fn set_document_format(self, input: Option<DocumentFormat>) -> Self
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
sourcepub fn get_document_format(&self) -> &Option<DocumentFormat>
pub fn get_document_format(&self) -> &Option<DocumentFormat>
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
sourcepub fn target_type(self, input: impl Into<String>) -> Self
pub fn target_type(self, input: impl Into<String>) -> Self
Specify a new target type for the document.
sourcepub fn set_target_type(self, input: Option<String>) -> Self
pub fn set_target_type(self, input: Option<String>) -> Self
Specify a new target type for the document.
sourcepub fn get_target_type(&self) -> &Option<String>
pub fn get_target_type(&self) -> &Option<String>
Specify a new target type for the document.
sourcepub fn build(self) -> Result<UpdateDocumentInput, BuildError>
pub fn build(self) -> Result<UpdateDocumentInput, BuildError>
Consumes the builder and constructs a UpdateDocumentInput
.
source§impl UpdateDocumentInputBuilder
impl UpdateDocumentInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateDocumentOutput, SdkError<UpdateDocumentError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateDocumentOutput, SdkError<UpdateDocumentError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateDocumentInputBuilder
impl Clone for UpdateDocumentInputBuilder
source§fn clone(&self) -> UpdateDocumentInputBuilder
fn clone(&self) -> UpdateDocumentInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateDocumentInputBuilder
impl Debug for UpdateDocumentInputBuilder
source§impl Default for UpdateDocumentInputBuilder
impl Default for UpdateDocumentInputBuilder
source§fn default() -> UpdateDocumentInputBuilder
fn default() -> UpdateDocumentInputBuilder
source§impl PartialEq for UpdateDocumentInputBuilder
impl PartialEq for UpdateDocumentInputBuilder
source§fn eq(&self, other: &UpdateDocumentInputBuilder) -> bool
fn eq(&self, other: &UpdateDocumentInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.