Struct aws_sdk_elasticsearch::model::authorized_principal::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AuthorizedPrincipal
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn principal_type(self, input: PrincipalType) -> Self
pub fn principal_type(self, input: PrincipalType) -> Self
The type of principal.
sourcepub fn set_principal_type(self, input: Option<PrincipalType>) -> Self
pub fn set_principal_type(self, input: Option<PrincipalType>) -> Self
The type of principal.
sourcepub fn principal(self, input: impl Into<String>) -> Self
pub fn principal(self, input: impl Into<String>) -> Self
The IAM principal that is allowed access to the domain.
sourcepub fn set_principal(self, input: Option<String>) -> Self
pub fn set_principal(self, input: Option<String>) -> Self
The IAM principal that is allowed access to the domain.
sourcepub fn build(self) -> AuthorizedPrincipal
pub fn build(self) -> AuthorizedPrincipal
Consumes the builder and constructs a AuthorizedPrincipal
.