#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteRegistryPolicyOutput {
pub registry_id: ::std::option::Option<::std::string::String>,
pub policy_text: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl DeleteRegistryPolicyOutput {
pub fn registry_id(&self) -> ::std::option::Option<&str> {
self.registry_id.as_deref()
}
pub fn policy_text(&self) -> ::std::option::Option<&str> {
self.policy_text.as_deref()
}
}
impl ::aws_types::request_id::RequestId for DeleteRegistryPolicyOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DeleteRegistryPolicyOutput {
pub fn builder() -> crate::operation::delete_registry_policy::builders::DeleteRegistryPolicyOutputBuilder {
crate::operation::delete_registry_policy::builders::DeleteRegistryPolicyOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteRegistryPolicyOutputBuilder {
pub(crate) registry_id: ::std::option::Option<::std::string::String>,
pub(crate) policy_text: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl DeleteRegistryPolicyOutputBuilder {
pub fn registry_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.registry_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_registry_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.registry_id = input;
self
}
pub fn get_registry_id(&self) -> &::std::option::Option<::std::string::String> {
&self.registry_id
}
pub fn policy_text(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.policy_text = ::std::option::Option::Some(input.into());
self
}
pub fn set_policy_text(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.policy_text = input;
self
}
pub fn get_policy_text(&self) -> &::std::option::Option<::std::string::String> {
&self.policy_text
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::delete_registry_policy::DeleteRegistryPolicyOutput {
crate::operation::delete_registry_policy::DeleteRegistryPolicyOutput {
registry_id: self.registry_id,
policy_text: self.policy_text,
_request_id: self._request_id,
}
}
}