Struct aws_sdk_sns::operation::create_platform_application::builders::CreatePlatformApplicationInputBuilder
source · #[non_exhaustive]pub struct CreatePlatformApplicationInputBuilder { /* private fields */ }Expand description
A builder for CreatePlatformApplicationInput.
Implementations§
source§impl CreatePlatformApplicationInputBuilder
impl CreatePlatformApplicationInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.
sourcepub fn platform(self, input: impl Into<String>) -> Self
pub fn platform(self, input: impl Into<String>) -> Self
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging).
This field is required.sourcepub fn set_platform(self, input: Option<String>) -> Self
pub fn set_platform(self, input: Option<String>) -> Self
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging).
sourcepub fn get_platform(&self) -> &Option<String>
pub fn get_platform(&self) -> &Option<String>
The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging).
sourcepub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to attributes.
To override the contents of this collection use set_attributes.
For a list of attributes, see SetPlatformApplicationAttributes .
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
For a list of attributes, see SetPlatformApplicationAttributes .
sourcepub fn get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
For a list of attributes, see SetPlatformApplicationAttributes .
sourcepub fn build(self) -> Result<CreatePlatformApplicationInput, BuildError>
pub fn build(self) -> Result<CreatePlatformApplicationInput, BuildError>
Consumes the builder and constructs a CreatePlatformApplicationInput.
source§impl CreatePlatformApplicationInputBuilder
impl CreatePlatformApplicationInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreatePlatformApplicationOutput, SdkError<CreatePlatformApplicationError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreatePlatformApplicationOutput, SdkError<CreatePlatformApplicationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreatePlatformApplicationInputBuilder
impl Clone for CreatePlatformApplicationInputBuilder
source§fn clone(&self) -> CreatePlatformApplicationInputBuilder
fn clone(&self) -> CreatePlatformApplicationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreatePlatformApplicationInputBuilder
impl Default for CreatePlatformApplicationInputBuilder
source§fn default() -> CreatePlatformApplicationInputBuilder
fn default() -> CreatePlatformApplicationInputBuilder
source§impl PartialEq for CreatePlatformApplicationInputBuilder
impl PartialEq for CreatePlatformApplicationInputBuilder
source§fn eq(&self, other: &CreatePlatformApplicationInputBuilder) -> bool
fn eq(&self, other: &CreatePlatformApplicationInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreatePlatformApplicationInputBuilder
Auto Trait Implementations§
impl Freeze for CreatePlatformApplicationInputBuilder
impl RefUnwindSafe for CreatePlatformApplicationInputBuilder
impl Send for CreatePlatformApplicationInputBuilder
impl Sync for CreatePlatformApplicationInputBuilder
impl Unpin for CreatePlatformApplicationInputBuilder
impl UnwindSafe for CreatePlatformApplicationInputBuilder
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