Struct aws_sdk_serverlessapplicationrepository::input::put_application_policy_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PutApplicationPolicyInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn application_id(self, input: impl Into<String>) -> Self
pub fn application_id(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the application.
sourcepub fn set_application_id(self, input: Option<String>) -> Self
pub fn set_application_id(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the application.
sourcepub fn statements(self, input: ApplicationPolicyStatement) -> Self
pub fn statements(self, input: ApplicationPolicyStatement) -> Self
Appends an item to statements
.
To override the contents of this collection use set_statements
.
An array of policy statements applied to the application.
sourcepub fn set_statements(
self,
input: Option<Vec<ApplicationPolicyStatement>>
) -> Self
pub fn set_statements(
self,
input: Option<Vec<ApplicationPolicyStatement>>
) -> Self
An array of policy statements applied to the application.
sourcepub fn build(self) -> Result<PutApplicationPolicyInput, BuildError>
pub fn build(self) -> Result<PutApplicationPolicyInput, BuildError>
Consumes the builder and constructs a PutApplicationPolicyInput
.