Struct aws_sdk_macie2::types::builders::IpCountryBuilder
source · #[non_exhaustive]pub struct IpCountryBuilder { /* private fields */ }
Expand description
A builder for IpCountry
.
Implementations§
source§impl IpCountryBuilder
impl IpCountryBuilder
sourcepub fn code(self, input: impl Into<String>) -> Self
pub fn code(self, input: impl Into<String>) -> Self
The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from. For example, US for the United States.
sourcepub fn set_code(self, input: Option<String>) -> Self
pub fn set_code(self, input: Option<String>) -> Self
The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from. For example, US for the United States.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the country that the IP address originated from.
Trait Implementations§
source§impl Clone for IpCountryBuilder
impl Clone for IpCountryBuilder
source§fn clone(&self) -> IpCountryBuilder
fn clone(&self) -> IpCountryBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IpCountryBuilder
impl Debug for IpCountryBuilder
source§impl Default for IpCountryBuilder
impl Default for IpCountryBuilder
source§fn default() -> IpCountryBuilder
fn default() -> IpCountryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<IpCountryBuilder> for IpCountryBuilder
impl PartialEq<IpCountryBuilder> for IpCountryBuilder
source§fn eq(&self, other: &IpCountryBuilder) -> bool
fn eq(&self, other: &IpCountryBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.