Struct aws_sdk_codepipeline::types::builders::SourceRevisionBuilder
source · #[non_exhaustive]pub struct SourceRevisionBuilder { /* private fields */ }
Expand description
A builder for SourceRevision
.
Implementations§
source§impl SourceRevisionBuilder
impl SourceRevisionBuilder
sourcepub fn action_name(self, input: impl Into<String>) -> Self
pub fn action_name(self, input: impl Into<String>) -> Self
The name of the action that processed the revision to the source artifact.
This field is required.sourcepub fn set_action_name(self, input: Option<String>) -> Self
pub fn set_action_name(self, input: Option<String>) -> Self
The name of the action that processed the revision to the source artifact.
sourcepub fn get_action_name(&self) -> &Option<String>
pub fn get_action_name(&self) -> &Option<String>
The name of the action that processed the revision to the source artifact.
sourcepub fn revision_id(self, input: impl Into<String>) -> Self
pub fn revision_id(self, input: impl Into<String>) -> Self
The system-generated unique ID that identifies the revision number of the artifact.
sourcepub fn set_revision_id(self, input: Option<String>) -> Self
pub fn set_revision_id(self, input: Option<String>) -> Self
The system-generated unique ID that identifies the revision number of the artifact.
sourcepub fn get_revision_id(&self) -> &Option<String>
pub fn get_revision_id(&self) -> &Option<String>
The system-generated unique ID that identifies the revision number of the artifact.
sourcepub fn revision_summary(self, input: impl Into<String>) -> Self
pub fn revision_summary(self, input: impl Into<String>) -> Self
Summary information about the most recent revision of the artifact. For GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or actions, the user-provided content of a codepipeline-artifact-revision-summary
key specified in the object metadata.
sourcepub fn set_revision_summary(self, input: Option<String>) -> Self
pub fn set_revision_summary(self, input: Option<String>) -> Self
Summary information about the most recent revision of the artifact. For GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or actions, the user-provided content of a codepipeline-artifact-revision-summary
key specified in the object metadata.
sourcepub fn get_revision_summary(&self) -> &Option<String>
pub fn get_revision_summary(&self) -> &Option<String>
Summary information about the most recent revision of the artifact. For GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or actions, the user-provided content of a codepipeline-artifact-revision-summary
key specified in the object metadata.
sourcepub fn revision_url(self, input: impl Into<String>) -> Self
pub fn revision_url(self, input: impl Into<String>) -> Self
The commit ID for the artifact revision. For artifacts stored in GitHub or CodeCommit repositories, the commit ID is linked to a commit details page.
sourcepub fn set_revision_url(self, input: Option<String>) -> Self
pub fn set_revision_url(self, input: Option<String>) -> Self
The commit ID for the artifact revision. For artifacts stored in GitHub or CodeCommit repositories, the commit ID is linked to a commit details page.
sourcepub fn get_revision_url(&self) -> &Option<String>
pub fn get_revision_url(&self) -> &Option<String>
The commit ID for the artifact revision. For artifacts stored in GitHub or CodeCommit repositories, the commit ID is linked to a commit details page.
sourcepub fn build(self) -> Result<SourceRevision, BuildError>
pub fn build(self) -> Result<SourceRevision, BuildError>
Consumes the builder and constructs a SourceRevision
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SourceRevisionBuilder
impl Clone for SourceRevisionBuilder
source§fn clone(&self) -> SourceRevisionBuilder
fn clone(&self) -> SourceRevisionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SourceRevisionBuilder
impl Debug for SourceRevisionBuilder
source§impl Default for SourceRevisionBuilder
impl Default for SourceRevisionBuilder
source§fn default() -> SourceRevisionBuilder
fn default() -> SourceRevisionBuilder
source§impl PartialEq for SourceRevisionBuilder
impl PartialEq for SourceRevisionBuilder
source§fn eq(&self, other: &SourceRevisionBuilder) -> bool
fn eq(&self, other: &SourceRevisionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.