Struct aws_sdk_sns::model::subscription::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for Subscription.
Implementations§
source§impl Builder
impl Builder
sourcepub fn subscription_arn(self, input: impl Into<String>) -> Self
pub fn subscription_arn(self, input: impl Into<String>) -> Self
The subscription's ARN.
sourcepub fn set_subscription_arn(self, input: Option<String>) -> Self
pub fn set_subscription_arn(self, input: Option<String>) -> Self
The subscription's ARN.
sourcepub fn set_protocol(self, input: Option<String>) -> Self
pub fn set_protocol(self, input: Option<String>) -> Self
The subscription's protocol.
sourcepub fn endpoint(self, input: impl Into<String>) -> Self
pub fn endpoint(self, input: impl Into<String>) -> Self
The subscription's endpoint (format depends on the protocol).
sourcepub fn set_endpoint(self, input: Option<String>) -> Self
pub fn set_endpoint(self, input: Option<String>) -> Self
The subscription's endpoint (format depends on the protocol).
sourcepub fn set_topic_arn(self, input: Option<String>) -> Self
pub fn set_topic_arn(self, input: Option<String>) -> Self
The ARN of the subscription's topic.
sourcepub fn build(self) -> Subscription
pub fn build(self) -> Subscription
Consumes the builder and constructs a Subscription.