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 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221
// 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 DescribeContributorInsightsOutput {
/// <p>The name of the table being described.</p>
#[doc(hidden)]
pub table_name: ::std::option::Option<::std::string::String>,
/// <p>The name of the global secondary index being described.</p>
#[doc(hidden)]
pub index_name: ::std::option::Option<::std::string::String>,
/// <p>List of names of the associated contributor insights rules.</p>
#[doc(hidden)]
pub contributor_insights_rule_list:
::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>Current status of contributor insights.</p>
#[doc(hidden)]
pub contributor_insights_status: ::std::option::Option<crate::types::ContributorInsightsStatus>,
/// <p>Timestamp of the last time the status was changed.</p>
#[doc(hidden)]
pub last_update_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>Returns information about the last failure that was encountered.</p>
/// <p>The most common exceptions for a FAILED status are:</p>
/// <ul>
/// <li> <p>LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying.</p> </li>
/// <li> <p>AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.</p> </li>
/// <li> <p>AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.</p> </li>
/// <li> <p>InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.</p> </li>
/// </ul>
#[doc(hidden)]
pub failure_exception: ::std::option::Option<crate::types::FailureException>,
_request_id: Option<String>,
}
impl DescribeContributorInsightsOutput {
/// <p>The name of the table being described.</p>
pub fn table_name(&self) -> ::std::option::Option<&str> {
self.table_name.as_deref()
}
/// <p>The name of the global secondary index being described.</p>
pub fn index_name(&self) -> ::std::option::Option<&str> {
self.index_name.as_deref()
}
/// <p>List of names of the associated contributor insights rules.</p>
pub fn contributor_insights_rule_list(
&self,
) -> ::std::option::Option<&[::std::string::String]> {
self.contributor_insights_rule_list.as_deref()
}
/// <p>Current status of contributor insights.</p>
pub fn contributor_insights_status(
&self,
) -> ::std::option::Option<&crate::types::ContributorInsightsStatus> {
self.contributor_insights_status.as_ref()
}
/// <p>Timestamp of the last time the status was changed.</p>
pub fn last_update_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_update_date_time.as_ref()
}
/// <p>Returns information about the last failure that was encountered.</p>
/// <p>The most common exceptions for a FAILED status are:</p>
/// <ul>
/// <li> <p>LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying.</p> </li>
/// <li> <p>AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.</p> </li>
/// <li> <p>AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.</p> </li>
/// <li> <p>InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.</p> </li>
/// </ul>
pub fn failure_exception(&self) -> ::std::option::Option<&crate::types::FailureException> {
self.failure_exception.as_ref()
}
}
impl ::aws_http::request_id::RequestId for DescribeContributorInsightsOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeContributorInsightsOutput {
/// Creates a new builder-style object to manufacture [`DescribeContributorInsightsOutput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput).
pub fn builder() -> crate::operation::describe_contributor_insights::builders::DescribeContributorInsightsOutputBuilder{
crate::operation::describe_contributor_insights::builders::DescribeContributorInsightsOutputBuilder::default()
}
}
/// A builder for [`DescribeContributorInsightsOutput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput).
#[non_exhaustive]
#[derive(
::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
)]
pub struct DescribeContributorInsightsOutputBuilder {
pub(crate) table_name: ::std::option::Option<::std::string::String>,
pub(crate) index_name: ::std::option::Option<::std::string::String>,
pub(crate) contributor_insights_rule_list:
::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) contributor_insights_status:
::std::option::Option<crate::types::ContributorInsightsStatus>,
pub(crate) last_update_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) failure_exception: ::std::option::Option<crate::types::FailureException>,
_request_id: Option<String>,
}
impl DescribeContributorInsightsOutputBuilder {
/// <p>The name of the table being described.</p>
pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.table_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the table being described.</p>
pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.table_name = input;
self
}
/// <p>The name of the global secondary index being described.</p>
pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.index_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the global secondary index being described.</p>
pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.index_name = input;
self
}
/// Appends an item to `contributor_insights_rule_list`.
///
/// To override the contents of this collection use [`set_contributor_insights_rule_list`](Self::set_contributor_insights_rule_list).
///
/// <p>List of names of the associated contributor insights rules.</p>
pub fn contributor_insights_rule_list(
mut self,
input: impl ::std::convert::Into<::std::string::String>,
) -> Self {
let mut v = self.contributor_insights_rule_list.unwrap_or_default();
v.push(input.into());
self.contributor_insights_rule_list = ::std::option::Option::Some(v);
self
}
/// <p>List of names of the associated contributor insights rules.</p>
pub fn set_contributor_insights_rule_list(
mut self,
input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
) -> Self {
self.contributor_insights_rule_list = input;
self
}
/// <p>Current status of contributor insights.</p>
pub fn contributor_insights_status(
mut self,
input: crate::types::ContributorInsightsStatus,
) -> Self {
self.contributor_insights_status = ::std::option::Option::Some(input);
self
}
/// <p>Current status of contributor insights.</p>
pub fn set_contributor_insights_status(
mut self,
input: ::std::option::Option<crate::types::ContributorInsightsStatus>,
) -> Self {
self.contributor_insights_status = input;
self
}
/// <p>Timestamp of the last time the status was changed.</p>
pub fn last_update_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_update_date_time = ::std::option::Option::Some(input);
self
}
/// <p>Timestamp of the last time the status was changed.</p>
pub fn set_last_update_date_time(
mut self,
input: ::std::option::Option<::aws_smithy_types::DateTime>,
) -> Self {
self.last_update_date_time = input;
self
}
/// <p>Returns information about the last failure that was encountered.</p>
/// <p>The most common exceptions for a FAILED status are:</p>
/// <ul>
/// <li> <p>LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying.</p> </li>
/// <li> <p>AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.</p> </li>
/// <li> <p>AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.</p> </li>
/// <li> <p>InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.</p> </li>
/// </ul>
pub fn failure_exception(mut self, input: crate::types::FailureException) -> Self {
self.failure_exception = ::std::option::Option::Some(input);
self
}
/// <p>Returns information about the last failure that was encountered.</p>
/// <p>The most common exceptions for a FAILED status are:</p>
/// <ul>
/// <li> <p>LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying.</p> </li>
/// <li> <p>AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.</p> </li>
/// <li> <p>AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.</p> </li>
/// <li> <p>InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.</p> </li>
/// </ul>
pub fn set_failure_exception(
mut self,
input: ::std::option::Option<crate::types::FailureException>,
) -> Self {
self.failure_exception = input;
self
}
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
}
/// Consumes the builder and constructs a [`DescribeContributorInsightsOutput`](crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput).
pub fn build(
self,
) -> crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput {
crate::operation::describe_contributor_insights::DescribeContributorInsightsOutput {
table_name: self.table_name,
index_name: self.index_name,
contributor_insights_rule_list: self.contributor_insights_rule_list,
contributor_insights_status: self.contributor_insights_status,
last_update_date_time: self.last_update_date_time,
failure_exception: self.failure_exception,
_request_id: self._request_id,
}
}
}