#[non_exhaustive]pub struct CreateSiteInputBuilder { /* private fields */ }
Expand description
A builder for CreateSiteInput
.
Implementations§
source§impl CreateSiteInputBuilder
impl CreateSiteInputBuilder
sourcepub fn global_network_id(self, input: impl Into<String>) -> Self
pub fn global_network_id(self, input: impl Into<String>) -> Self
The ID of the global network.
This field is required.sourcepub fn set_global_network_id(self, input: Option<String>) -> Self
pub fn set_global_network_id(self, input: Option<String>) -> Self
The ID of the global network.
sourcepub fn get_global_network_id(&self) -> &Option<String>
pub fn get_global_network_id(&self) -> &Option<String>
The ID of the global network.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of your site.
Constraints: Maximum length of 256 characters.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of your site.
Constraints: Maximum length of 256 characters.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of your site.
Constraints: Maximum length of 256 characters.
sourcepub fn location(self, input: Location) -> Self
pub fn location(self, input: Location) -> Self
The site location. This information is used for visualization in the Network Manager console. If you specify the address, the latitude and longitude are automatically calculated.
-
Address
: The physical address of the site. -
Latitude
: The latitude of the site. -
Longitude
: The longitude of the site.
sourcepub fn set_location(self, input: Option<Location>) -> Self
pub fn set_location(self, input: Option<Location>) -> Self
The site location. This information is used for visualization in the Network Manager console. If you specify the address, the latitude and longitude are automatically calculated.
-
Address
: The physical address of the site. -
Latitude
: The latitude of the site. -
Longitude
: The longitude of the site.
sourcepub fn get_location(&self) -> &Option<Location>
pub fn get_location(&self) -> &Option<Location>
The site location. This information is used for visualization in the Network Manager console. If you specify the address, the latitude and longitude are automatically calculated.
-
Address
: The physical address of the site. -
Latitude
: The latitude of the site. -
Longitude
: The longitude of the site.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags to apply to the resource during creation.
The tags to apply to the resource during creation.
The tags to apply to the resource during creation.
sourcepub fn build(self) -> Result<CreateSiteInput, BuildError>
pub fn build(self) -> Result<CreateSiteInput, BuildError>
Consumes the builder and constructs a CreateSiteInput
.
source§impl CreateSiteInputBuilder
impl CreateSiteInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateSiteOutput, SdkError<CreateSiteError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateSiteOutput, SdkError<CreateSiteError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateSiteInputBuilder
impl Clone for CreateSiteInputBuilder
source§fn clone(&self) -> CreateSiteInputBuilder
fn clone(&self) -> CreateSiteInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateSiteInputBuilder
impl Debug for CreateSiteInputBuilder
source§impl Default for CreateSiteInputBuilder
impl Default for CreateSiteInputBuilder
source§fn default() -> CreateSiteInputBuilder
fn default() -> CreateSiteInputBuilder
source§impl PartialEq for CreateSiteInputBuilder
impl PartialEq for CreateSiteInputBuilder
source§fn eq(&self, other: &CreateSiteInputBuilder) -> bool
fn eq(&self, other: &CreateSiteInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.