Struct aws_sdk_route53::operation::create_traffic_policy_version::builders::CreateTrafficPolicyVersionInputBuilder
source · #[non_exhaustive]pub struct CreateTrafficPolicyVersionInputBuilder { /* private fields */ }
Expand description
A builder for CreateTrafficPolicyVersionInput
.
Implementations§
source§impl CreateTrafficPolicyVersionInputBuilder
impl CreateTrafficPolicyVersionInputBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the traffic policy for which you want to create a new version.
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID of the traffic policy for which you want to create a new version.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The ID of the traffic policy for which you want to create a new version.
sourcepub fn document(self, input: impl Into<String>) -> Self
pub fn document(self, input: impl Into<String>) -> Self
The definition of this version of the traffic policy, in JSON format. You specified the JSON in the CreateTrafficPolicyVersion
request. For more information about the JSON format, see CreateTrafficPolicy.
sourcepub fn set_document(self, input: Option<String>) -> Self
pub fn set_document(self, input: Option<String>) -> Self
The definition of this version of the traffic policy, in JSON format. You specified the JSON in the CreateTrafficPolicyVersion
request. For more information about the JSON format, see CreateTrafficPolicy.
sourcepub fn get_document(&self) -> &Option<String>
pub fn get_document(&self) -> &Option<String>
The definition of this version of the traffic policy, in JSON format. You specified the JSON in the CreateTrafficPolicyVersion
request. For more information about the JSON format, see CreateTrafficPolicy.
sourcepub fn comment(self, input: impl Into<String>) -> Self
pub fn comment(self, input: impl Into<String>) -> Self
The comment that you specified in the CreateTrafficPolicyVersion
request, if any.
sourcepub fn set_comment(self, input: Option<String>) -> Self
pub fn set_comment(self, input: Option<String>) -> Self
The comment that you specified in the CreateTrafficPolicyVersion
request, if any.
sourcepub fn get_comment(&self) -> &Option<String>
pub fn get_comment(&self) -> &Option<String>
The comment that you specified in the CreateTrafficPolicyVersion
request, if any.
sourcepub fn build(self) -> Result<CreateTrafficPolicyVersionInput, BuildError>
pub fn build(self) -> Result<CreateTrafficPolicyVersionInput, BuildError>
Consumes the builder and constructs a CreateTrafficPolicyVersionInput
.
source§impl CreateTrafficPolicyVersionInputBuilder
impl CreateTrafficPolicyVersionInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateTrafficPolicyVersionOutput, SdkError<CreateTrafficPolicyVersionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateTrafficPolicyVersionOutput, SdkError<CreateTrafficPolicyVersionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateTrafficPolicyVersionInputBuilder
impl Clone for CreateTrafficPolicyVersionInputBuilder
source§fn clone(&self) -> CreateTrafficPolicyVersionInputBuilder
fn clone(&self) -> CreateTrafficPolicyVersionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateTrafficPolicyVersionInputBuilder
impl Default for CreateTrafficPolicyVersionInputBuilder
source§fn default() -> CreateTrafficPolicyVersionInputBuilder
fn default() -> CreateTrafficPolicyVersionInputBuilder
source§impl PartialEq for CreateTrafficPolicyVersionInputBuilder
impl PartialEq for CreateTrafficPolicyVersionInputBuilder
source§fn eq(&self, other: &CreateTrafficPolicyVersionInputBuilder) -> bool
fn eq(&self, other: &CreateTrafficPolicyVersionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateTrafficPolicyVersionInputBuilder
Auto Trait Implementations§
impl Freeze for CreateTrafficPolicyVersionInputBuilder
impl RefUnwindSafe for CreateTrafficPolicyVersionInputBuilder
impl Send for CreateTrafficPolicyVersionInputBuilder
impl Sync for CreateTrafficPolicyVersionInputBuilder
impl Unpin for CreateTrafficPolicyVersionInputBuilder
impl UnwindSafe for CreateTrafficPolicyVersionInputBuilder
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