#[non_exhaustive]pub struct ServiceNameAndResourceTypeBuilder { /* private fields */ }Expand description
A builder for ServiceNameAndResourceType.
Implementations§
source§impl ServiceNameAndResourceTypeBuilder
impl ServiceNameAndResourceTypeBuilder
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
The type of the resource. This takes the form of: service-code:resource-code, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet.
sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
The type of the resource. This takes the form of: service-code:resource-code, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet.
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
The type of the resource. This takes the form of: service-code:resource-code, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet.
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the Amazon Web Services service to which resources of this type belong.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the Amazon Web Services service to which resources of this type belong.
sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
The name of the Amazon Web Services service to which resources of this type belong.
sourcepub fn resource_region_scope(self, input: ResourceRegionScope) -> Self
pub fn resource_region_scope(self, input: ResourceRegionScope) -> Self
Specifies the scope of visibility of resources of this type:
-
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
-
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
sourcepub fn set_resource_region_scope(
self,
input: Option<ResourceRegionScope>
) -> Self
pub fn set_resource_region_scope( self, input: Option<ResourceRegionScope> ) -> Self
Specifies the scope of visibility of resources of this type:
-
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
-
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
sourcepub fn get_resource_region_scope(&self) -> &Option<ResourceRegionScope>
pub fn get_resource_region_scope(&self) -> &Option<ResourceRegionScope>
Specifies the scope of visibility of resources of this type:
-
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
-
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
sourcepub fn build(self) -> ServiceNameAndResourceType
pub fn build(self) -> ServiceNameAndResourceType
Consumes the builder and constructs a ServiceNameAndResourceType.
Trait Implementations§
source§impl Clone for ServiceNameAndResourceTypeBuilder
impl Clone for ServiceNameAndResourceTypeBuilder
source§fn clone(&self) -> ServiceNameAndResourceTypeBuilder
fn clone(&self) -> ServiceNameAndResourceTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ServiceNameAndResourceTypeBuilder
impl Default for ServiceNameAndResourceTypeBuilder
source§fn default() -> ServiceNameAndResourceTypeBuilder
fn default() -> ServiceNameAndResourceTypeBuilder
source§impl PartialEq for ServiceNameAndResourceTypeBuilder
impl PartialEq for ServiceNameAndResourceTypeBuilder
source§fn eq(&self, other: &ServiceNameAndResourceTypeBuilder) -> bool
fn eq(&self, other: &ServiceNameAndResourceTypeBuilder) -> bool
self and other values to be equal, and is used
by ==.