#[non_exhaustive]pub struct AwsIamInstanceProfileRoleBuilder { /* private fields */ }
Expand description
A builder for AwsIamInstanceProfileRole
.
Implementations§
source§impl AwsIamInstanceProfileRoleBuilder
impl AwsIamInstanceProfileRoleBuilder
sourcepub fn assume_role_policy_document(self, input: impl Into<String>) -> Self
pub fn assume_role_policy_document(self, input: impl Into<String>) -> Self
The policy that grants an entity permission to assume the role.
sourcepub fn set_assume_role_policy_document(self, input: Option<String>) -> Self
pub fn set_assume_role_policy_document(self, input: Option<String>) -> Self
The policy that grants an entity permission to assume the role.
sourcepub fn get_assume_role_policy_document(&self) -> &Option<String>
pub fn get_assume_role_policy_document(&self) -> &Option<String>
The policy that grants an entity permission to assume the role.
sourcepub fn create_date(self, input: impl Into<String>) -> Self
pub fn create_date(self, input: impl Into<String>) -> Self
Indicates when the role was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn set_create_date(self, input: Option<String>) -> Self
pub fn set_create_date(self, input: Option<String>) -> Self
Indicates when the role was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn get_create_date(&self) -> &Option<String>
pub fn get_create_date(&self) -> &Option<String>
Indicates when the role was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn set_role_id(self, input: Option<String>) -> Self
pub fn set_role_id(self, input: Option<String>) -> Self
The identifier of the role.
sourcepub fn get_role_id(&self) -> &Option<String>
pub fn get_role_id(&self) -> &Option<String>
The identifier of the role.
sourcepub fn set_role_name(self, input: Option<String>) -> Self
pub fn set_role_name(self, input: Option<String>) -> Self
The name of the role.
sourcepub fn get_role_name(&self) -> &Option<String>
pub fn get_role_name(&self) -> &Option<String>
The name of the role.
sourcepub fn build(self) -> AwsIamInstanceProfileRole
pub fn build(self) -> AwsIamInstanceProfileRole
Consumes the builder and constructs a AwsIamInstanceProfileRole
.
Trait Implementations§
source§impl Clone for AwsIamInstanceProfileRoleBuilder
impl Clone for AwsIamInstanceProfileRoleBuilder
source§fn clone(&self) -> AwsIamInstanceProfileRoleBuilder
fn clone(&self) -> AwsIamInstanceProfileRoleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsIamInstanceProfileRoleBuilder
impl Default for AwsIamInstanceProfileRoleBuilder
source§fn default() -> AwsIamInstanceProfileRoleBuilder
fn default() -> AwsIamInstanceProfileRoleBuilder
source§impl PartialEq for AwsIamInstanceProfileRoleBuilder
impl PartialEq for AwsIamInstanceProfileRoleBuilder
source§fn eq(&self, other: &AwsIamInstanceProfileRoleBuilder) -> bool
fn eq(&self, other: &AwsIamInstanceProfileRoleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.