Struct aws_sdk_codedeploy::types::builders::RevisionLocationBuilder
source · #[non_exhaustive]pub struct RevisionLocationBuilder { /* private fields */ }
Expand description
A builder for RevisionLocation
.
Implementations§
source§impl RevisionLocationBuilder
impl RevisionLocationBuilder
sourcepub fn revision_type(self, input: RevisionLocationType) -> Self
pub fn revision_type(self, input: RevisionLocationType) -> Self
The type of application revision:
-
S3: An application revision stored in Amazon S3.
-
GitHub: An application revision stored in GitHub (EC2/On-premises deployments only).
-
String: A YAML-formatted or JSON-formatted string (Lambda deployments only).
-
AppSpecContent: An
AppSpecContent
object that contains the contents of an AppSpec file for an Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML stored as a RawString.
sourcepub fn set_revision_type(self, input: Option<RevisionLocationType>) -> Self
pub fn set_revision_type(self, input: Option<RevisionLocationType>) -> Self
The type of application revision:
-
S3: An application revision stored in Amazon S3.
-
GitHub: An application revision stored in GitHub (EC2/On-premises deployments only).
-
String: A YAML-formatted or JSON-formatted string (Lambda deployments only).
-
AppSpecContent: An
AppSpecContent
object that contains the contents of an AppSpec file for an Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML stored as a RawString.
sourcepub fn get_revision_type(&self) -> &Option<RevisionLocationType>
pub fn get_revision_type(&self) -> &Option<RevisionLocationType>
The type of application revision:
-
S3: An application revision stored in Amazon S3.
-
GitHub: An application revision stored in GitHub (EC2/On-premises deployments only).
-
String: A YAML-formatted or JSON-formatted string (Lambda deployments only).
-
AppSpecContent: An
AppSpecContent
object that contains the contents of an AppSpec file for an Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML stored as a RawString.
sourcepub fn s3_location(self, input: S3Location) -> Self
pub fn s3_location(self, input: S3Location) -> Self
Information about the location of a revision stored in Amazon S3.
sourcepub fn set_s3_location(self, input: Option<S3Location>) -> Self
pub fn set_s3_location(self, input: Option<S3Location>) -> Self
Information about the location of a revision stored in Amazon S3.
sourcepub fn get_s3_location(&self) -> &Option<S3Location>
pub fn get_s3_location(&self) -> &Option<S3Location>
Information about the location of a revision stored in Amazon S3.
sourcepub fn git_hub_location(self, input: GitHubLocation) -> Self
pub fn git_hub_location(self, input: GitHubLocation) -> Self
Information about the location of application artifacts stored in GitHub.
sourcepub fn set_git_hub_location(self, input: Option<GitHubLocation>) -> Self
pub fn set_git_hub_location(self, input: Option<GitHubLocation>) -> Self
Information about the location of application artifacts stored in GitHub.
sourcepub fn get_git_hub_location(&self) -> &Option<GitHubLocation>
pub fn get_git_hub_location(&self) -> &Option<GitHubLocation>
Information about the location of application artifacts stored in GitHub.
sourcepub fn string(self, input: RawString) -> Self
pub fn string(self, input: RawString) -> Self
Information about the location of an Lambda deployment revision stored as a RawString.
sourcepub fn set_string(self, input: Option<RawString>) -> Self
pub fn set_string(self, input: Option<RawString>) -> Self
Information about the location of an Lambda deployment revision stored as a RawString.
sourcepub fn get_string(&self) -> &Option<RawString>
pub fn get_string(&self) -> &Option<RawString>
Information about the location of an Lambda deployment revision stored as a RawString.
sourcepub fn app_spec_content(self, input: AppSpecContent) -> Self
pub fn app_spec_content(self, input: AppSpecContent) -> Self
The content of an AppSpec file for an Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML and stored as a RawString.
sourcepub fn set_app_spec_content(self, input: Option<AppSpecContent>) -> Self
pub fn set_app_spec_content(self, input: Option<AppSpecContent>) -> Self
The content of an AppSpec file for an Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML and stored as a RawString.
sourcepub fn get_app_spec_content(&self) -> &Option<AppSpecContent>
pub fn get_app_spec_content(&self) -> &Option<AppSpecContent>
The content of an AppSpec file for an Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML and stored as a RawString.
sourcepub fn build(self) -> RevisionLocation
pub fn build(self) -> RevisionLocation
Consumes the builder and constructs a RevisionLocation
.
Trait Implementations§
source§impl Clone for RevisionLocationBuilder
impl Clone for RevisionLocationBuilder
source§fn clone(&self) -> RevisionLocationBuilder
fn clone(&self) -> RevisionLocationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RevisionLocationBuilder
impl Debug for RevisionLocationBuilder
source§impl Default for RevisionLocationBuilder
impl Default for RevisionLocationBuilder
source§fn default() -> RevisionLocationBuilder
fn default() -> RevisionLocationBuilder
source§impl PartialEq for RevisionLocationBuilder
impl PartialEq for RevisionLocationBuilder
source§fn eq(&self, other: &RevisionLocationBuilder) -> bool
fn eq(&self, other: &RevisionLocationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.