#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RevokeEndpointAccessOutput {
pub grantor: ::std::option::Option<::std::string::String>,
pub grantee: ::std::option::Option<::std::string::String>,
pub cluster_identifier: ::std::option::Option<::std::string::String>,
pub authorize_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub cluster_status: ::std::option::Option<::std::string::String>,
pub status: ::std::option::Option<crate::types::AuthorizationStatus>,
pub allowed_all_vpcs: ::std::option::Option<bool>,
pub allowed_vpcs: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub endpoint_count: ::std::option::Option<i32>,
_request_id: Option<String>,
}
impl RevokeEndpointAccessOutput {
pub fn grantor(&self) -> ::std::option::Option<&str> {
self.grantor.as_deref()
}
pub fn grantee(&self) -> ::std::option::Option<&str> {
self.grantee.as_deref()
}
pub fn cluster_identifier(&self) -> ::std::option::Option<&str> {
self.cluster_identifier.as_deref()
}
pub fn authorize_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.authorize_time.as_ref()
}
pub fn cluster_status(&self) -> ::std::option::Option<&str> {
self.cluster_status.as_deref()
}
pub fn status(&self) -> ::std::option::Option<&crate::types::AuthorizationStatus> {
self.status.as_ref()
}
pub fn allowed_all_vpcs(&self) -> ::std::option::Option<bool> {
self.allowed_all_vpcs
}
pub fn allowed_vpcs(&self) -> &[::std::string::String] {
self.allowed_vpcs.as_deref().unwrap_or_default()
}
pub fn endpoint_count(&self) -> ::std::option::Option<i32> {
self.endpoint_count
}
}
impl ::aws_types::request_id::RequestId for RevokeEndpointAccessOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl RevokeEndpointAccessOutput {
pub fn builder() -> crate::operation::revoke_endpoint_access::builders::RevokeEndpointAccessOutputBuilder {
crate::operation::revoke_endpoint_access::builders::RevokeEndpointAccessOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RevokeEndpointAccessOutputBuilder {
pub(crate) grantor: ::std::option::Option<::std::string::String>,
pub(crate) grantee: ::std::option::Option<::std::string::String>,
pub(crate) cluster_identifier: ::std::option::Option<::std::string::String>,
pub(crate) authorize_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) cluster_status: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::AuthorizationStatus>,
pub(crate) allowed_all_vpcs: ::std::option::Option<bool>,
pub(crate) allowed_vpcs: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) endpoint_count: ::std::option::Option<i32>,
_request_id: Option<String>,
}
impl RevokeEndpointAccessOutputBuilder {
pub fn grantor(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.grantor = ::std::option::Option::Some(input.into());
self
}
pub fn set_grantor(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.grantor = input;
self
}
pub fn get_grantor(&self) -> &::std::option::Option<::std::string::String> {
&self.grantor
}
pub fn grantee(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.grantee = ::std::option::Option::Some(input.into());
self
}
pub fn set_grantee(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.grantee = input;
self
}
pub fn get_grantee(&self) -> &::std::option::Option<::std::string::String> {
&self.grantee
}
pub fn cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_identifier = input;
self
}
pub fn get_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_identifier
}
pub fn authorize_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.authorize_time = ::std::option::Option::Some(input);
self
}
pub fn set_authorize_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.authorize_time = input;
self
}
pub fn get_authorize_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.authorize_time
}
pub fn cluster_status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_status = ::std::option::Option::Some(input.into());
self
}
pub fn set_cluster_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_status = input;
self
}
pub fn get_cluster_status(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_status
}
pub fn status(mut self, input: crate::types::AuthorizationStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
pub fn set_status(mut self, input: ::std::option::Option<crate::types::AuthorizationStatus>) -> Self {
self.status = input;
self
}
pub fn get_status(&self) -> &::std::option::Option<crate::types::AuthorizationStatus> {
&self.status
}
pub fn allowed_all_vpcs(mut self, input: bool) -> Self {
self.allowed_all_vpcs = ::std::option::Option::Some(input);
self
}
pub fn set_allowed_all_vpcs(mut self, input: ::std::option::Option<bool>) -> Self {
self.allowed_all_vpcs = input;
self
}
pub fn get_allowed_all_vpcs(&self) -> &::std::option::Option<bool> {
&self.allowed_all_vpcs
}
pub fn allowed_vpcs(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.allowed_vpcs.unwrap_or_default();
v.push(input.into());
self.allowed_vpcs = ::std::option::Option::Some(v);
self
}
pub fn set_allowed_vpcs(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.allowed_vpcs = input;
self
}
pub fn get_allowed_vpcs(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.allowed_vpcs
}
pub fn endpoint_count(mut self, input: i32) -> Self {
self.endpoint_count = ::std::option::Option::Some(input);
self
}
pub fn set_endpoint_count(mut self, input: ::std::option::Option<i32>) -> Self {
self.endpoint_count = input;
self
}
pub fn get_endpoint_count(&self) -> &::std::option::Option<i32> {
&self.endpoint_count
}
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::revoke_endpoint_access::RevokeEndpointAccessOutput {
crate::operation::revoke_endpoint_access::RevokeEndpointAccessOutput {
grantor: self.grantor,
grantee: self.grantee,
cluster_identifier: self.cluster_identifier,
authorize_time: self.authorize_time,
cluster_status: self.cluster_status,
status: self.status,
allowed_all_vpcs: self.allowed_all_vpcs,
allowed_vpcs: self.allowed_vpcs,
endpoint_count: self.endpoint_count,
_request_id: self._request_id,
}
}
}