Struct aws_sdk_iam::types::builders::PolicyVersionBuilder
source · #[non_exhaustive]pub struct PolicyVersionBuilder { /* private fields */ }
Expand description
A builder for PolicyVersion
.
Implementations§
source§impl PolicyVersionBuilder
impl PolicyVersionBuilder
sourcepub fn document(self, input: impl Into<String>) -> Self
pub fn document(self, input: impl Into<String>) -> Self
The policy document.
The policy document is returned in the response to the GetPolicyVersion
and GetAccountAuthorizationDetails
operations. It is not returned in the response to the CreatePolicyVersion
or ListPolicyVersions
operations.
The policy document returned in this structure is URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode
method of the java.net.URLDecoder
utility class in the Java SDK. Other languages and SDKs provide similar functionality.
sourcepub fn set_document(self, input: Option<String>) -> Self
pub fn set_document(self, input: Option<String>) -> Self
The policy document.
The policy document is returned in the response to the GetPolicyVersion
and GetAccountAuthorizationDetails
operations. It is not returned in the response to the CreatePolicyVersion
or ListPolicyVersions
operations.
The policy document returned in this structure is URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode
method of the java.net.URLDecoder
utility class in the Java SDK. Other languages and SDKs provide similar functionality.
sourcepub fn get_document(&self) -> &Option<String>
pub fn get_document(&self) -> &Option<String>
The policy document.
The policy document is returned in the response to the GetPolicyVersion
and GetAccountAuthorizationDetails
operations. It is not returned in the response to the CreatePolicyVersion
or ListPolicyVersions
operations.
The policy document returned in this structure is URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode
method of the java.net.URLDecoder
utility class in the Java SDK. Other languages and SDKs provide similar functionality.
sourcepub fn version_id(self, input: impl Into<String>) -> Self
pub fn version_id(self, input: impl Into<String>) -> Self
The identifier for the policy version.
Policy version identifiers always begin with v
(always lowercase). When a policy is created, the first policy version is v1
.
sourcepub fn set_version_id(self, input: Option<String>) -> Self
pub fn set_version_id(self, input: Option<String>) -> Self
The identifier for the policy version.
Policy version identifiers always begin with v
(always lowercase). When a policy is created, the first policy version is v1
.
sourcepub fn get_version_id(&self) -> &Option<String>
pub fn get_version_id(&self) -> &Option<String>
The identifier for the policy version.
Policy version identifiers always begin with v
(always lowercase). When a policy is created, the first policy version is v1
.
sourcepub fn is_default_version(self, input: bool) -> Self
pub fn is_default_version(self, input: bool) -> Self
Specifies whether the policy version is set as the policy's default version.
sourcepub fn set_is_default_version(self, input: Option<bool>) -> Self
pub fn set_is_default_version(self, input: Option<bool>) -> Self
Specifies whether the policy version is set as the policy's default version.
sourcepub fn get_is_default_version(&self) -> &Option<bool>
pub fn get_is_default_version(&self) -> &Option<bool>
Specifies whether the policy version is set as the policy's default version.
sourcepub fn create_date(self, input: DateTime) -> Self
pub fn create_date(self, input: DateTime) -> Self
The date and time, in ISO 8601 date-time format, when the policy version was created.
sourcepub fn set_create_date(self, input: Option<DateTime>) -> Self
pub fn set_create_date(self, input: Option<DateTime>) -> Self
The date and time, in ISO 8601 date-time format, when the policy version was created.
sourcepub fn get_create_date(&self) -> &Option<DateTime>
pub fn get_create_date(&self) -> &Option<DateTime>
The date and time, in ISO 8601 date-time format, when the policy version was created.
sourcepub fn build(self) -> PolicyVersion
pub fn build(self) -> PolicyVersion
Consumes the builder and constructs a PolicyVersion
.
Trait Implementations§
source§impl Clone for PolicyVersionBuilder
impl Clone for PolicyVersionBuilder
source§fn clone(&self) -> PolicyVersionBuilder
fn clone(&self) -> PolicyVersionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PolicyVersionBuilder
impl Debug for PolicyVersionBuilder
source§impl Default for PolicyVersionBuilder
impl Default for PolicyVersionBuilder
source§fn default() -> PolicyVersionBuilder
fn default() -> PolicyVersionBuilder
source§impl PartialEq for PolicyVersionBuilder
impl PartialEq for PolicyVersionBuilder
source§fn eq(&self, other: &PolicyVersionBuilder) -> bool
fn eq(&self, other: &PolicyVersionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.