#[non_exhaustive]pub struct ProjectDescriptionBuilder { /* private fields */ }Expand description
A builder for ProjectDescription.
Implementations§
source§impl ProjectDescriptionBuilder
impl ProjectDescriptionBuilder
sourcepub fn project_name(self, input: impl Into<String>) -> Self
pub fn project_name(self, input: impl Into<String>) -> Self
The name of the project for which to obtain information from.
This field is required.sourcepub fn set_project_name(self, input: Option<String>) -> Self
pub fn set_project_name(self, input: Option<String>) -> Self
The name of the project for which to obtain information from.
sourcepub fn get_project_name(&self) -> &Option<String>
pub fn get_project_name(&self) -> &Option<String>
The name of the project for which to obtain information from.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the project.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the project.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the project.
sourcepub fn created_date(self, input: DateTime) -> Self
pub fn created_date(self, input: DateTime) -> Self
The date when the project was originally created, in UNIX epoch time format.
This field is required.sourcepub fn set_created_date(self, input: Option<DateTime>) -> Self
pub fn set_created_date(self, input: Option<DateTime>) -> Self
The date when the project was originally created, in UNIX epoch time format.
sourcepub fn get_created_date(&self) -> &Option<DateTime>
pub fn get_created_date(&self) -> &Option<DateTime>
The date when the project was originally created, in UNIX epoch time format.
sourcepub fn updated_date(self, input: DateTime) -> Self
pub fn updated_date(self, input: DateTime) -> Self
The date when the project was last updated, in UNIX epoch time format. If the project was not updated, then createdDate and updatedDate are the same.
sourcepub fn set_updated_date(self, input: Option<DateTime>) -> Self
pub fn set_updated_date(self, input: Option<DateTime>) -> Self
The date when the project was last updated, in UNIX epoch time format. If the project was not updated, then createdDate and updatedDate are the same.
sourcepub fn get_updated_date(&self) -> &Option<DateTime>
pub fn get_updated_date(&self) -> &Option<DateTime>
The date when the project was last updated, in UNIX epoch time format. If the project was not updated, then createdDate and updatedDate are the same.
sourcepub fn placement_template(self, input: PlacementTemplate) -> Self
pub fn placement_template(self, input: PlacementTemplate) -> Self
An object describing the project's placement specifications.
sourcepub fn set_placement_template(self, input: Option<PlacementTemplate>) -> Self
pub fn set_placement_template(self, input: Option<PlacementTemplate>) -> Self
An object describing the project's placement specifications.
sourcepub fn get_placement_template(&self) -> &Option<PlacementTemplate>
pub fn get_placement_template(&self) -> &Option<PlacementTemplate>
An object describing the project's placement specifications.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The tags (metadata key/value pairs) associated with the project.
The tags (metadata key/value pairs) associated with the project.
The tags (metadata key/value pairs) associated with the project.
sourcepub fn build(self) -> Result<ProjectDescription, BuildError>
pub fn build(self) -> Result<ProjectDescription, BuildError>
Consumes the builder and constructs a ProjectDescription.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ProjectDescriptionBuilder
impl Clone for ProjectDescriptionBuilder
source§fn clone(&self) -> ProjectDescriptionBuilder
fn clone(&self) -> ProjectDescriptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ProjectDescriptionBuilder
impl Debug for ProjectDescriptionBuilder
source§impl Default for ProjectDescriptionBuilder
impl Default for ProjectDescriptionBuilder
source§fn default() -> ProjectDescriptionBuilder
fn default() -> ProjectDescriptionBuilder
source§impl PartialEq for ProjectDescriptionBuilder
impl PartialEq for ProjectDescriptionBuilder
source§fn eq(&self, other: &ProjectDescriptionBuilder) -> bool
fn eq(&self, other: &ProjectDescriptionBuilder) -> bool
self and other values to be equal, and is used
by ==.