#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct BatchDetectDominantLanguage {
_private: (),
}
impl BatchDetectDominantLanguage {
pub fn builder() -> crate::input::batch_detect_dominant_language_input::Builder {
crate::input::batch_detect_dominant_language_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for BatchDetectDominantLanguage {
type Output = std::result::Result<
crate::output::BatchDetectDominantLanguageOutput,
crate::error::BatchDetectDominantLanguageError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_batch_detect_dominant_language_error(response)
} else {
crate::operation_deser::parse_batch_detect_dominant_language_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct BatchDetectEntities {
_private: (),
}
impl BatchDetectEntities {
pub fn builder() -> crate::input::batch_detect_entities_input::Builder {
crate::input::batch_detect_entities_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for BatchDetectEntities {
type Output = std::result::Result<
crate::output::BatchDetectEntitiesOutput,
crate::error::BatchDetectEntitiesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_batch_detect_entities_error(response)
} else {
crate::operation_deser::parse_batch_detect_entities_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct BatchDetectKeyPhrases {
_private: (),
}
impl BatchDetectKeyPhrases {
pub fn builder() -> crate::input::batch_detect_key_phrases_input::Builder {
crate::input::batch_detect_key_phrases_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for BatchDetectKeyPhrases {
type Output = std::result::Result<
crate::output::BatchDetectKeyPhrasesOutput,
crate::error::BatchDetectKeyPhrasesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_batch_detect_key_phrases_error(response)
} else {
crate::operation_deser::parse_batch_detect_key_phrases_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct BatchDetectSentiment {
_private: (),
}
impl BatchDetectSentiment {
pub fn builder() -> crate::input::batch_detect_sentiment_input::Builder {
crate::input::batch_detect_sentiment_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for BatchDetectSentiment {
type Output = std::result::Result<
crate::output::BatchDetectSentimentOutput,
crate::error::BatchDetectSentimentError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_batch_detect_sentiment_error(response)
} else {
crate::operation_deser::parse_batch_detect_sentiment_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct BatchDetectSyntax {
_private: (),
}
impl BatchDetectSyntax {
pub fn builder() -> crate::input::batch_detect_syntax_input::Builder {
crate::input::batch_detect_syntax_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for BatchDetectSyntax {
type Output = std::result::Result<
crate::output::BatchDetectSyntaxOutput,
crate::error::BatchDetectSyntaxError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_batch_detect_syntax_error(response)
} else {
crate::operation_deser::parse_batch_detect_syntax_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct BatchDetectTargetedSentiment {
_private: (),
}
impl BatchDetectTargetedSentiment {
pub fn builder() -> crate::input::batch_detect_targeted_sentiment_input::Builder {
crate::input::batch_detect_targeted_sentiment_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for BatchDetectTargetedSentiment {
type Output = std::result::Result<
crate::output::BatchDetectTargetedSentimentOutput,
crate::error::BatchDetectTargetedSentimentError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_batch_detect_targeted_sentiment_error(response)
} else {
crate::operation_deser::parse_batch_detect_targeted_sentiment_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ClassifyDocument {
_private: (),
}
impl ClassifyDocument {
pub fn builder() -> crate::input::classify_document_input::Builder {
crate::input::classify_document_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ClassifyDocument {
type Output = std::result::Result<
crate::output::ClassifyDocumentOutput,
crate::error::ClassifyDocumentError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_classify_document_error(response)
} else {
crate::operation_deser::parse_classify_document_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ContainsPiiEntities {
_private: (),
}
impl ContainsPiiEntities {
pub fn builder() -> crate::input::contains_pii_entities_input::Builder {
crate::input::contains_pii_entities_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ContainsPiiEntities {
type Output = std::result::Result<
crate::output::ContainsPiiEntitiesOutput,
crate::error::ContainsPiiEntitiesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_contains_pii_entities_error(response)
} else {
crate::operation_deser::parse_contains_pii_entities_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateDocumentClassifier {
_private: (),
}
impl CreateDocumentClassifier {
pub fn builder() -> crate::input::create_document_classifier_input::Builder {
crate::input::create_document_classifier_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateDocumentClassifier {
type Output = std::result::Result<
crate::output::CreateDocumentClassifierOutput,
crate::error::CreateDocumentClassifierError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_create_document_classifier_error(response)
} else {
crate::operation_deser::parse_create_document_classifier_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateEndpoint {
_private: (),
}
impl CreateEndpoint {
pub fn builder() -> crate::input::create_endpoint_input::Builder {
crate::input::create_endpoint_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateEndpoint {
type Output =
std::result::Result<crate::output::CreateEndpointOutput, crate::error::CreateEndpointError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_create_endpoint_error(response)
} else {
crate::operation_deser::parse_create_endpoint_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateEntityRecognizer {
_private: (),
}
impl CreateEntityRecognizer {
pub fn builder() -> crate::input::create_entity_recognizer_input::Builder {
crate::input::create_entity_recognizer_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateEntityRecognizer {
type Output = std::result::Result<
crate::output::CreateEntityRecognizerOutput,
crate::error::CreateEntityRecognizerError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_create_entity_recognizer_error(response)
} else {
crate::operation_deser::parse_create_entity_recognizer_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteDocumentClassifier {
_private: (),
}
impl DeleteDocumentClassifier {
pub fn builder() -> crate::input::delete_document_classifier_input::Builder {
crate::input::delete_document_classifier_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteDocumentClassifier {
type Output = std::result::Result<
crate::output::DeleteDocumentClassifierOutput,
crate::error::DeleteDocumentClassifierError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_delete_document_classifier_error(response)
} else {
crate::operation_deser::parse_delete_document_classifier_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteEndpoint {
_private: (),
}
impl DeleteEndpoint {
pub fn builder() -> crate::input::delete_endpoint_input::Builder {
crate::input::delete_endpoint_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteEndpoint {
type Output =
std::result::Result<crate::output::DeleteEndpointOutput, crate::error::DeleteEndpointError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_delete_endpoint_error(response)
} else {
crate::operation_deser::parse_delete_endpoint_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteEntityRecognizer {
_private: (),
}
impl DeleteEntityRecognizer {
pub fn builder() -> crate::input::delete_entity_recognizer_input::Builder {
crate::input::delete_entity_recognizer_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteEntityRecognizer {
type Output = std::result::Result<
crate::output::DeleteEntityRecognizerOutput,
crate::error::DeleteEntityRecognizerError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_delete_entity_recognizer_error(response)
} else {
crate::operation_deser::parse_delete_entity_recognizer_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteResourcePolicy {
_private: (),
}
impl DeleteResourcePolicy {
pub fn builder() -> crate::input::delete_resource_policy_input::Builder {
crate::input::delete_resource_policy_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteResourcePolicy {
type Output = std::result::Result<
crate::output::DeleteResourcePolicyOutput,
crate::error::DeleteResourcePolicyError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_delete_resource_policy_error(response)
} else {
crate::operation_deser::parse_delete_resource_policy_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeDocumentClassificationJob {
_private: (),
}
impl DescribeDocumentClassificationJob {
pub fn builder() -> crate::input::describe_document_classification_job_input::Builder {
crate::input::describe_document_classification_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeDocumentClassificationJob {
type Output = std::result::Result<
crate::output::DescribeDocumentClassificationJobOutput,
crate::error::DescribeDocumentClassificationJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_document_classification_job_error(response)
} else {
crate::operation_deser::parse_describe_document_classification_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeDocumentClassifier {
_private: (),
}
impl DescribeDocumentClassifier {
pub fn builder() -> crate::input::describe_document_classifier_input::Builder {
crate::input::describe_document_classifier_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeDocumentClassifier {
type Output = std::result::Result<
crate::output::DescribeDocumentClassifierOutput,
crate::error::DescribeDocumentClassifierError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_document_classifier_error(response)
} else {
crate::operation_deser::parse_describe_document_classifier_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeDominantLanguageDetectionJob {
_private: (),
}
impl DescribeDominantLanguageDetectionJob {
pub fn builder() -> crate::input::describe_dominant_language_detection_job_input::Builder {
crate::input::describe_dominant_language_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeDominantLanguageDetectionJob {
type Output = std::result::Result<
crate::output::DescribeDominantLanguageDetectionJobOutput,
crate::error::DescribeDominantLanguageDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_dominant_language_detection_job_error(response)
} else {
crate::operation_deser::parse_describe_dominant_language_detection_job_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeEndpoint {
_private: (),
}
impl DescribeEndpoint {
pub fn builder() -> crate::input::describe_endpoint_input::Builder {
crate::input::describe_endpoint_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeEndpoint {
type Output = std::result::Result<
crate::output::DescribeEndpointOutput,
crate::error::DescribeEndpointError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_endpoint_error(response)
} else {
crate::operation_deser::parse_describe_endpoint_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeEntitiesDetectionJob {
_private: (),
}
impl DescribeEntitiesDetectionJob {
pub fn builder() -> crate::input::describe_entities_detection_job_input::Builder {
crate::input::describe_entities_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeEntitiesDetectionJob {
type Output = std::result::Result<
crate::output::DescribeEntitiesDetectionJobOutput,
crate::error::DescribeEntitiesDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_entities_detection_job_error(response)
} else {
crate::operation_deser::parse_describe_entities_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeEntityRecognizer {
_private: (),
}
impl DescribeEntityRecognizer {
pub fn builder() -> crate::input::describe_entity_recognizer_input::Builder {
crate::input::describe_entity_recognizer_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeEntityRecognizer {
type Output = std::result::Result<
crate::output::DescribeEntityRecognizerOutput,
crate::error::DescribeEntityRecognizerError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_entity_recognizer_error(response)
} else {
crate::operation_deser::parse_describe_entity_recognizer_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeEventsDetectionJob {
_private: (),
}
impl DescribeEventsDetectionJob {
pub fn builder() -> crate::input::describe_events_detection_job_input::Builder {
crate::input::describe_events_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeEventsDetectionJob {
type Output = std::result::Result<
crate::output::DescribeEventsDetectionJobOutput,
crate::error::DescribeEventsDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_events_detection_job_error(response)
} else {
crate::operation_deser::parse_describe_events_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeKeyPhrasesDetectionJob {
_private: (),
}
impl DescribeKeyPhrasesDetectionJob {
pub fn builder() -> crate::input::describe_key_phrases_detection_job_input::Builder {
crate::input::describe_key_phrases_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeKeyPhrasesDetectionJob {
type Output = std::result::Result<
crate::output::DescribeKeyPhrasesDetectionJobOutput,
crate::error::DescribeKeyPhrasesDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_key_phrases_detection_job_error(response)
} else {
crate::operation_deser::parse_describe_key_phrases_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribePiiEntitiesDetectionJob {
_private: (),
}
impl DescribePiiEntitiesDetectionJob {
pub fn builder() -> crate::input::describe_pii_entities_detection_job_input::Builder {
crate::input::describe_pii_entities_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribePiiEntitiesDetectionJob {
type Output = std::result::Result<
crate::output::DescribePiiEntitiesDetectionJobOutput,
crate::error::DescribePiiEntitiesDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_pii_entities_detection_job_error(response)
} else {
crate::operation_deser::parse_describe_pii_entities_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeResourcePolicy {
_private: (),
}
impl DescribeResourcePolicy {
pub fn builder() -> crate::input::describe_resource_policy_input::Builder {
crate::input::describe_resource_policy_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeResourcePolicy {
type Output = std::result::Result<
crate::output::DescribeResourcePolicyOutput,
crate::error::DescribeResourcePolicyError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_resource_policy_error(response)
} else {
crate::operation_deser::parse_describe_resource_policy_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeSentimentDetectionJob {
_private: (),
}
impl DescribeSentimentDetectionJob {
pub fn builder() -> crate::input::describe_sentiment_detection_job_input::Builder {
crate::input::describe_sentiment_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeSentimentDetectionJob {
type Output = std::result::Result<
crate::output::DescribeSentimentDetectionJobOutput,
crate::error::DescribeSentimentDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_sentiment_detection_job_error(response)
} else {
crate::operation_deser::parse_describe_sentiment_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeTargetedSentimentDetectionJob {
_private: (),
}
impl DescribeTargetedSentimentDetectionJob {
pub fn builder() -> crate::input::describe_targeted_sentiment_detection_job_input::Builder {
crate::input::describe_targeted_sentiment_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeTargetedSentimentDetectionJob {
type Output = std::result::Result<
crate::output::DescribeTargetedSentimentDetectionJobOutput,
crate::error::DescribeTargetedSentimentDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_targeted_sentiment_detection_job_error(response)
} else {
crate::operation_deser::parse_describe_targeted_sentiment_detection_job_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeTopicsDetectionJob {
_private: (),
}
impl DescribeTopicsDetectionJob {
pub fn builder() -> crate::input::describe_topics_detection_job_input::Builder {
crate::input::describe_topics_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeTopicsDetectionJob {
type Output = std::result::Result<
crate::output::DescribeTopicsDetectionJobOutput,
crate::error::DescribeTopicsDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_topics_detection_job_error(response)
} else {
crate::operation_deser::parse_describe_topics_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DetectDominantLanguage {
_private: (),
}
impl DetectDominantLanguage {
pub fn builder() -> crate::input::detect_dominant_language_input::Builder {
crate::input::detect_dominant_language_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DetectDominantLanguage {
type Output = std::result::Result<
crate::output::DetectDominantLanguageOutput,
crate::error::DetectDominantLanguageError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_detect_dominant_language_error(response)
} else {
crate::operation_deser::parse_detect_dominant_language_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DetectEntities {
_private: (),
}
impl DetectEntities {
pub fn builder() -> crate::input::detect_entities_input::Builder {
crate::input::detect_entities_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DetectEntities {
type Output =
std::result::Result<crate::output::DetectEntitiesOutput, crate::error::DetectEntitiesError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_detect_entities_error(response)
} else {
crate::operation_deser::parse_detect_entities_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DetectKeyPhrases {
_private: (),
}
impl DetectKeyPhrases {
pub fn builder() -> crate::input::detect_key_phrases_input::Builder {
crate::input::detect_key_phrases_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DetectKeyPhrases {
type Output = std::result::Result<
crate::output::DetectKeyPhrasesOutput,
crate::error::DetectKeyPhrasesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_detect_key_phrases_error(response)
} else {
crate::operation_deser::parse_detect_key_phrases_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DetectPiiEntities {
_private: (),
}
impl DetectPiiEntities {
pub fn builder() -> crate::input::detect_pii_entities_input::Builder {
crate::input::detect_pii_entities_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DetectPiiEntities {
type Output = std::result::Result<
crate::output::DetectPiiEntitiesOutput,
crate::error::DetectPiiEntitiesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_detect_pii_entities_error(response)
} else {
crate::operation_deser::parse_detect_pii_entities_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DetectSentiment {
_private: (),
}
impl DetectSentiment {
pub fn builder() -> crate::input::detect_sentiment_input::Builder {
crate::input::detect_sentiment_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DetectSentiment {
type Output = std::result::Result<
crate::output::DetectSentimentOutput,
crate::error::DetectSentimentError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_detect_sentiment_error(response)
} else {
crate::operation_deser::parse_detect_sentiment_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DetectSyntax {
_private: (),
}
impl DetectSyntax {
pub fn builder() -> crate::input::detect_syntax_input::Builder {
crate::input::detect_syntax_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DetectSyntax {
type Output =
std::result::Result<crate::output::DetectSyntaxOutput, crate::error::DetectSyntaxError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_detect_syntax_error(response)
} else {
crate::operation_deser::parse_detect_syntax_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DetectTargetedSentiment {
_private: (),
}
impl DetectTargetedSentiment {
pub fn builder() -> crate::input::detect_targeted_sentiment_input::Builder {
crate::input::detect_targeted_sentiment_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DetectTargetedSentiment {
type Output = std::result::Result<
crate::output::DetectTargetedSentimentOutput,
crate::error::DetectTargetedSentimentError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_detect_targeted_sentiment_error(response)
} else {
crate::operation_deser::parse_detect_targeted_sentiment_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ImportModel {
_private: (),
}
impl ImportModel {
pub fn builder() -> crate::input::import_model_input::Builder {
crate::input::import_model_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ImportModel {
type Output =
std::result::Result<crate::output::ImportModelOutput, crate::error::ImportModelError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_import_model_error(response)
} else {
crate::operation_deser::parse_import_model_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListDocumentClassificationJobs {
_private: (),
}
impl ListDocumentClassificationJobs {
pub fn builder() -> crate::input::list_document_classification_jobs_input::Builder {
crate::input::list_document_classification_jobs_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListDocumentClassificationJobs {
type Output = std::result::Result<
crate::output::ListDocumentClassificationJobsOutput,
crate::error::ListDocumentClassificationJobsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_document_classification_jobs_error(response)
} else {
crate::operation_deser::parse_list_document_classification_jobs_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListDocumentClassifiers {
_private: (),
}
impl ListDocumentClassifiers {
pub fn builder() -> crate::input::list_document_classifiers_input::Builder {
crate::input::list_document_classifiers_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListDocumentClassifiers {
type Output = std::result::Result<
crate::output::ListDocumentClassifiersOutput,
crate::error::ListDocumentClassifiersError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_document_classifiers_error(response)
} else {
crate::operation_deser::parse_list_document_classifiers_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListDocumentClassifierSummaries {
_private: (),
}
impl ListDocumentClassifierSummaries {
pub fn builder() -> crate::input::list_document_classifier_summaries_input::Builder {
crate::input::list_document_classifier_summaries_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListDocumentClassifierSummaries {
type Output = std::result::Result<
crate::output::ListDocumentClassifierSummariesOutput,
crate::error::ListDocumentClassifierSummariesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_document_classifier_summaries_error(response)
} else {
crate::operation_deser::parse_list_document_classifier_summaries_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListDominantLanguageDetectionJobs {
_private: (),
}
impl ListDominantLanguageDetectionJobs {
pub fn builder() -> crate::input::list_dominant_language_detection_jobs_input::Builder {
crate::input::list_dominant_language_detection_jobs_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListDominantLanguageDetectionJobs {
type Output = std::result::Result<
crate::output::ListDominantLanguageDetectionJobsOutput,
crate::error::ListDominantLanguageDetectionJobsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_dominant_language_detection_jobs_error(response)
} else {
crate::operation_deser::parse_list_dominant_language_detection_jobs_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListEndpoints {
_private: (),
}
impl ListEndpoints {
pub fn builder() -> crate::input::list_endpoints_input::Builder {
crate::input::list_endpoints_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListEndpoints {
type Output =
std::result::Result<crate::output::ListEndpointsOutput, crate::error::ListEndpointsError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_endpoints_error(response)
} else {
crate::operation_deser::parse_list_endpoints_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListEntitiesDetectionJobs {
_private: (),
}
impl ListEntitiesDetectionJobs {
pub fn builder() -> crate::input::list_entities_detection_jobs_input::Builder {
crate::input::list_entities_detection_jobs_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListEntitiesDetectionJobs {
type Output = std::result::Result<
crate::output::ListEntitiesDetectionJobsOutput,
crate::error::ListEntitiesDetectionJobsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_entities_detection_jobs_error(response)
} else {
crate::operation_deser::parse_list_entities_detection_jobs_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListEntityRecognizers {
_private: (),
}
impl ListEntityRecognizers {
pub fn builder() -> crate::input::list_entity_recognizers_input::Builder {
crate::input::list_entity_recognizers_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListEntityRecognizers {
type Output = std::result::Result<
crate::output::ListEntityRecognizersOutput,
crate::error::ListEntityRecognizersError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_entity_recognizers_error(response)
} else {
crate::operation_deser::parse_list_entity_recognizers_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListEntityRecognizerSummaries {
_private: (),
}
impl ListEntityRecognizerSummaries {
pub fn builder() -> crate::input::list_entity_recognizer_summaries_input::Builder {
crate::input::list_entity_recognizer_summaries_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListEntityRecognizerSummaries {
type Output = std::result::Result<
crate::output::ListEntityRecognizerSummariesOutput,
crate::error::ListEntityRecognizerSummariesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_entity_recognizer_summaries_error(response)
} else {
crate::operation_deser::parse_list_entity_recognizer_summaries_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListEventsDetectionJobs {
_private: (),
}
impl ListEventsDetectionJobs {
pub fn builder() -> crate::input::list_events_detection_jobs_input::Builder {
crate::input::list_events_detection_jobs_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListEventsDetectionJobs {
type Output = std::result::Result<
crate::output::ListEventsDetectionJobsOutput,
crate::error::ListEventsDetectionJobsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_events_detection_jobs_error(response)
} else {
crate::operation_deser::parse_list_events_detection_jobs_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListKeyPhrasesDetectionJobs {
_private: (),
}
impl ListKeyPhrasesDetectionJobs {
pub fn builder() -> crate::input::list_key_phrases_detection_jobs_input::Builder {
crate::input::list_key_phrases_detection_jobs_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListKeyPhrasesDetectionJobs {
type Output = std::result::Result<
crate::output::ListKeyPhrasesDetectionJobsOutput,
crate::error::ListKeyPhrasesDetectionJobsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_key_phrases_detection_jobs_error(response)
} else {
crate::operation_deser::parse_list_key_phrases_detection_jobs_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListPiiEntitiesDetectionJobs {
_private: (),
}
impl ListPiiEntitiesDetectionJobs {
pub fn builder() -> crate::input::list_pii_entities_detection_jobs_input::Builder {
crate::input::list_pii_entities_detection_jobs_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListPiiEntitiesDetectionJobs {
type Output = std::result::Result<
crate::output::ListPiiEntitiesDetectionJobsOutput,
crate::error::ListPiiEntitiesDetectionJobsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_pii_entities_detection_jobs_error(response)
} else {
crate::operation_deser::parse_list_pii_entities_detection_jobs_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListSentimentDetectionJobs {
_private: (),
}
impl ListSentimentDetectionJobs {
pub fn builder() -> crate::input::list_sentiment_detection_jobs_input::Builder {
crate::input::list_sentiment_detection_jobs_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListSentimentDetectionJobs {
type Output = std::result::Result<
crate::output::ListSentimentDetectionJobsOutput,
crate::error::ListSentimentDetectionJobsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_sentiment_detection_jobs_error(response)
} else {
crate::operation_deser::parse_list_sentiment_detection_jobs_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListTagsForResource {
_private: (),
}
impl ListTagsForResource {
pub fn builder() -> crate::input::list_tags_for_resource_input::Builder {
crate::input::list_tags_for_resource_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListTagsForResource {
type Output = std::result::Result<
crate::output::ListTagsForResourceOutput,
crate::error::ListTagsForResourceError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_tags_for_resource_error(response)
} else {
crate::operation_deser::parse_list_tags_for_resource_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListTargetedSentimentDetectionJobs {
_private: (),
}
impl ListTargetedSentimentDetectionJobs {
pub fn builder() -> crate::input::list_targeted_sentiment_detection_jobs_input::Builder {
crate::input::list_targeted_sentiment_detection_jobs_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListTargetedSentimentDetectionJobs {
type Output = std::result::Result<
crate::output::ListTargetedSentimentDetectionJobsOutput,
crate::error::ListTargetedSentimentDetectionJobsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_targeted_sentiment_detection_jobs_error(response)
} else {
crate::operation_deser::parse_list_targeted_sentiment_detection_jobs_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListTopicsDetectionJobs {
_private: (),
}
impl ListTopicsDetectionJobs {
pub fn builder() -> crate::input::list_topics_detection_jobs_input::Builder {
crate::input::list_topics_detection_jobs_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListTopicsDetectionJobs {
type Output = std::result::Result<
crate::output::ListTopicsDetectionJobsOutput,
crate::error::ListTopicsDetectionJobsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_topics_detection_jobs_error(response)
} else {
crate::operation_deser::parse_list_topics_detection_jobs_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct PutResourcePolicy {
_private: (),
}
impl PutResourcePolicy {
pub fn builder() -> crate::input::put_resource_policy_input::Builder {
crate::input::put_resource_policy_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for PutResourcePolicy {
type Output = std::result::Result<
crate::output::PutResourcePolicyOutput,
crate::error::PutResourcePolicyError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_put_resource_policy_error(response)
} else {
crate::operation_deser::parse_put_resource_policy_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StartDocumentClassificationJob {
_private: (),
}
impl StartDocumentClassificationJob {
pub fn builder() -> crate::input::start_document_classification_job_input::Builder {
crate::input::start_document_classification_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartDocumentClassificationJob {
type Output = std::result::Result<
crate::output::StartDocumentClassificationJobOutput,
crate::error::StartDocumentClassificationJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_start_document_classification_job_error(response)
} else {
crate::operation_deser::parse_start_document_classification_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StartDominantLanguageDetectionJob {
_private: (),
}
impl StartDominantLanguageDetectionJob {
pub fn builder() -> crate::input::start_dominant_language_detection_job_input::Builder {
crate::input::start_dominant_language_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartDominantLanguageDetectionJob {
type Output = std::result::Result<
crate::output::StartDominantLanguageDetectionJobOutput,
crate::error::StartDominantLanguageDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_start_dominant_language_detection_job_error(response)
} else {
crate::operation_deser::parse_start_dominant_language_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StartEntitiesDetectionJob {
_private: (),
}
impl StartEntitiesDetectionJob {
pub fn builder() -> crate::input::start_entities_detection_job_input::Builder {
crate::input::start_entities_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartEntitiesDetectionJob {
type Output = std::result::Result<
crate::output::StartEntitiesDetectionJobOutput,
crate::error::StartEntitiesDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_start_entities_detection_job_error(response)
} else {
crate::operation_deser::parse_start_entities_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StartEventsDetectionJob {
_private: (),
}
impl StartEventsDetectionJob {
pub fn builder() -> crate::input::start_events_detection_job_input::Builder {
crate::input::start_events_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartEventsDetectionJob {
type Output = std::result::Result<
crate::output::StartEventsDetectionJobOutput,
crate::error::StartEventsDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_start_events_detection_job_error(response)
} else {
crate::operation_deser::parse_start_events_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StartKeyPhrasesDetectionJob {
_private: (),
}
impl StartKeyPhrasesDetectionJob {
pub fn builder() -> crate::input::start_key_phrases_detection_job_input::Builder {
crate::input::start_key_phrases_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartKeyPhrasesDetectionJob {
type Output = std::result::Result<
crate::output::StartKeyPhrasesDetectionJobOutput,
crate::error::StartKeyPhrasesDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_start_key_phrases_detection_job_error(response)
} else {
crate::operation_deser::parse_start_key_phrases_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StartPiiEntitiesDetectionJob {
_private: (),
}
impl StartPiiEntitiesDetectionJob {
pub fn builder() -> crate::input::start_pii_entities_detection_job_input::Builder {
crate::input::start_pii_entities_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartPiiEntitiesDetectionJob {
type Output = std::result::Result<
crate::output::StartPiiEntitiesDetectionJobOutput,
crate::error::StartPiiEntitiesDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_start_pii_entities_detection_job_error(response)
} else {
crate::operation_deser::parse_start_pii_entities_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StartSentimentDetectionJob {
_private: (),
}
impl StartSentimentDetectionJob {
pub fn builder() -> crate::input::start_sentiment_detection_job_input::Builder {
crate::input::start_sentiment_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartSentimentDetectionJob {
type Output = std::result::Result<
crate::output::StartSentimentDetectionJobOutput,
crate::error::StartSentimentDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_start_sentiment_detection_job_error(response)
} else {
crate::operation_deser::parse_start_sentiment_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StartTargetedSentimentDetectionJob {
_private: (),
}
impl StartTargetedSentimentDetectionJob {
pub fn builder() -> crate::input::start_targeted_sentiment_detection_job_input::Builder {
crate::input::start_targeted_sentiment_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartTargetedSentimentDetectionJob {
type Output = std::result::Result<
crate::output::StartTargetedSentimentDetectionJobOutput,
crate::error::StartTargetedSentimentDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_start_targeted_sentiment_detection_job_error(response)
} else {
crate::operation_deser::parse_start_targeted_sentiment_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StartTopicsDetectionJob {
_private: (),
}
impl StartTopicsDetectionJob {
pub fn builder() -> crate::input::start_topics_detection_job_input::Builder {
crate::input::start_topics_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartTopicsDetectionJob {
type Output = std::result::Result<
crate::output::StartTopicsDetectionJobOutput,
crate::error::StartTopicsDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_start_topics_detection_job_error(response)
} else {
crate::operation_deser::parse_start_topics_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StopDominantLanguageDetectionJob {
_private: (),
}
impl StopDominantLanguageDetectionJob {
pub fn builder() -> crate::input::stop_dominant_language_detection_job_input::Builder {
crate::input::stop_dominant_language_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StopDominantLanguageDetectionJob {
type Output = std::result::Result<
crate::output::StopDominantLanguageDetectionJobOutput,
crate::error::StopDominantLanguageDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_stop_dominant_language_detection_job_error(response)
} else {
crate::operation_deser::parse_stop_dominant_language_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StopEntitiesDetectionJob {
_private: (),
}
impl StopEntitiesDetectionJob {
pub fn builder() -> crate::input::stop_entities_detection_job_input::Builder {
crate::input::stop_entities_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StopEntitiesDetectionJob {
type Output = std::result::Result<
crate::output::StopEntitiesDetectionJobOutput,
crate::error::StopEntitiesDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_stop_entities_detection_job_error(response)
} else {
crate::operation_deser::parse_stop_entities_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StopEventsDetectionJob {
_private: (),
}
impl StopEventsDetectionJob {
pub fn builder() -> crate::input::stop_events_detection_job_input::Builder {
crate::input::stop_events_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StopEventsDetectionJob {
type Output = std::result::Result<
crate::output::StopEventsDetectionJobOutput,
crate::error::StopEventsDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_stop_events_detection_job_error(response)
} else {
crate::operation_deser::parse_stop_events_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StopKeyPhrasesDetectionJob {
_private: (),
}
impl StopKeyPhrasesDetectionJob {
pub fn builder() -> crate::input::stop_key_phrases_detection_job_input::Builder {
crate::input::stop_key_phrases_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StopKeyPhrasesDetectionJob {
type Output = std::result::Result<
crate::output::StopKeyPhrasesDetectionJobOutput,
crate::error::StopKeyPhrasesDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_stop_key_phrases_detection_job_error(response)
} else {
crate::operation_deser::parse_stop_key_phrases_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StopPiiEntitiesDetectionJob {
_private: (),
}
impl StopPiiEntitiesDetectionJob {
pub fn builder() -> crate::input::stop_pii_entities_detection_job_input::Builder {
crate::input::stop_pii_entities_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StopPiiEntitiesDetectionJob {
type Output = std::result::Result<
crate::output::StopPiiEntitiesDetectionJobOutput,
crate::error::StopPiiEntitiesDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_stop_pii_entities_detection_job_error(response)
} else {
crate::operation_deser::parse_stop_pii_entities_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StopSentimentDetectionJob {
_private: (),
}
impl StopSentimentDetectionJob {
pub fn builder() -> crate::input::stop_sentiment_detection_job_input::Builder {
crate::input::stop_sentiment_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StopSentimentDetectionJob {
type Output = std::result::Result<
crate::output::StopSentimentDetectionJobOutput,
crate::error::StopSentimentDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_stop_sentiment_detection_job_error(response)
} else {
crate::operation_deser::parse_stop_sentiment_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StopTargetedSentimentDetectionJob {
_private: (),
}
impl StopTargetedSentimentDetectionJob {
pub fn builder() -> crate::input::stop_targeted_sentiment_detection_job_input::Builder {
crate::input::stop_targeted_sentiment_detection_job_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StopTargetedSentimentDetectionJob {
type Output = std::result::Result<
crate::output::StopTargetedSentimentDetectionJobOutput,
crate::error::StopTargetedSentimentDetectionJobError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_stop_targeted_sentiment_detection_job_error(response)
} else {
crate::operation_deser::parse_stop_targeted_sentiment_detection_job_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StopTrainingDocumentClassifier {
_private: (),
}
impl StopTrainingDocumentClassifier {
pub fn builder() -> crate::input::stop_training_document_classifier_input::Builder {
crate::input::stop_training_document_classifier_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StopTrainingDocumentClassifier {
type Output = std::result::Result<
crate::output::StopTrainingDocumentClassifierOutput,
crate::error::StopTrainingDocumentClassifierError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_stop_training_document_classifier_error(response)
} else {
crate::operation_deser::parse_stop_training_document_classifier_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StopTrainingEntityRecognizer {
_private: (),
}
impl StopTrainingEntityRecognizer {
pub fn builder() -> crate::input::stop_training_entity_recognizer_input::Builder {
crate::input::stop_training_entity_recognizer_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StopTrainingEntityRecognizer {
type Output = std::result::Result<
crate::output::StopTrainingEntityRecognizerOutput,
crate::error::StopTrainingEntityRecognizerError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_stop_training_entity_recognizer_error(response)
} else {
crate::operation_deser::parse_stop_training_entity_recognizer_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct TagResource {
_private: (),
}
impl TagResource {
pub fn builder() -> crate::input::tag_resource_input::Builder {
crate::input::tag_resource_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for TagResource {
type Output =
std::result::Result<crate::output::TagResourceOutput, crate::error::TagResourceError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_tag_resource_error(response)
} else {
crate::operation_deser::parse_tag_resource_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UntagResource {
_private: (),
}
impl UntagResource {
pub fn builder() -> crate::input::untag_resource_input::Builder {
crate::input::untag_resource_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UntagResource {
type Output =
std::result::Result<crate::output::UntagResourceOutput, crate::error::UntagResourceError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_untag_resource_error(response)
} else {
crate::operation_deser::parse_untag_resource_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateEndpoint {
_private: (),
}
impl UpdateEndpoint {
pub fn builder() -> crate::input::update_endpoint_input::Builder {
crate::input::update_endpoint_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateEndpoint {
type Output =
std::result::Result<crate::output::UpdateEndpointOutput, crate::error::UpdateEndpointError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_endpoint_error(response)
} else {
crate::operation_deser::parse_update_endpoint_response(response)
}
}
}
pub mod customize;