1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AssociateQualificationWithWorkerInput {
/// <p>The ID of the Qualification type to use for the assigned Qualification.</p>
pub qualification_type_id: ::std::option::Option<::std::string::String>,
/// <p> The ID of the Worker to whom the Qualification is being assigned. Worker IDs are included with submitted HIT assignments and Qualification requests. </p>
pub worker_id: ::std::option::Option<::std::string::String>,
/// <p>The value of the Qualification to assign.</p>
pub integer_value: ::std::option::Option<i32>,
/// <p> Specifies whether to send a notification email message to the Worker saying that the qualification was assigned to the Worker. Note: this is true by default. </p>
pub send_notification: ::std::option::Option<bool>,
}
impl AssociateQualificationWithWorkerInput {
/// <p>The ID of the Qualification type to use for the assigned Qualification.</p>
pub fn qualification_type_id(&self) -> ::std::option::Option<&str> {
self.qualification_type_id.as_deref()
}
/// <p> The ID of the Worker to whom the Qualification is being assigned. Worker IDs are included with submitted HIT assignments and Qualification requests. </p>
pub fn worker_id(&self) -> ::std::option::Option<&str> {
self.worker_id.as_deref()
}
/// <p>The value of the Qualification to assign.</p>
pub fn integer_value(&self) -> ::std::option::Option<i32> {
self.integer_value
}
/// <p> Specifies whether to send a notification email message to the Worker saying that the qualification was assigned to the Worker. Note: this is true by default. </p>
pub fn send_notification(&self) -> ::std::option::Option<bool> {
self.send_notification
}
}
impl AssociateQualificationWithWorkerInput {
/// Creates a new builder-style object to manufacture [`AssociateQualificationWithWorkerInput`](crate::operation::associate_qualification_with_worker::AssociateQualificationWithWorkerInput).
pub fn builder() -> crate::operation::associate_qualification_with_worker::builders::AssociateQualificationWithWorkerInputBuilder {
crate::operation::associate_qualification_with_worker::builders::AssociateQualificationWithWorkerInputBuilder::default()
}
}
/// A builder for [`AssociateQualificationWithWorkerInput`](crate::operation::associate_qualification_with_worker::AssociateQualificationWithWorkerInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct AssociateQualificationWithWorkerInputBuilder {
pub(crate) qualification_type_id: ::std::option::Option<::std::string::String>,
pub(crate) worker_id: ::std::option::Option<::std::string::String>,
pub(crate) integer_value: ::std::option::Option<i32>,
pub(crate) send_notification: ::std::option::Option<bool>,
}
impl AssociateQualificationWithWorkerInputBuilder {
/// <p>The ID of the Qualification type to use for the assigned Qualification.</p>
pub fn qualification_type_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.qualification_type_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the Qualification type to use for the assigned Qualification.</p>
pub fn set_qualification_type_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.qualification_type_id = input;
self
}
/// <p>The ID of the Qualification type to use for the assigned Qualification.</p>
pub fn get_qualification_type_id(&self) -> &::std::option::Option<::std::string::String> {
&self.qualification_type_id
}
/// <p> The ID of the Worker to whom the Qualification is being assigned. Worker IDs are included with submitted HIT assignments and Qualification requests. </p>
pub fn worker_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.worker_id = ::std::option::Option::Some(input.into());
self
}
/// <p> The ID of the Worker to whom the Qualification is being assigned. Worker IDs are included with submitted HIT assignments and Qualification requests. </p>
pub fn set_worker_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.worker_id = input;
self
}
/// <p> The ID of the Worker to whom the Qualification is being assigned. Worker IDs are included with submitted HIT assignments and Qualification requests. </p>
pub fn get_worker_id(&self) -> &::std::option::Option<::std::string::String> {
&self.worker_id
}
/// <p>The value of the Qualification to assign.</p>
pub fn integer_value(mut self, input: i32) -> Self {
self.integer_value = ::std::option::Option::Some(input);
self
}
/// <p>The value of the Qualification to assign.</p>
pub fn set_integer_value(mut self, input: ::std::option::Option<i32>) -> Self {
self.integer_value = input;
self
}
/// <p>The value of the Qualification to assign.</p>
pub fn get_integer_value(&self) -> &::std::option::Option<i32> {
&self.integer_value
}
/// <p> Specifies whether to send a notification email message to the Worker saying that the qualification was assigned to the Worker. Note: this is true by default. </p>
pub fn send_notification(mut self, input: bool) -> Self {
self.send_notification = ::std::option::Option::Some(input);
self
}
/// <p> Specifies whether to send a notification email message to the Worker saying that the qualification was assigned to the Worker. Note: this is true by default. </p>
pub fn set_send_notification(mut self, input: ::std::option::Option<bool>) -> Self {
self.send_notification = input;
self
}
/// <p> Specifies whether to send a notification email message to the Worker saying that the qualification was assigned to the Worker. Note: this is true by default. </p>
pub fn get_send_notification(&self) -> &::std::option::Option<bool> {
&self.send_notification
}
/// Consumes the builder and constructs a [`AssociateQualificationWithWorkerInput`](crate::operation::associate_qualification_with_worker::AssociateQualificationWithWorkerInput).
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::associate_qualification_with_worker::AssociateQualificationWithWorkerInput,
::aws_smithy_http::operation::error::BuildError,
> {
::std::result::Result::Ok(
crate::operation::associate_qualification_with_worker::AssociateQualificationWithWorkerInput {
qualification_type_id: self.qualification_type_id,
worker_id: self.worker_id,
integer_value: self.integer_value,
send_notification: self.send_notification,
},
)
}
}