Skip to main content

nominal_api/conjure/objects/authorization/
okta_update_action_command.rs

1#[derive(
2    Debug,
3    Clone,
4    conjure_object::serde::Serialize,
5    conjure_object::serde::Deserialize,
6    PartialEq,
7    Eq,
8    PartialOrd,
9    Ord,
10    Hash
11)]
12#[serde(crate = "conjure_object::serde")]
13#[conjure_object::private::staged_builder::staged_builder]
14#[builder(crate = conjure_object::private::staged_builder, update, inline)]
15pub struct OktaUpdateActionCommand {
16    #[builder(into)]
17    #[serde(rename = "type")]
18    type_: String,
19    #[builder(custom(type = super::OktaUpdateActionValue, convert = Box::new))]
20    #[serde(rename = "value")]
21    value: Box<super::OktaUpdateActionValue>,
22}
23impl OktaUpdateActionCommand {
24    /// Constructs a new instance of the type.
25    #[inline]
26    pub fn new(type_: impl Into<String>, value: super::OktaUpdateActionValue) -> Self {
27        Self::builder().type_(type_).value(value).build()
28    }
29    #[inline]
30    pub fn type_(&self) -> &str {
31        &*self.type_
32    }
33    #[inline]
34    pub fn value(&self) -> &super::OktaUpdateActionValue {
35        &*self.value
36    }
37}