Struct aws_sdk_servicediscovery::types::builders::OperationBuilder
source · #[non_exhaustive]pub struct OperationBuilder { /* private fields */ }Expand description
A builder for Operation.
Implementations§
source§impl OperationBuilder
impl OperationBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the operation that you want to get information about.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID of the operation that you want to get information about.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The ID of the operation that you want to get information about.
sourcepub fn type(self, input: OperationType) -> Self
pub fn type(self, input: OperationType) -> Self
The name of the operation that's associated with the specified ID.
sourcepub fn set_type(self, input: Option<OperationType>) -> Self
pub fn set_type(self, input: Option<OperationType>) -> Self
The name of the operation that's associated with the specified ID.
sourcepub fn get_type(&self) -> &Option<OperationType>
pub fn get_type(&self) -> &Option<OperationType>
The name of the operation that's associated with the specified ID.
sourcepub fn status(self, input: OperationStatus) -> Self
pub fn status(self, input: OperationStatus) -> Self
The status of the operation. Values include the following:
- SUBMITTED
-
This is the initial state that occurs immediately after you submit a request.
- PENDING
-
Cloud Map is performing the operation.
- SUCCESS
-
The operation succeeded.
- FAIL
-
The operation failed. For the failure reason, see
ErrorMessage.
sourcepub fn set_status(self, input: Option<OperationStatus>) -> Self
pub fn set_status(self, input: Option<OperationStatus>) -> Self
The status of the operation. Values include the following:
- SUBMITTED
-
This is the initial state that occurs immediately after you submit a request.
- PENDING
-
Cloud Map is performing the operation.
- SUCCESS
-
The operation succeeded.
- FAIL
-
The operation failed. For the failure reason, see
ErrorMessage.
sourcepub fn get_status(&self) -> &Option<OperationStatus>
pub fn get_status(&self) -> &Option<OperationStatus>
The status of the operation. Values include the following:
- SUBMITTED
-
This is the initial state that occurs immediately after you submit a request.
- PENDING
-
Cloud Map is performing the operation.
- SUCCESS
-
The operation succeeded.
- FAIL
-
The operation failed. For the failure reason, see
ErrorMessage.
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
If the value of Status is FAIL, the reason that the operation failed.
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
If the value of Status is FAIL, the reason that the operation failed.
sourcepub fn get_error_message(&self) -> &Option<String>
pub fn get_error_message(&self) -> &Option<String>
If the value of Status is FAIL, the reason that the operation failed.
sourcepub fn error_code(self, input: impl Into<String>) -> Self
pub fn error_code(self, input: impl Into<String>) -> Self
The code associated with ErrorMessage. Values for ErrorCode include the following:
-
ACCESS_DENIED -
CANNOT_CREATE_HOSTED_ZONE -
EXPIRED_TOKEN -
HOSTED_ZONE_NOT_FOUND -
INTERNAL_FAILURE -
INVALID_CHANGE_BATCH -
THROTTLED_REQUEST
sourcepub fn set_error_code(self, input: Option<String>) -> Self
pub fn set_error_code(self, input: Option<String>) -> Self
The code associated with ErrorMessage. Values for ErrorCode include the following:
-
ACCESS_DENIED -
CANNOT_CREATE_HOSTED_ZONE -
EXPIRED_TOKEN -
HOSTED_ZONE_NOT_FOUND -
INTERNAL_FAILURE -
INVALID_CHANGE_BATCH -
THROTTLED_REQUEST
sourcepub fn get_error_code(&self) -> &Option<String>
pub fn get_error_code(&self) -> &Option<String>
The code associated with ErrorMessage. Values for ErrorCode include the following:
-
ACCESS_DENIED -
CANNOT_CREATE_HOSTED_ZONE -
EXPIRED_TOKEN -
HOSTED_ZONE_NOT_FOUND -
INTERNAL_FAILURE -
INVALID_CHANGE_BATCH -
THROTTLED_REQUEST
sourcepub fn create_date(self, input: DateTime) -> Self
pub fn create_date(self, input: DateTime) -> Self
The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC). The value of CreateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn set_create_date(self, input: Option<DateTime>) -> Self
pub fn set_create_date(self, input: Option<DateTime>) -> Self
The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC). The value of CreateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn get_create_date(&self) -> &Option<DateTime>
pub fn get_create_date(&self) -> &Option<DateTime>
The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC). The value of CreateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn update_date(self, input: DateTime) -> Self
pub fn update_date(self, input: DateTime) -> Self
The date and time that the value of Status changed to the current value, in Unix date/time format and Coordinated Universal Time (UTC). The value of UpdateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn set_update_date(self, input: Option<DateTime>) -> Self
pub fn set_update_date(self, input: Option<DateTime>) -> Self
The date and time that the value of Status changed to the current value, in Unix date/time format and Coordinated Universal Time (UTC). The value of UpdateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn get_update_date(&self) -> &Option<DateTime>
pub fn get_update_date(&self) -> &Option<DateTime>
The date and time that the value of Status changed to the current value, in Unix date/time format and Coordinated Universal Time (UTC). The value of UpdateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn targets(self, k: OperationTargetType, v: impl Into<String>) -> Self
pub fn targets(self, k: OperationTargetType, v: impl Into<String>) -> Self
Adds a key-value pair to targets.
To override the contents of this collection use set_targets.
The name of the target entity that's associated with the operation:
- NAMESPACE
-
The namespace ID is returned in the
ResourceIdproperty. - SERVICE
-
The service ID is returned in the
ResourceIdproperty. - INSTANCE
-
The instance ID is returned in the
ResourceIdproperty.
sourcepub fn set_targets(
self,
input: Option<HashMap<OperationTargetType, String>>,
) -> Self
pub fn set_targets( self, input: Option<HashMap<OperationTargetType, String>>, ) -> Self
The name of the target entity that's associated with the operation:
- NAMESPACE
-
The namespace ID is returned in the
ResourceIdproperty. - SERVICE
-
The service ID is returned in the
ResourceIdproperty. - INSTANCE
-
The instance ID is returned in the
ResourceIdproperty.
sourcepub fn get_targets(&self) -> &Option<HashMap<OperationTargetType, String>>
pub fn get_targets(&self) -> &Option<HashMap<OperationTargetType, String>>
The name of the target entity that's associated with the operation:
- NAMESPACE
-
The namespace ID is returned in the
ResourceIdproperty. - SERVICE
-
The service ID is returned in the
ResourceIdproperty. - INSTANCE
-
The instance ID is returned in the
ResourceIdproperty.
Trait Implementations§
source§impl Clone for OperationBuilder
impl Clone for OperationBuilder
source§fn clone(&self) -> OperationBuilder
fn clone(&self) -> OperationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for OperationBuilder
impl Debug for OperationBuilder
source§impl Default for OperationBuilder
impl Default for OperationBuilder
source§fn default() -> OperationBuilder
fn default() -> OperationBuilder
source§impl PartialEq for OperationBuilder
impl PartialEq for OperationBuilder
impl StructuralPartialEq for OperationBuilder
Auto Trait Implementations§
impl Freeze for OperationBuilder
impl RefUnwindSafe for OperationBuilder
impl Send for OperationBuilder
impl Sync for OperationBuilder
impl Unpin for OperationBuilder
impl UnwindSafe for OperationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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