#[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 ==
.impl StructuralPartialEq for CreateSiteInputBuilder
Auto Trait Implementations§
impl Freeze for CreateSiteInputBuilder
impl RefUnwindSafe for CreateSiteInputBuilder
impl Send for CreateSiteInputBuilder
impl Sync for CreateSiteInputBuilder
impl Unpin for CreateSiteInputBuilder
impl UnwindSafe for CreateSiteInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more