Struct aws_sdk_ram::types::builders::ResourceBuilder
source · #[non_exhaustive]pub struct ResourceBuilder { /* private fields */ }Expand description
A builder for Resource.
Implementations§
source§impl ResourceBuilder
impl ResourceBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the resource.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the resource.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the resource.
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The resource type. 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_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The resource type. 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_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
The resource type. 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.
The Amazon Resource Name (ARN) of the resource share this resource is associated with.
The Amazon Resource Name (ARN) of the resource share this resource is associated with.
The Amazon Resource Name (ARN) of the resource share this resource is associated with.
sourcepub fn resource_group_arn(self, input: impl Into<String>) -> Self
pub fn resource_group_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.
sourcepub fn set_resource_group_arn(self, input: Option<String>) -> Self
pub fn set_resource_group_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.
sourcepub fn get_resource_group_arn(&self) -> &Option<String>
pub fn get_resource_group_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.
sourcepub fn status(self, input: ResourceStatus) -> Self
pub fn status(self, input: ResourceStatus) -> Self
The current status of the resource.
sourcepub fn set_status(self, input: Option<ResourceStatus>) -> Self
pub fn set_status(self, input: Option<ResourceStatus>) -> Self
The current status of the resource.
sourcepub fn get_status(&self) -> &Option<ResourceStatus>
pub fn get_status(&self) -> &Option<ResourceStatus>
The current status of the resource.
sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
A message about the status of the resource.
sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
A message about the status of the resource.
sourcepub fn get_status_message(&self) -> &Option<String>
pub fn get_status_message(&self) -> &Option<String>
A message about the status of the resource.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The date and time when the resource was associated with the resource share.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The date and time when the resource was associated with the resource share.
sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
The date and time when the resource was associated with the resource share.
sourcepub fn last_updated_time(self, input: DateTime) -> Self
pub fn last_updated_time(self, input: DateTime) -> Self
The date an time when the association between the resource and the resource share was last updated.
sourcepub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
The date an time when the association between the resource and the resource share was last updated.
sourcepub fn get_last_updated_time(&self) -> &Option<DateTime>
pub fn get_last_updated_time(&self) -> &Option<DateTime>
The date an time when the association between the resource and the resource share was last updated.
sourcepub fn resource_region_scope(self, input: ResourceRegionScope) -> Self
pub fn resource_region_scope(self, input: ResourceRegionScope) -> Self
Specifies the scope of visibility of this resource:
-
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 this resource:
-
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 this resource:
-
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.
Trait Implementations§
source§impl Clone for ResourceBuilder
impl Clone for ResourceBuilder
source§fn clone(&self) -> ResourceBuilder
fn clone(&self) -> ResourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ResourceBuilder
impl Debug for ResourceBuilder
source§impl Default for ResourceBuilder
impl Default for ResourceBuilder
source§fn default() -> ResourceBuilder
fn default() -> ResourceBuilder
source§impl PartialEq for ResourceBuilder
impl PartialEq for ResourceBuilder
source§fn eq(&self, other: &ResourceBuilder) -> bool
fn eq(&self, other: &ResourceBuilder) -> bool
self and other values to be equal, and is used
by ==.