From 4767da16f40544947b96aec87cfc5e7cd0fbcdc3 Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Fri, 15 Nov 2024 19:12:11 +0000 Subject: [PATCH] Remove non-functional enum variants for FleetCapacityReservationUsageStrategy This release allows AWS IoT Core users to enrich MQTT messages with propagating attributes, to associate a thing to a connection, and to enable Online Certificate Status Protocol (OCSP) stapling for TLS X.509 server certificates through private endpoints. Added Amazon Connect Outbound Campaigns V2 SDK. Adds support for adding related Entity information to metrics ingested through PutMetricData. Doc-only updates and enhancements related to creating DataSync tasks and describing task executions. Route 53 Resolver DNS Firewall Advanced Rules allows you to monitor and block suspicious DNS traffic based on anomalies detected in the queries, such as DNS tunneling and Domain Generation Algorithms (DGAs). Fixes PutLexicon usage example. Use rule overrides to always allow or always block messages to specific phone numbers. Use message feedback to monitor if a customer interacts with your message. You can now purchase AWS Outposts rack or server capacity for a 5-year term with one of the following payment options: All Upfront, Partial Upfront, and No Upfront. --- VERSION | 2 +- .../CMakeLists.txt | 76 + .../ConnectCampaignsV2Client.h | 918 +++++++ .../ConnectCampaignsV2EndpointProvider.h | 61 + .../ConnectCampaignsV2EndpointRules.h | 23 + .../ConnectCampaignsV2ErrorMarshaller.h | 23 + .../ConnectCampaignsV2Errors.h | 76 + .../ConnectCampaignsV2Request.h | 46 + .../ConnectCampaignsV2ServiceClientModel.h | 216 ++ .../ConnectCampaignsV2_EXPORTS.h | 32 + .../model/AccessDeniedException.h | 75 + .../model/AgentlessConfig.h | 41 + .../model/AnswerMachineDetectionConfig.h | 68 + .../aws/connectcampaignsv2/model/Campaign.h | 210 ++ .../model/CampaignDeletionPolicy.h | 31 + .../model/CampaignFilters.h | 57 + .../connectcampaignsv2/model/CampaignState.h | 35 + .../model/CampaignSummary.h | 150 ++ .../connectcampaignsv2/model/ChannelSubtype.h | 32 + .../model/ChannelSubtypeConfig.h | 85 + .../model/ChannelSubtypeParameters.h | 86 + .../model/CommunicationLimit.h | 84 + .../model/CommunicationLimitTimeUnit.h | 30 + .../model/CommunicationLimits.h | 60 + .../model/CommunicationLimitsConfig.h | 57 + .../model/CommunicationLimitsConfigType.h | 30 + .../model/CommunicationTimeConfig.h | 97 + .../model/CommunicationTimeConfigType.h | 32 + .../model/ConflictException.h | 75 + .../model/CreateCampaignRequest.h | 178 ++ .../model/CreateCampaignResult.h | 102 + .../model/CustomerProfilesIntegrationConfig.h | 80 + .../CustomerProfilesIntegrationIdentifier.h | 59 + .../CustomerProfilesIntegrationSummary.h | 80 + .../aws/connectcampaignsv2/model/DayOfWeek.h | 36 + ...eleteCampaignChannelSubtypeConfigRequest.h | 78 + ...DeleteCampaignCommunicationLimitsRequest.h | 78 + .../DeleteCampaignCommunicationTimeRequest.h | 78 + .../model/DeleteCampaignRequest.h | 57 + .../DeleteConnectInstanceConfigRequest.h | 78 + .../DeleteConnectInstanceIntegrationRequest.h | 72 + .../DeleteInstanceOnboardingJobRequest.h | 58 + .../model/DescribeCampaignRequest.h | 57 + .../model/DescribeCampaignResult.h | 69 + .../model/EmailChannelSubtypeConfig.h | 82 + .../model/EmailChannelSubtypeParameters.h | 110 + .../model/EmailOutboundConfig.h | 89 + .../model/EmailOutboundMode.h | 57 + .../model/EncryptionConfig.h | 87 + .../connectcampaignsv2/model/EncryptionType.h | 30 + .../aws/connectcampaignsv2/model/EventType.h | 33 + .../model/FailedCampaignStateResponse.h | 73 + .../connectcampaignsv2/model/FailedRequest.h | 89 + .../connectcampaignsv2/model/FailureCode.h | 33 + .../model/GetCampaignStateBatchFailureCode.h | 31 + .../model/GetCampaignStateBatchRequest.h | 59 + .../model/GetCampaignStateBatchResult.h | 86 + .../model/GetCampaignStateRequest.h | 57 + .../model/GetCampaignStateResult.h | 69 + .../model/GetConnectInstanceConfigRequest.h | 57 + .../model/GetConnectInstanceConfigResult.h | 69 + .../GetInstanceOnboardingJobStatusRequest.h | 58 + .../GetInstanceOnboardingJobStatusResult.h | 70 + .../connectcampaignsv2/model/InstanceConfig.h | 88 + .../model/InstanceIdFilter.h | 73 + .../model/InstanceIdFilterOperator.h | 30 + .../model/InstanceOnboardingJobFailureCode.h | 35 + .../model/InstanceOnboardingJobStatus.h | 87 + .../model/InstanceOnboardingJobStatusCode.h | 32 + .../model/IntegrationConfig.h | 71 + .../model/IntegrationIdentifier.h | 71 + .../model/IntegrationSummary.h | 71 + .../model/InternalServerException.h | 75 + .../model/InvalidCampaignStateException.h | 89 + .../model/InvalidStateException.h | 75 + .../model/ListCampaignsRequest.h | 82 + .../model/ListCampaignsResult.h | 85 + .../ListConnectInstanceIntegrationsRequest.h | 90 + .../ListConnectInstanceIntegrationsResult.h | 86 + .../model/ListTagsForResourceRequest.h | 57 + .../model/ListTagsForResourceResult.h | 76 + .../model/LocalTimeZoneConfig.h | 76 + .../model/LocalTimeZoneDetectionType.h | 31 + .../aws/connectcampaignsv2/model/OpenHours.h | 64 + .../model/OutboundRequest.h | 87 + .../model/PauseCampaignRequest.h | 57 + .../model/PredictiveConfig.h | 53 + .../model/ProgressiveConfig.h | 53 + .../PutConnectInstanceIntegrationRequest.h | 72 + .../model/PutOutboundRequestBatchRequest.h | 74 + .../model/PutOutboundRequestBatchResult.h | 86 + .../model/QConnectIntegrationConfig.h | 59 + .../model/QConnectIntegrationIdentifier.h | 59 + .../model/QConnectIntegrationSummary.h | 59 + .../model/ResourceNotFoundException.h | 74 + .../model/RestrictedPeriod.h | 89 + .../model/RestrictedPeriods.h | 60 + .../model/ResumeCampaignRequest.h | 57 + .../aws/connectcampaignsv2/model/Schedule.h | 86 + .../model/ServiceQuotaExceededException.h | 75 + .../model/SmsChannelSubtypeConfig.h | 82 + .../model/SmsChannelSubtypeParameters.h | 110 + .../model/SmsOutboundConfig.h | 74 + .../model/SmsOutboundMode.h | 57 + .../aws/connectcampaignsv2/model/Source.h | 59 + .../model/StartCampaignRequest.h | 57 + .../model/StartInstanceOnboardingJobRequest.h | 71 + .../model/StartInstanceOnboardingJobResult.h | 70 + .../model/StopCampaignRequest.h | 57 + .../model/SuccessfulCampaignStateResponse.h | 73 + .../model/SuccessfulRequest.h | 75 + .../model/TagResourceRequest.h | 78 + .../model/TelephonyChannelSubtypeConfig.h | 98 + .../model/TelephonyChannelSubtypeParameters.h | 109 + .../model/TelephonyOutboundConfig.h | 88 + .../model/TelephonyOutboundMode.h | 85 + .../model/ThrottlingException.h | 75 + .../aws/connectcampaignsv2/model/TimeRange.h | 74 + .../aws/connectcampaignsv2/model/TimeWindow.h | 71 + .../model/UntagResourceRequest.h | 80 + ...pdateCampaignChannelSubtypeConfigRequest.h | 72 + ...UpdateCampaignCommunicationLimitsRequest.h | 72 + .../UpdateCampaignCommunicationTimeRequest.h | 72 + .../UpdateCampaignFlowAssociationRequest.h | 73 + .../model/UpdateCampaignNameRequest.h | 72 + .../model/UpdateCampaignScheduleRequest.h | 71 + .../model/UpdateCampaignSourceRequest.h | 71 + .../model/ValidationException.h | 75 + .../source/ConnectCampaignsV2Client.cpp | 1280 +++++++++ .../ConnectCampaignsV2EndpointProvider.cpp | 16 + .../ConnectCampaignsV2EndpointRules.cpp | 177 ++ .../ConnectCampaignsV2ErrorMarshaller.cpp | 22 + .../source/ConnectCampaignsV2Errors.cpp | 121 + .../source/ConnectCampaignsV2Request.cpp | 14 + .../source/model/AccessDeniedException.cpp | 61 + .../source/model/AgentlessConfig.cpp | 45 + .../model/AnswerMachineDetectionConfig.cpp | 75 + .../source/model/Campaign.cpp | 207 ++ .../source/model/CampaignDeletionPolicy.cpp | 72 + .../source/model/CampaignFilters.cpp | 59 + .../source/model/CampaignState.cpp | 100 + .../source/model/CampaignSummary.cpp | 151 ++ .../source/model/ChannelSubtype.cpp | 79 + .../source/model/ChannelSubtypeConfig.cpp | 87 + .../source/model/ChannelSubtypeParameters.cpp | 87 + .../source/model/CommunicationLimit.cpp | 89 + .../model/CommunicationLimitTimeUnit.cpp | 65 + .../source/model/CommunicationLimits.cpp | 67 + .../model/CommunicationLimitsConfig.cpp | 59 + .../model/CommunicationLimitsConfigType.cpp | 65 + .../source/model/CommunicationTimeConfig.cpp | 101 + .../model/CommunicationTimeConfigType.cpp | 79 + .../source/model/ConflictException.cpp | 61 + .../source/model/CreateCampaignRequest.cpp | 96 + .../source/model/CreateCampaignResult.cpp | 63 + .../CustomerProfilesIntegrationConfig.cpp | 81 + .../CustomerProfilesIntegrationIdentifier.cpp | 59 + .../CustomerProfilesIntegrationSummary.cpp | 81 + .../source/model/DayOfWeek.cpp | 107 + ...eteCampaignChannelSubtypeConfigRequest.cpp | 43 + ...leteCampaignCommunicationLimitsRequest.cpp | 43 + ...DeleteCampaignCommunicationTimeRequest.cpp | 43 + .../source/model/DeleteCampaignRequest.cpp | 27 + .../DeleteConnectInstanceConfigRequest.cpp | 43 + ...eleteConnectInstanceIntegrationRequest.cpp | 36 + .../DeleteInstanceOnboardingJobRequest.cpp | 27 + .../source/model/DescribeCampaignRequest.cpp | 27 + .../source/model/DescribeCampaignResult.cpp | 48 + .../model/EmailChannelSubtypeConfig.cpp | 88 + .../model/EmailChannelSubtypeParameters.cpp | 109 + .../source/model/EmailOutboundConfig.cpp | 87 + .../source/model/EmailOutboundMode.cpp | 59 + .../source/model/EncryptionConfig.cpp | 88 + .../source/model/EncryptionType.cpp | 65 + .../source/model/EventType.cpp | 86 + .../model/FailedCampaignStateResponse.cpp | 73 + .../source/model/FailedRequest.cpp | 87 + .../source/model/FailureCode.cpp | 86 + .../GetCampaignStateBatchFailureCode.cpp | 72 + .../model/GetCampaignStateBatchRequest.cpp | 40 + .../model/GetCampaignStateBatchResult.cpp | 60 + .../source/model/GetCampaignStateRequest.cpp | 27 + .../source/model/GetCampaignStateResult.cpp | 50 + .../model/GetConnectInstanceConfigRequest.cpp | 27 + .../model/GetConnectInstanceConfigResult.cpp | 48 + .../GetInstanceOnboardingJobStatusRequest.cpp | 27 + .../GetInstanceOnboardingJobStatusResult.cpp | 48 + .../source/model/InstanceConfig.cpp | 87 + .../source/model/InstanceIdFilter.cpp | 73 + .../source/model/InstanceIdFilterOperator.cpp | 65 + .../InstanceOnboardingJobFailureCode.cpp | 100 + .../model/InstanceOnboardingJobStatus.cpp | 87 + .../model/InstanceOnboardingJobStatusCode.cpp | 79 + .../source/model/IntegrationConfig.cpp | 73 + .../source/model/IntegrationIdentifier.cpp | 73 + .../source/model/IntegrationSummary.cpp | 73 + .../source/model/InternalServerException.cpp | 61 + .../model/InvalidCampaignStateException.cpp | 75 + .../source/model/InvalidStateException.cpp | 61 + .../source/model/ListCampaignsRequest.cpp | 50 + .../source/model/ListCampaignsResult.cpp | 57 + ...ListConnectInstanceIntegrationsRequest.cpp | 51 + .../ListConnectInstanceIntegrationsResult.cpp | 57 + .../model/ListTagsForResourceRequest.cpp | 27 + .../model/ListTagsForResourceResult.cpp | 51 + .../source/model/LocalTimeZoneConfig.cpp | 81 + .../model/LocalTimeZoneDetectionType.cpp | 72 + .../source/model/OpenHours.cpp | 79 + .../source/model/OutboundRequest.cpp | 86 + .../source/model/PauseCampaignRequest.cpp | 27 + .../source/model/PredictiveConfig.cpp | 60 + .../source/model/ProgressiveConfig.cpp | 60 + .../PutConnectInstanceIntegrationRequest.cpp | 36 + .../model/PutOutboundRequestBatchRequest.cpp | 41 + .../model/PutOutboundRequestBatchResult.cpp | 60 + .../model/QConnectIntegrationConfig.cpp | 59 + .../model/QConnectIntegrationIdentifier.cpp | 59 + .../model/QConnectIntegrationSummary.cpp | 59 + .../model/ResourceNotFoundException.cpp | 61 + .../source/model/RestrictedPeriod.cpp | 87 + .../source/model/RestrictedPeriods.cpp | 67 + .../source/model/ResumeCampaignRequest.cpp | 27 + .../source/model/Schedule.cpp | 85 + .../model/ServiceQuotaExceededException.cpp | 61 + .../source/model/SmsChannelSubtypeConfig.cpp | 88 + .../model/SmsChannelSubtypeParameters.cpp | 109 + .../source/model/SmsOutboundConfig.cpp | 73 + .../source/model/SmsOutboundMode.cpp | 59 + .../source/model/Source.cpp | 59 + .../source/model/StartCampaignRequest.cpp | 27 + .../StartInstanceOnboardingJobRequest.cpp | 36 + .../StartInstanceOnboardingJobResult.cpp | 48 + .../source/model/StopCampaignRequest.cpp | 27 + .../model/SuccessfulCampaignStateResponse.cpp | 73 + .../source/model/SuccessfulRequest.cpp | 73 + .../source/model/TagResourceRequest.cpp | 41 + .../model/TelephonyChannelSubtypeConfig.cpp | 102 + .../TelephonyChannelSubtypeParameters.cpp | 109 + .../source/model/TelephonyOutboundConfig.cpp | 87 + .../source/model/TelephonyOutboundMode.cpp | 87 + .../source/model/ThrottlingException.cpp | 61 + .../source/model/TimeRange.cpp | 73 + .../source/model/TimeWindow.cpp | 73 + .../source/model/UntagResourceRequest.cpp | 45 + ...ateCampaignChannelSubtypeConfigRequest.cpp | 36 + ...dateCampaignCommunicationLimitsRequest.cpp | 36 + ...UpdateCampaignCommunicationTimeRequest.cpp | 36 + .../UpdateCampaignFlowAssociationRequest.cpp | 36 + .../model/UpdateCampaignNameRequest.cpp | 36 + .../model/UpdateCampaignScheduleRequest.cpp | 36 + .../model/UpdateCampaignSourceRequest.cpp | 36 + .../source/model/ValidationException.cpp | 61 + .../include/aws/datasync/DataSyncClient.h | 4 +- .../aws/datasync/model/CreateTaskRequest.h | 17 +- .../model/DescribeTaskExecutionResult.h | 40 +- .../model/TaskExecutionFilesListedDetail.h | 2 +- .../FleetCapacityReservationUsageStrategy.h | 4 +- .../FleetCapacityReservationUsageStrategy.cpp | 14 - .../include/aws/iot/IoTClient.h | 83 + .../include/aws/iot/IoTServiceClientModel.h | 15 + .../iot/model/AttachThingPrincipalRequest.h | 28 + .../aws/iot/model/DescribeThingTypeResult.h | 3 +- .../iot/model/ListPrincipalThingsV2Request.h | 121 + .../iot/model/ListPrincipalThingsV2Result.h | 86 + .../iot/model/ListThingPrincipalsV2Request.h | 118 + .../iot/model/ListThingPrincipalsV2Result.h | 86 + .../aws/iot/model/Mqtt5Configuration.h | 64 + .../aws/iot/model/PrincipalThingObject.h | 84 + .../aws/iot/model/PropagatingAttribute.h | 98 + .../aws/iot/model/ServerCertificateConfig.h | 56 +- .../aws/iot/model/ThingPrincipalObject.h | 84 + .../aws/iot/model/ThingPrincipalType.h | 31 + .../aws/iot/model/ThingTypeProperties.h | 17 + .../aws/iot/model/UpdateThingTypeRequest.h | 70 + .../aws/iot/model/UpdateThingTypeResult.h | 52 + .../src/aws-cpp-sdk-iot/source/IoTClient1.cpp | 134 +- .../src/aws-cpp-sdk-iot/source/IoTClient2.cpp | 100 + .../model/AttachThingPrincipalRequest.cpp | 17 +- .../model/ListPrincipalThingsV2Request.cpp | 75 + .../model/ListPrincipalThingsV2Result.cpp | 57 + .../model/ListThingPrincipalsV2Request.cpp | 60 + .../model/ListThingPrincipalsV2Result.cpp | 57 + .../source/model/Mqtt5Configuration.cpp | 67 + .../source/model/PrincipalThingObject.cpp | 73 + .../source/model/PropagatingAttribute.cpp | 87 + .../source/model/ServerCertificateConfig.cpp | 30 +- .../source/model/ThingPrincipalObject.cpp | 73 + .../source/model/ThingPrincipalType.cpp | 72 + .../source/model/ThingTypeProperties.cpp | 16 +- .../source/model/UpdateThingTypeRequest.cpp | 36 + .../source/model/UpdateThingTypeResult.cpp | 42 + .../include/aws/monitoring/CloudWatchClient.h | 40 +- .../include/aws/monitoring/model/Entity.h | 110 + .../aws/monitoring/model/EntityMetricData.h | 82 + .../model/GetMetricWidgetImageRequest.h | 2 +- .../aws/monitoring/model/ListMetricsRequest.h | 2 +- .../monitoring/model/PutMetricAlarmRequest.h | 3 + .../monitoring/model/PutMetricDataRequest.h | 66 +- .../source/model/Entity.cpp | 140 + .../source/model/EntityMetricData.cpp | 108 + .../source/model/PutMetricDataRequest.cpp | 27 +- .../include/aws/outposts/model/PaymentTerm.h | 3 +- .../source/model/PaymentTerm.cpp | 7 + .../PinpointSMSVoiceV2Client.h | 141 +- .../PinpointSMSVoiceV2ServiceClientModel.h | 25 + .../model/ConfigurationSetFilterName.h | 1 + .../model/ConfigurationSetInformation.h | 13 + .../model/ConflictExceptionReason.h | 3 +- .../model/DeleteConfigurationSetResult.h | 12 + ...onfigurationRuleSetNumberOverrideRequest.h | 75 + ...ConfigurationRuleSetNumberOverrideResult.h | 156 ++ ...escribeVerifiedDestinationNumbersRequest.h | 2 +- .../pinpoint-sms-voice-v2/model/EventType.h | 1 + ...nfigurationRuleSetNumberOverridesRequest.h | 109 + ...onfigurationRuleSetNumberOverridesResult.h | 115 + .../model/MessageFeedbackStatus.h | 31 + .../ProtectConfigurationRuleOverrideAction.h | 31 + ...rotectConfigurationRuleSetNumberOverride.h | 129 + ...igurationRuleSetNumberOverrideFilterItem.h | 80 + ...igurationRuleSetNumberOverrideFilterName.h | 36 + .../model/PutMessageFeedbackRequest.h | 75 + .../model/PutMessageFeedbackResult.h | 81 + ...onfigurationRuleSetNumberOverrideRequest.h | 129 + ...ConfigurationRuleSetNumberOverrideResult.h | 155 ++ .../model/ResourceType.h | 3 +- .../model/SendMediaMessageRequest.h | 17 +- .../model/SendTextMessageRequest.h | 15 + .../model/SendVoiceMessageRequest.h | 15 + .../SetDefaultMessageFeedbackEnabledRequest.h | 72 + .../SetDefaultMessageFeedbackEnabledResult.h | 93 + .../source/PinpointSMSVoiceV2Client.cpp | 135 + .../model/ConfigurationSetFilterName.cpp | 7 + .../model/ConfigurationSetInformation.cpp | 15 + .../source/model/ConflictExceptionReason.cpp | 7 + .../model/DeleteConfigurationSetResult.cpp | 9 +- ...figurationRuleSetNumberOverrideRequest.cpp | 50 + ...nfigurationRuleSetNumberOverrideResult.cpp | 86 + .../source/model/EventType.cpp | 7 + ...igurationRuleSetNumberOverridesRequest.cpp | 70 + ...figurationRuleSetNumberOverridesResult.cpp | 69 + .../source/model/MessageFeedbackStatus.cpp | 72 + ...ProtectConfigurationRuleOverrideAction.cpp | 72 + ...tectConfigurationRuleSetNumberOverride.cpp | 113 + ...urationRuleSetNumberOverrideFilterItem.cpp | 81 + ...urationRuleSetNumberOverrideFilterName.cpp | 107 + .../model/PutMessageFeedbackRequest.cpp | 50 + .../source/model/PutMessageFeedbackResult.cpp | 56 + ...figurationRuleSetNumberOverrideRequest.cpp | 71 + ...nfigurationRuleSetNumberOverrideResult.cpp | 86 + .../source/model/ResourceType.cpp | 7 + .../source/model/SendMediaMessageRequest.cpp | 10 +- .../source/model/SendTextMessageRequest.cpp | 10 +- .../source/model/SendVoiceMessageRequest.cpp | 10 +- ...etDefaultMessageFeedbackEnabledRequest.cpp | 51 + ...SetDefaultMessageFeedbackEnabledResult.cpp | 62 + .../model/ConfidenceThreshold.h | 32 + .../model/CreateFirewallRuleRequest.h | 61 +- .../model/DeleteFirewallRuleRequest.h | 17 + .../model/DnsThreatProtection.h | 31 + .../aws/route53resolver/model/FirewallRule.h | 84 +- .../model/ListFirewallRulesRequest.h | 5 +- .../model/ResolverQueryLogConfigAssociation.h | 2 +- .../aws/route53resolver/model/TargetAddress.h | 11 +- .../model/UpdateFirewallRuleRequest.h | 81 +- .../source/model/ConfidenceThreshold.cpp | 79 + .../model/CreateFirewallRuleRequest.cpp | 16 +- .../model/DeleteFirewallRuleRequest.cpp | 7 + .../source/model/DnsThreatProtection.cpp | 72 + .../source/model/FirewallRule.cpp | 44 +- .../model/UpdateFirewallRuleRequest.cpp | 23 +- .../CMakeLists.txt | 42 + ...onnectCampaignsV2EndpointProviderTests.cpp | 428 +++ .../connectcampaignsv2-gen-tests/RunTests.cpp | 29 + .../include/aws/core/VersionConfig.h | 4 +- .../connectcampaignsv2-2024-04-23.normal.json | 2351 +++++++++++++++++ .../datasync-2018-11-09.normal.json | 18 +- .../ec2-2016-11-15.normal.json | 6 +- .../iot-2015-05-28.normal.json | 273 +- .../monitoring-2010-08-01.normal.json | 91 +- .../outposts-2019-12-03.normal.json | 3 +- ...npoint-sms-voice-v2-2022-03-31.normal.json | 460 +++- .../route53resolver-2018-04-01.normal.json | 98 +- ...paignsv2-2024-04-23.endpoint-rule-set.json | 350 +++ ...campaignsv2-2024-04-23.endpoint-tests.json | 314 +++ 384 files changed, 29656 insertions(+), 259 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/CMakeLists.txt create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2Client.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2EndpointProvider.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2EndpointRules.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2ErrorMarshaller.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2Errors.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2Request.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2ServiceClientModel.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/AccessDeniedException.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/AgentlessConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/AnswerMachineDetectionConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/Campaign.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignDeletionPolicy.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignFilters.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignState.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignSummary.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ChannelSubtype.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ChannelSubtypeConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ChannelSubtypeParameters.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimit.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimitTimeUnit.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimits.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimitsConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimitsConfigType.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationTimeConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationTimeConfigType.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ConflictException.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CreateCampaignRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CreateCampaignResult.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CustomerProfilesIntegrationConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CustomerProfilesIntegrationIdentifier.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CustomerProfilesIntegrationSummary.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DayOfWeek.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignChannelSubtypeConfigRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignCommunicationLimitsRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignCommunicationTimeRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteConnectInstanceConfigRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteConnectInstanceIntegrationRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteInstanceOnboardingJobRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DescribeCampaignRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DescribeCampaignResult.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailChannelSubtypeConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailChannelSubtypeParameters.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailOutboundConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailOutboundMode.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EncryptionConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EncryptionType.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EventType.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/FailedCampaignStateResponse.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/FailedRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/FailureCode.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateBatchFailureCode.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateBatchRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateBatchResult.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateResult.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetConnectInstanceConfigRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetConnectInstanceConfigResult.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetInstanceOnboardingJobStatusRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetInstanceOnboardingJobStatusResult.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceIdFilter.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceIdFilterOperator.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceOnboardingJobFailureCode.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceOnboardingJobStatus.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceOnboardingJobStatusCode.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/IntegrationConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/IntegrationIdentifier.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/IntegrationSummary.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InternalServerException.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InvalidCampaignStateException.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InvalidStateException.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListCampaignsRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListCampaignsResult.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListConnectInstanceIntegrationsRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListConnectInstanceIntegrationsResult.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListTagsForResourceRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListTagsForResourceResult.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/LocalTimeZoneConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/LocalTimeZoneDetectionType.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/OpenHours.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/OutboundRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PauseCampaignRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PredictiveConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ProgressiveConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PutConnectInstanceIntegrationRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PutOutboundRequestBatchRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PutOutboundRequestBatchResult.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/QConnectIntegrationConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/QConnectIntegrationIdentifier.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/QConnectIntegrationSummary.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ResourceNotFoundException.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/RestrictedPeriod.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/RestrictedPeriods.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ResumeCampaignRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/Schedule.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ServiceQuotaExceededException.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsChannelSubtypeConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsChannelSubtypeParameters.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsOutboundConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsOutboundMode.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/Source.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StartCampaignRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StartInstanceOnboardingJobRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StartInstanceOnboardingJobResult.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StopCampaignRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SuccessfulCampaignStateResponse.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SuccessfulRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TagResourceRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyChannelSubtypeConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyChannelSubtypeParameters.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyOutboundConfig.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyOutboundMode.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ThrottlingException.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TimeRange.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TimeWindow.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UntagResourceRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignChannelSubtypeConfigRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignCommunicationLimitsRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignCommunicationTimeRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignFlowAssociationRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignNameRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignScheduleRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignSourceRequest.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ValidationException.h create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Client.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2EndpointProvider.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2EndpointRules.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2ErrorMarshaller.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Errors.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Request.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/AccessDeniedException.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/AgentlessConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/AnswerMachineDetectionConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/Campaign.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignDeletionPolicy.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignFilters.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignState.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ChannelSubtype.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ChannelSubtypeConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ChannelSubtypeParameters.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimit.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimitTimeUnit.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimits.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimitsConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimitsConfigType.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationTimeConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationTimeConfigType.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ConflictException.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CreateCampaignRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CreateCampaignResult.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CustomerProfilesIntegrationConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CustomerProfilesIntegrationIdentifier.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CustomerProfilesIntegrationSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DayOfWeek.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignChannelSubtypeConfigRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignCommunicationLimitsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignCommunicationTimeRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteConnectInstanceConfigRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteConnectInstanceIntegrationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteInstanceOnboardingJobRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DescribeCampaignRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DescribeCampaignResult.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailChannelSubtypeConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailChannelSubtypeParameters.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailOutboundConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailOutboundMode.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EncryptionConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EncryptionType.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EventType.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/FailedCampaignStateResponse.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/FailedRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/FailureCode.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateBatchFailureCode.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateBatchRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateBatchResult.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateResult.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetConnectInstanceConfigRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetConnectInstanceConfigResult.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetInstanceOnboardingJobStatusRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetInstanceOnboardingJobStatusResult.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceIdFilter.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceIdFilterOperator.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceOnboardingJobFailureCode.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceOnboardingJobStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceOnboardingJobStatusCode.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/IntegrationConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/IntegrationIdentifier.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/IntegrationSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InternalServerException.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InvalidCampaignStateException.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InvalidStateException.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListCampaignsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListCampaignsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListConnectInstanceIntegrationsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListConnectInstanceIntegrationsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListTagsForResourceRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListTagsForResourceResult.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/LocalTimeZoneConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/LocalTimeZoneDetectionType.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/OpenHours.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/OutboundRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PauseCampaignRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PredictiveConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ProgressiveConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PutConnectInstanceIntegrationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PutOutboundRequestBatchRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PutOutboundRequestBatchResult.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/QConnectIntegrationConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/QConnectIntegrationIdentifier.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/QConnectIntegrationSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ResourceNotFoundException.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/RestrictedPeriod.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/RestrictedPeriods.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ResumeCampaignRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/Schedule.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ServiceQuotaExceededException.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsChannelSubtypeConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsChannelSubtypeParameters.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsOutboundConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsOutboundMode.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/Source.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StartCampaignRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StartInstanceOnboardingJobRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StartInstanceOnboardingJobResult.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StopCampaignRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SuccessfulCampaignStateResponse.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SuccessfulRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TagResourceRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyChannelSubtypeConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyChannelSubtypeParameters.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyOutboundConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyOutboundMode.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ThrottlingException.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TimeRange.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TimeWindow.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UntagResourceRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignChannelSubtypeConfigRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignCommunicationLimitsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignCommunicationTimeRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignFlowAssociationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignNameRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignScheduleRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignSourceRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ValidationException.cpp create mode 100644 generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListPrincipalThingsV2Request.h create mode 100644 generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListPrincipalThingsV2Result.h create mode 100644 generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListThingPrincipalsV2Request.h create mode 100644 generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListThingPrincipalsV2Result.h create mode 100644 generated/src/aws-cpp-sdk-iot/include/aws/iot/model/Mqtt5Configuration.h create mode 100644 generated/src/aws-cpp-sdk-iot/include/aws/iot/model/PrincipalThingObject.h create mode 100644 generated/src/aws-cpp-sdk-iot/include/aws/iot/model/PropagatingAttribute.h create mode 100644 generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingPrincipalObject.h create mode 100644 generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingPrincipalType.h create mode 100644 generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdateThingTypeRequest.h create mode 100644 generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdateThingTypeResult.h create mode 100644 generated/src/aws-cpp-sdk-iot/source/model/ListPrincipalThingsV2Request.cpp create mode 100644 generated/src/aws-cpp-sdk-iot/source/model/ListPrincipalThingsV2Result.cpp create mode 100644 generated/src/aws-cpp-sdk-iot/source/model/ListThingPrincipalsV2Request.cpp create mode 100644 generated/src/aws-cpp-sdk-iot/source/model/ListThingPrincipalsV2Result.cpp create mode 100644 generated/src/aws-cpp-sdk-iot/source/model/Mqtt5Configuration.cpp create mode 100644 generated/src/aws-cpp-sdk-iot/source/model/PrincipalThingObject.cpp create mode 100644 generated/src/aws-cpp-sdk-iot/source/model/PropagatingAttribute.cpp create mode 100644 generated/src/aws-cpp-sdk-iot/source/model/ThingPrincipalObject.cpp create mode 100644 generated/src/aws-cpp-sdk-iot/source/model/ThingPrincipalType.cpp create mode 100644 generated/src/aws-cpp-sdk-iot/source/model/UpdateThingTypeRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-iot/source/model/UpdateThingTypeResult.cpp create mode 100644 generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/Entity.h create mode 100644 generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/EntityMetricData.h create mode 100644 generated/src/aws-cpp-sdk-monitoring/source/model/Entity.cpp create mode 100644 generated/src/aws-cpp-sdk-monitoring/source/model/EntityMetricData.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteProtectConfigurationRuleSetNumberOverrideRequest.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteProtectConfigurationRuleSetNumberOverrideResult.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ListProtectConfigurationRuleSetNumberOverridesRequest.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ListProtectConfigurationRuleSetNumberOverridesResult.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/MessageFeedbackStatus.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleOverrideAction.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleSetNumberOverride.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleSetNumberOverrideFilterItem.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleSetNumberOverrideFilterName.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutMessageFeedbackRequest.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutMessageFeedbackResult.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutProtectConfigurationRuleSetNumberOverrideRequest.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutProtectConfigurationRuleSetNumberOverrideResult.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SetDefaultMessageFeedbackEnabledRequest.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SetDefaultMessageFeedbackEnabledResult.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteProtectConfigurationRuleSetNumberOverrideRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteProtectConfigurationRuleSetNumberOverrideResult.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ListProtectConfigurationRuleSetNumberOverridesRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ListProtectConfigurationRuleSetNumberOverridesResult.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/MessageFeedbackStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleOverrideAction.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleSetNumberOverride.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleSetNumberOverrideFilterItem.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleSetNumberOverrideFilterName.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutMessageFeedbackRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutMessageFeedbackResult.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutProtectConfigurationRuleSetNumberOverrideRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutProtectConfigurationRuleSetNumberOverrideResult.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SetDefaultMessageFeedbackEnabledRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SetDefaultMessageFeedbackEnabledResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/ConfidenceThreshold.h create mode 100644 generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/DnsThreatProtection.h create mode 100644 generated/src/aws-cpp-sdk-route53resolver/source/model/ConfidenceThreshold.cpp create mode 100644 generated/src/aws-cpp-sdk-route53resolver/source/model/DnsThreatProtection.cpp create mode 100644 generated/tests/connectcampaignsv2-gen-tests/CMakeLists.txt create mode 100644 generated/tests/connectcampaignsv2-gen-tests/ConnectCampaignsV2EndpointProviderTests.cpp create mode 100644 generated/tests/connectcampaignsv2-gen-tests/RunTests.cpp create mode 100644 tools/code-generation/api-descriptions/connectcampaignsv2-2024-04-23.normal.json create mode 100644 tools/code-generation/endpoints/connectcampaignsv2-2024-04-23.endpoint-rule-set.json create mode 100644 tools/code-generation/endpoints/connectcampaignsv2-2024-04-23.endpoint-tests.json diff --git a/VERSION b/VERSION index afe19547790..db223480c1e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.448 \ No newline at end of file +1.11.449 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/CMakeLists.txt b/generated/src/aws-cpp-sdk-connectcampaignsv2/CMakeLists.txt new file mode 100644 index 00000000000..bd96a4cb370 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/CMakeLists.txt @@ -0,0 +1,76 @@ +add_project(aws-cpp-sdk-connectcampaignsv2 "C++ SDK for the AWS connectcampaignsv2 service" aws-cpp-sdk-core) + +file(GLOB AWS_CONNECTCAMPAIGNSV2_HEADERS + "include/aws/connectcampaignsv2/*.h" +) + +file(GLOB AWS_CONNECTCAMPAIGNSV2_MODEL_HEADERS + "include/aws/connectcampaignsv2/model/*.h" +) + +file(GLOB AWS_CONNECTCAMPAIGNSV2_SOURCE + "source/*.cpp" +) + +file(GLOB AWS_CONNECTCAMPAIGNSV2_MODEL_SOURCE + "source/model/*.cpp" +) + +file(GLOB CONNECTCAMPAIGNSV2_UNIFIED_HEADERS + ${AWS_CONNECTCAMPAIGNSV2_HEADERS} + ${AWS_CONNECTCAMPAIGNSV2_MODEL_HEADERS} +) + +file(GLOB CONNECTCAMPAIGNSV2_UNITY_SRC + ${AWS_CONNECTCAMPAIGNSV2_SOURCE} + ${AWS_CONNECTCAMPAIGNSV2_MODEL_SOURCE} +) + +if(ENABLE_UNITY_BUILD) + enable_unity_build("CONNECTCAMPAIGNSV2" CONNECTCAMPAIGNSV2_UNITY_SRC) +endif() + +file(GLOB CONNECTCAMPAIGNSV2_SRC + ${CONNECTCAMPAIGNSV2_UNIFIED_HEADERS} + ${CONNECTCAMPAIGNSV2_UNITY_SRC} +) + +if(WIN32) + #if we are compiling for visual studio, create a sane directory tree. + if(MSVC) + source_group("Header Files\\aws\\connectcampaignsv2" FILES ${AWS_CONNECTCAMPAIGNSV2_HEADERS}) + source_group("Header Files\\aws\\connectcampaignsv2\\model" FILES ${AWS_CONNECTCAMPAIGNSV2_MODEL_HEADERS}) + source_group("Source Files" FILES ${AWS_CONNECTCAMPAIGNSV2_SOURCE}) + source_group("Source Files\\model" FILES ${AWS_CONNECTCAMPAIGNSV2_MODEL_SOURCE}) + endif(MSVC) +endif() + +set(CONNECTCAMPAIGNSV2_INCLUDES + "${CMAKE_CURRENT_SOURCE_DIR}/include/" +) + +add_library(${PROJECT_NAME} ${CONNECTCAMPAIGNSV2_SRC}) +add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) + +set_compiler_flags(${PROJECT_NAME}) +set_compiler_warnings(${PROJECT_NAME}) + +if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS) + target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_CONNECTCAMPAIGNSV2_EXPORTS") +endif() + +target_include_directories(${PROJECT_NAME} PUBLIC + $ + $) + +target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS}) + + +setup_install() + +install (FILES ${AWS_CONNECTCAMPAIGNSV2_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/connectcampaignsv2) +install (FILES ${AWS_CONNECTCAMPAIGNSV2_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/connectcampaignsv2/model) + +do_packaging() + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2Client.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2Client.h new file mode 100644 index 00000000000..3ad257a99d4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2Client.h @@ -0,0 +1,918 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ + /** + *

Provide APIs to create and manage Amazon Connect Campaigns.

+ */ + class AWS_CONNECTCAMPAIGNSV2_API ConnectCampaignsV2Client : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods + { + public: + typedef Aws::Client::AWSJsonClient BASECLASS; + static const char* GetServiceName(); + static const char* GetAllocationTag(); + + typedef ConnectCampaignsV2ClientConfiguration ClientConfigurationType; + typedef ConnectCampaignsV2EndpointProvider EndpointProviderType; + + /** + * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + ConnectCampaignsV2Client(const Aws::ConnectCampaignsV2::ConnectCampaignsV2ClientConfiguration& clientConfiguration = Aws::ConnectCampaignsV2::ConnectCampaignsV2ClientConfiguration(), + std::shared_ptr endpointProvider = nullptr); + + /** + * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + ConnectCampaignsV2Client(const Aws::Auth::AWSCredentials& credentials, + std::shared_ptr endpointProvider = nullptr, + const Aws::ConnectCampaignsV2::ConnectCampaignsV2ClientConfiguration& clientConfiguration = Aws::ConnectCampaignsV2::ConnectCampaignsV2ClientConfiguration()); + + /** + * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, + * the default http client factory will be used + */ + ConnectCampaignsV2Client(const std::shared_ptr& credentialsProvider, + std::shared_ptr endpointProvider = nullptr, + const Aws::ConnectCampaignsV2::ConnectCampaignsV2ClientConfiguration& clientConfiguration = Aws::ConnectCampaignsV2::ConnectCampaignsV2ClientConfiguration()); + + + /* Legacy constructors due deprecation */ + /** + * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + ConnectCampaignsV2Client(const Aws::Client::ClientConfiguration& clientConfiguration); + + /** + * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + ConnectCampaignsV2Client(const Aws::Auth::AWSCredentials& credentials, + const Aws::Client::ClientConfiguration& clientConfiguration); + + /** + * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, + * the default http client factory will be used + */ + ConnectCampaignsV2Client(const std::shared_ptr& credentialsProvider, + const Aws::Client::ClientConfiguration& clientConfiguration); + + /* End of legacy constructors due deprecation */ + virtual ~ConnectCampaignsV2Client(); + + /** + *

Creates a campaign for the specified Amazon Connect account. This API is + * idempotent.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateCampaignOutcome CreateCampaign(const Model::CreateCampaignRequest& request) const; + + /** + * A Callable wrapper for CreateCampaign that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateCampaignOutcomeCallable CreateCampaignCallable(const CreateCampaignRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::CreateCampaign, request); + } + + /** + * An Async wrapper for CreateCampaign that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateCampaignAsync(const CreateCampaignRequestT& request, const CreateCampaignResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::CreateCampaign, request, handler, context); + } + + /** + *

Deletes a campaign from the specified Amazon Connect account.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::DeleteCampaignOutcome DeleteCampaign(const Model::DeleteCampaignRequest& request) const; + + /** + * A Callable wrapper for DeleteCampaign that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteCampaignOutcomeCallable DeleteCampaignCallable(const DeleteCampaignRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::DeleteCampaign, request); + } + + /** + * An Async wrapper for DeleteCampaign that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteCampaignAsync(const DeleteCampaignRequestT& request, const DeleteCampaignResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::DeleteCampaign, request, handler, context); + } + + /** + *

Deletes the channel subtype config of a campaign. This API is + * idempotent.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteCampaignChannelSubtypeConfigOutcome DeleteCampaignChannelSubtypeConfig(const Model::DeleteCampaignChannelSubtypeConfigRequest& request) const; + + /** + * A Callable wrapper for DeleteCampaignChannelSubtypeConfig that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteCampaignChannelSubtypeConfigOutcomeCallable DeleteCampaignChannelSubtypeConfigCallable(const DeleteCampaignChannelSubtypeConfigRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::DeleteCampaignChannelSubtypeConfig, request); + } + + /** + * An Async wrapper for DeleteCampaignChannelSubtypeConfig that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteCampaignChannelSubtypeConfigAsync(const DeleteCampaignChannelSubtypeConfigRequestT& request, const DeleteCampaignChannelSubtypeConfigResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::DeleteCampaignChannelSubtypeConfig, request, handler, context); + } + + /** + *

Deletes the communication limits config for a campaign. This API is + * idempotent.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteCampaignCommunicationLimitsOutcome DeleteCampaignCommunicationLimits(const Model::DeleteCampaignCommunicationLimitsRequest& request) const; + + /** + * A Callable wrapper for DeleteCampaignCommunicationLimits that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteCampaignCommunicationLimitsOutcomeCallable DeleteCampaignCommunicationLimitsCallable(const DeleteCampaignCommunicationLimitsRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::DeleteCampaignCommunicationLimits, request); + } + + /** + * An Async wrapper for DeleteCampaignCommunicationLimits that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteCampaignCommunicationLimitsAsync(const DeleteCampaignCommunicationLimitsRequestT& request, const DeleteCampaignCommunicationLimitsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::DeleteCampaignCommunicationLimits, request, handler, context); + } + + /** + *

Deletes the communication time config for a campaign. This API is + * idempotent.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteCampaignCommunicationTimeOutcome DeleteCampaignCommunicationTime(const Model::DeleteCampaignCommunicationTimeRequest& request) const; + + /** + * A Callable wrapper for DeleteCampaignCommunicationTime that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteCampaignCommunicationTimeOutcomeCallable DeleteCampaignCommunicationTimeCallable(const DeleteCampaignCommunicationTimeRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::DeleteCampaignCommunicationTime, request); + } + + /** + * An Async wrapper for DeleteCampaignCommunicationTime that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteCampaignCommunicationTimeAsync(const DeleteCampaignCommunicationTimeRequestT& request, const DeleteCampaignCommunicationTimeResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::DeleteCampaignCommunicationTime, request, handler, context); + } + + /** + *

Deletes a connect instance config from the specified AWS + * account.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteConnectInstanceConfigOutcome DeleteConnectInstanceConfig(const Model::DeleteConnectInstanceConfigRequest& request) const; + + /** + * A Callable wrapper for DeleteConnectInstanceConfig that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteConnectInstanceConfigOutcomeCallable DeleteConnectInstanceConfigCallable(const DeleteConnectInstanceConfigRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::DeleteConnectInstanceConfig, request); + } + + /** + * An Async wrapper for DeleteConnectInstanceConfig that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteConnectInstanceConfigAsync(const DeleteConnectInstanceConfigRequestT& request, const DeleteConnectInstanceConfigResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::DeleteConnectInstanceConfig, request, handler, context); + } + + /** + *

Delete the integration for the specified Amazon Connect + * instance.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteConnectInstanceIntegrationOutcome DeleteConnectInstanceIntegration(const Model::DeleteConnectInstanceIntegrationRequest& request) const; + + /** + * A Callable wrapper for DeleteConnectInstanceIntegration that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteConnectInstanceIntegrationOutcomeCallable DeleteConnectInstanceIntegrationCallable(const DeleteConnectInstanceIntegrationRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::DeleteConnectInstanceIntegration, request); + } + + /** + * An Async wrapper for DeleteConnectInstanceIntegration that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteConnectInstanceIntegrationAsync(const DeleteConnectInstanceIntegrationRequestT& request, const DeleteConnectInstanceIntegrationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::DeleteConnectInstanceIntegration, request, handler, context); + } + + /** + *

Delete the Connect Campaigns onboarding job for the specified Amazon Connect + * instance.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteInstanceOnboardingJobOutcome DeleteInstanceOnboardingJob(const Model::DeleteInstanceOnboardingJobRequest& request) const; + + /** + * A Callable wrapper for DeleteInstanceOnboardingJob that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteInstanceOnboardingJobOutcomeCallable DeleteInstanceOnboardingJobCallable(const DeleteInstanceOnboardingJobRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::DeleteInstanceOnboardingJob, request); + } + + /** + * An Async wrapper for DeleteInstanceOnboardingJob that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteInstanceOnboardingJobAsync(const DeleteInstanceOnboardingJobRequestT& request, const DeleteInstanceOnboardingJobResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::DeleteInstanceOnboardingJob, request, handler, context); + } + + /** + *

Describes the specific campaign.

See Also:

AWS + * API Reference

+ */ + virtual Model::DescribeCampaignOutcome DescribeCampaign(const Model::DescribeCampaignRequest& request) const; + + /** + * A Callable wrapper for DescribeCampaign that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DescribeCampaignOutcomeCallable DescribeCampaignCallable(const DescribeCampaignRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::DescribeCampaign, request); + } + + /** + * An Async wrapper for DescribeCampaign that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DescribeCampaignAsync(const DescribeCampaignRequestT& request, const DescribeCampaignResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::DescribeCampaign, request, handler, context); + } + + /** + *

Get state of a campaign for the specified Amazon Connect + * account.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetCampaignStateOutcome GetCampaignState(const Model::GetCampaignStateRequest& request) const; + + /** + * A Callable wrapper for GetCampaignState that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetCampaignStateOutcomeCallable GetCampaignStateCallable(const GetCampaignStateRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::GetCampaignState, request); + } + + /** + * An Async wrapper for GetCampaignState that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetCampaignStateAsync(const GetCampaignStateRequestT& request, const GetCampaignStateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::GetCampaignState, request, handler, context); + } + + /** + *

Get state of campaigns for the specified Amazon Connect + * account.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetCampaignStateBatchOutcome GetCampaignStateBatch(const Model::GetCampaignStateBatchRequest& request) const; + + /** + * A Callable wrapper for GetCampaignStateBatch that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetCampaignStateBatchOutcomeCallable GetCampaignStateBatchCallable(const GetCampaignStateBatchRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::GetCampaignStateBatch, request); + } + + /** + * An Async wrapper for GetCampaignStateBatch that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetCampaignStateBatchAsync(const GetCampaignStateBatchRequestT& request, const GetCampaignStateBatchResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::GetCampaignStateBatch, request, handler, context); + } + + /** + *

Get the specific Connect instance config.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetConnectInstanceConfigOutcome GetConnectInstanceConfig(const Model::GetConnectInstanceConfigRequest& request) const; + + /** + * A Callable wrapper for GetConnectInstanceConfig that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetConnectInstanceConfigOutcomeCallable GetConnectInstanceConfigCallable(const GetConnectInstanceConfigRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::GetConnectInstanceConfig, request); + } + + /** + * An Async wrapper for GetConnectInstanceConfig that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetConnectInstanceConfigAsync(const GetConnectInstanceConfigRequestT& request, const GetConnectInstanceConfigResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::GetConnectInstanceConfig, request, handler, context); + } + + /** + *

Get the specific instance onboarding job status.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::GetInstanceOnboardingJobStatusOutcome GetInstanceOnboardingJobStatus(const Model::GetInstanceOnboardingJobStatusRequest& request) const; + + /** + * A Callable wrapper for GetInstanceOnboardingJobStatus that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetInstanceOnboardingJobStatusOutcomeCallable GetInstanceOnboardingJobStatusCallable(const GetInstanceOnboardingJobStatusRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::GetInstanceOnboardingJobStatus, request); + } + + /** + * An Async wrapper for GetInstanceOnboardingJobStatus that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetInstanceOnboardingJobStatusAsync(const GetInstanceOnboardingJobStatusRequestT& request, const GetInstanceOnboardingJobStatusResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::GetInstanceOnboardingJobStatus, request, handler, context); + } + + /** + *

Provides summary information about the campaigns under the specified Amazon + * Connect account.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListCampaignsOutcome ListCampaigns(const Model::ListCampaignsRequest& request = {}) const; + + /** + * A Callable wrapper for ListCampaigns that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListCampaignsOutcomeCallable ListCampaignsCallable(const ListCampaignsRequestT& request = {}) const + { + return SubmitCallable(&ConnectCampaignsV2Client::ListCampaigns, request); + } + + /** + * An Async wrapper for ListCampaigns that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListCampaignsAsync(const ListCampaignsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const ListCampaignsRequestT& request = {}) const + { + return SubmitAsync(&ConnectCampaignsV2Client::ListCampaigns, request, handler, context); + } + + /** + *

Provides summary information about the integration under the specified + * Connect instance.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListConnectInstanceIntegrationsOutcome ListConnectInstanceIntegrations(const Model::ListConnectInstanceIntegrationsRequest& request) const; + + /** + * A Callable wrapper for ListConnectInstanceIntegrations that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListConnectInstanceIntegrationsOutcomeCallable ListConnectInstanceIntegrationsCallable(const ListConnectInstanceIntegrationsRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::ListConnectInstanceIntegrations, request); + } + + /** + * An Async wrapper for ListConnectInstanceIntegrations that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListConnectInstanceIntegrationsAsync(const ListConnectInstanceIntegrationsRequestT& request, const ListConnectInstanceIntegrationsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::ListConnectInstanceIntegrations, request, handler, context); + } + + /** + *

List tags for a resource.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest& request) const; + + /** + * A Callable wrapper for ListTagsForResource that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::ListTagsForResource, request); + } + + /** + * An Async wrapper for ListTagsForResource that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListTagsForResourceAsync(const ListTagsForResourceRequestT& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::ListTagsForResource, request, handler, context); + } + + /** + *

Pauses a campaign for the specified Amazon Connect account.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::PauseCampaignOutcome PauseCampaign(const Model::PauseCampaignRequest& request) const; + + /** + * A Callable wrapper for PauseCampaign that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::PauseCampaignOutcomeCallable PauseCampaignCallable(const PauseCampaignRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::PauseCampaign, request); + } + + /** + * An Async wrapper for PauseCampaign that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void PauseCampaignAsync(const PauseCampaignRequestT& request, const PauseCampaignResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::PauseCampaign, request, handler, context); + } + + /** + *

Put or update the integration for the specified Amazon Connect + * instance.

See Also:

AWS + * API Reference

+ */ + virtual Model::PutConnectInstanceIntegrationOutcome PutConnectInstanceIntegration(const Model::PutConnectInstanceIntegrationRequest& request) const; + + /** + * A Callable wrapper for PutConnectInstanceIntegration that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::PutConnectInstanceIntegrationOutcomeCallable PutConnectInstanceIntegrationCallable(const PutConnectInstanceIntegrationRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::PutConnectInstanceIntegration, request); + } + + /** + * An Async wrapper for PutConnectInstanceIntegration that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void PutConnectInstanceIntegrationAsync(const PutConnectInstanceIntegrationRequestT& request, const PutConnectInstanceIntegrationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::PutConnectInstanceIntegration, request, handler, context); + } + + /** + *

Creates outbound requests for the specified campaign Amazon Connect account. + * This API is idempotent.

See Also:

AWS + * API Reference

+ */ + virtual Model::PutOutboundRequestBatchOutcome PutOutboundRequestBatch(const Model::PutOutboundRequestBatchRequest& request) const; + + /** + * A Callable wrapper for PutOutboundRequestBatch that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::PutOutboundRequestBatchOutcomeCallable PutOutboundRequestBatchCallable(const PutOutboundRequestBatchRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::PutOutboundRequestBatch, request); + } + + /** + * An Async wrapper for PutOutboundRequestBatch that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void PutOutboundRequestBatchAsync(const PutOutboundRequestBatchRequestT& request, const PutOutboundRequestBatchResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::PutOutboundRequestBatch, request, handler, context); + } + + /** + *

Stops a campaign for the specified Amazon Connect account.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ResumeCampaignOutcome ResumeCampaign(const Model::ResumeCampaignRequest& request) const; + + /** + * A Callable wrapper for ResumeCampaign that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ResumeCampaignOutcomeCallable ResumeCampaignCallable(const ResumeCampaignRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::ResumeCampaign, request); + } + + /** + * An Async wrapper for ResumeCampaign that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ResumeCampaignAsync(const ResumeCampaignRequestT& request, const ResumeCampaignResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::ResumeCampaign, request, handler, context); + } + + /** + *

Starts a campaign for the specified Amazon Connect account.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::StartCampaignOutcome StartCampaign(const Model::StartCampaignRequest& request) const; + + /** + * A Callable wrapper for StartCampaign that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::StartCampaignOutcomeCallable StartCampaignCallable(const StartCampaignRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::StartCampaign, request); + } + + /** + * An Async wrapper for StartCampaign that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void StartCampaignAsync(const StartCampaignRequestT& request, const StartCampaignResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::StartCampaign, request, handler, context); + } + + /** + *

Onboard the specific Amazon Connect instance to Connect + * Campaigns.

See Also:

AWS + * API Reference

+ */ + virtual Model::StartInstanceOnboardingJobOutcome StartInstanceOnboardingJob(const Model::StartInstanceOnboardingJobRequest& request) const; + + /** + * A Callable wrapper for StartInstanceOnboardingJob that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::StartInstanceOnboardingJobOutcomeCallable StartInstanceOnboardingJobCallable(const StartInstanceOnboardingJobRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::StartInstanceOnboardingJob, request); + } + + /** + * An Async wrapper for StartInstanceOnboardingJob that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void StartInstanceOnboardingJobAsync(const StartInstanceOnboardingJobRequestT& request, const StartInstanceOnboardingJobResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::StartInstanceOnboardingJob, request, handler, context); + } + + /** + *

Stops a campaign for the specified Amazon Connect account.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::StopCampaignOutcome StopCampaign(const Model::StopCampaignRequest& request) const; + + /** + * A Callable wrapper for StopCampaign that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::StopCampaignOutcomeCallable StopCampaignCallable(const StopCampaignRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::StopCampaign, request); + } + + /** + * An Async wrapper for StopCampaign that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void StopCampaignAsync(const StopCampaignRequestT& request, const StopCampaignResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::StopCampaign, request, handler, context); + } + + /** + *

Tag a resource.

See Also:

AWS + * API Reference

+ */ + virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest& request) const; + + /** + * A Callable wrapper for TagResource that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::TagResource, request); + } + + /** + * An Async wrapper for TagResource that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void TagResourceAsync(const TagResourceRequestT& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::TagResource, request, handler, context); + } + + /** + *

Untag a resource.

See Also:

AWS + * API Reference

+ */ + virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest& request) const; + + /** + * A Callable wrapper for UntagResource that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::UntagResource, request); + } + + /** + * An Async wrapper for UntagResource that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UntagResourceAsync(const UntagResourceRequestT& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::UntagResource, request, handler, context); + } + + /** + *

Updates the channel subtype config of a campaign. This API is + * idempotent.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdateCampaignChannelSubtypeConfigOutcome UpdateCampaignChannelSubtypeConfig(const Model::UpdateCampaignChannelSubtypeConfigRequest& request) const; + + /** + * A Callable wrapper for UpdateCampaignChannelSubtypeConfig that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateCampaignChannelSubtypeConfigOutcomeCallable UpdateCampaignChannelSubtypeConfigCallable(const UpdateCampaignChannelSubtypeConfigRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::UpdateCampaignChannelSubtypeConfig, request); + } + + /** + * An Async wrapper for UpdateCampaignChannelSubtypeConfig that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateCampaignChannelSubtypeConfigAsync(const UpdateCampaignChannelSubtypeConfigRequestT& request, const UpdateCampaignChannelSubtypeConfigResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::UpdateCampaignChannelSubtypeConfig, request, handler, context); + } + + /** + *

Updates the communication limits config for a campaign. This API is + * idempotent.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdateCampaignCommunicationLimitsOutcome UpdateCampaignCommunicationLimits(const Model::UpdateCampaignCommunicationLimitsRequest& request) const; + + /** + * A Callable wrapper for UpdateCampaignCommunicationLimits that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateCampaignCommunicationLimitsOutcomeCallable UpdateCampaignCommunicationLimitsCallable(const UpdateCampaignCommunicationLimitsRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::UpdateCampaignCommunicationLimits, request); + } + + /** + * An Async wrapper for UpdateCampaignCommunicationLimits that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateCampaignCommunicationLimitsAsync(const UpdateCampaignCommunicationLimitsRequestT& request, const UpdateCampaignCommunicationLimitsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::UpdateCampaignCommunicationLimits, request, handler, context); + } + + /** + *

Updates the communication time config for a campaign. This API is + * idempotent.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdateCampaignCommunicationTimeOutcome UpdateCampaignCommunicationTime(const Model::UpdateCampaignCommunicationTimeRequest& request) const; + + /** + * A Callable wrapper for UpdateCampaignCommunicationTime that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateCampaignCommunicationTimeOutcomeCallable UpdateCampaignCommunicationTimeCallable(const UpdateCampaignCommunicationTimeRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::UpdateCampaignCommunicationTime, request); + } + + /** + * An Async wrapper for UpdateCampaignCommunicationTime that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateCampaignCommunicationTimeAsync(const UpdateCampaignCommunicationTimeRequestT& request, const UpdateCampaignCommunicationTimeResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::UpdateCampaignCommunicationTime, request, handler, context); + } + + /** + *

Updates the campaign flow associated with a campaign. This API is + * idempotent.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdateCampaignFlowAssociationOutcome UpdateCampaignFlowAssociation(const Model::UpdateCampaignFlowAssociationRequest& request) const; + + /** + * A Callable wrapper for UpdateCampaignFlowAssociation that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateCampaignFlowAssociationOutcomeCallable UpdateCampaignFlowAssociationCallable(const UpdateCampaignFlowAssociationRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::UpdateCampaignFlowAssociation, request); + } + + /** + * An Async wrapper for UpdateCampaignFlowAssociation that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateCampaignFlowAssociationAsync(const UpdateCampaignFlowAssociationRequestT& request, const UpdateCampaignFlowAssociationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::UpdateCampaignFlowAssociation, request, handler, context); + } + + /** + *

Updates the name of a campaign. This API is idempotent.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::UpdateCampaignNameOutcome UpdateCampaignName(const Model::UpdateCampaignNameRequest& request) const; + + /** + * A Callable wrapper for UpdateCampaignName that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateCampaignNameOutcomeCallable UpdateCampaignNameCallable(const UpdateCampaignNameRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::UpdateCampaignName, request); + } + + /** + * An Async wrapper for UpdateCampaignName that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateCampaignNameAsync(const UpdateCampaignNameRequestT& request, const UpdateCampaignNameResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::UpdateCampaignName, request, handler, context); + } + + /** + *

Updates the schedule for a campaign. This API is idempotent.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::UpdateCampaignScheduleOutcome UpdateCampaignSchedule(const Model::UpdateCampaignScheduleRequest& request) const; + + /** + * A Callable wrapper for UpdateCampaignSchedule that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateCampaignScheduleOutcomeCallable UpdateCampaignScheduleCallable(const UpdateCampaignScheduleRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::UpdateCampaignSchedule, request); + } + + /** + * An Async wrapper for UpdateCampaignSchedule that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateCampaignScheduleAsync(const UpdateCampaignScheduleRequestT& request, const UpdateCampaignScheduleResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::UpdateCampaignSchedule, request, handler, context); + } + + /** + *

Updates the campaign source with a campaign. This API is + * idempotent.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdateCampaignSourceOutcome UpdateCampaignSource(const Model::UpdateCampaignSourceRequest& request) const; + + /** + * A Callable wrapper for UpdateCampaignSource that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateCampaignSourceOutcomeCallable UpdateCampaignSourceCallable(const UpdateCampaignSourceRequestT& request) const + { + return SubmitCallable(&ConnectCampaignsV2Client::UpdateCampaignSource, request); + } + + /** + * An Async wrapper for UpdateCampaignSource that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateCampaignSourceAsync(const UpdateCampaignSourceRequestT& request, const UpdateCampaignSourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ConnectCampaignsV2Client::UpdateCampaignSource, request, handler, context); + } + + + void OverrideEndpoint(const Aws::String& endpoint); + std::shared_ptr& accessEndpointProvider(); + private: + friend class Aws::Client::ClientWithAsyncTemplateMethods; + void init(const ConnectCampaignsV2ClientConfiguration& clientConfiguration); + + ConnectCampaignsV2ClientConfiguration m_clientConfiguration; + std::shared_ptr m_endpointProvider; + }; + +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2EndpointProvider.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2EndpointProvider.h new file mode 100644 index 00000000000..16343838d01 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2EndpointProvider.h @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +#include + + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Endpoint +{ +using EndpointParameters = Aws::Endpoint::EndpointParameters; +using Aws::Endpoint::EndpointProviderBase; +using Aws::Endpoint::DefaultEndpointProvider; + +using ConnectCampaignsV2ClientContextParameters = Aws::Endpoint::ClientContextParameters; + +using ConnectCampaignsV2ClientConfiguration = Aws::Client::GenericClientConfiguration; +using ConnectCampaignsV2BuiltInParameters = Aws::Endpoint::BuiltInParameters; + +/** + * The type for the ConnectCampaignsV2 Client Endpoint Provider. + * Inherit from this Base class / "Interface" should you want to provide a custom endpoint provider. + * The SDK must use service-specific type for each service per specification. + */ +using ConnectCampaignsV2EndpointProviderBase = + EndpointProviderBase; + +using ConnectCampaignsV2DefaultEpProviderBase = + DefaultEndpointProvider; + +/** + * Default endpoint provider used for this service + */ +class AWS_CONNECTCAMPAIGNSV2_API ConnectCampaignsV2EndpointProvider : public ConnectCampaignsV2DefaultEpProviderBase +{ +public: + using ConnectCampaignsV2ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; + + ConnectCampaignsV2EndpointProvider() + : ConnectCampaignsV2DefaultEpProviderBase(Aws::ConnectCampaignsV2::ConnectCampaignsV2EndpointRules::GetRulesBlob(), Aws::ConnectCampaignsV2::ConnectCampaignsV2EndpointRules::RulesBlobSize) + {} + + ~ConnectCampaignsV2EndpointProvider() + { + } +}; +} // namespace Endpoint +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2EndpointRules.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2EndpointRules.h new file mode 100644 index 00000000000..39f090a7b11 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2EndpointRules.h @@ -0,0 +1,23 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +class ConnectCampaignsV2EndpointRules +{ +public: + static const size_t RulesBlobStrLen; + static const size_t RulesBlobSize; + + static const char* GetRulesBlob(); +}; +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2ErrorMarshaller.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2ErrorMarshaller.h new file mode 100644 index 00000000000..cdb93daa9e7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2ErrorMarshaller.h @@ -0,0 +1,23 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include + +namespace Aws +{ +namespace Client +{ + +class AWS_CONNECTCAMPAIGNSV2_API ConnectCampaignsV2ErrorMarshaller : public Aws::Client::JsonErrorMarshaller +{ +public: + Aws::Client::AWSError FindErrorByName(const char* exceptionName) const override; +}; + +} // namespace Client +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2Errors.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2Errors.h new file mode 100644 index 00000000000..9b71bba6234 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2Errors.h @@ -0,0 +1,76 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +enum class ConnectCampaignsV2Errors +{ + //From Core// + ////////////////////////////////////////////////////////////////////////////////////////// + INCOMPLETE_SIGNATURE = 0, + INTERNAL_FAILURE = 1, + INVALID_ACTION = 2, + INVALID_CLIENT_TOKEN_ID = 3, + INVALID_PARAMETER_COMBINATION = 4, + INVALID_QUERY_PARAMETER = 5, + INVALID_PARAMETER_VALUE = 6, + MISSING_ACTION = 7, // SDK should never allow + MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow + MISSING_PARAMETER = 9, // SDK should never allow + OPT_IN_REQUIRED = 10, + REQUEST_EXPIRED = 11, + SERVICE_UNAVAILABLE = 12, + THROTTLING = 13, + VALIDATION = 14, + ACCESS_DENIED = 15, + RESOURCE_NOT_FOUND = 16, + UNRECOGNIZED_CLIENT = 17, + MALFORMED_QUERY_STRING = 18, + SLOW_DOWN = 19, + REQUEST_TIME_TOO_SKEWED = 20, + INVALID_SIGNATURE = 21, + SIGNATURE_DOES_NOT_MATCH = 22, + INVALID_ACCESS_KEY_ID = 23, + REQUEST_TIMEOUT = 24, + NETWORK_CONNECTION = 99, + + UNKNOWN = 100, + /////////////////////////////////////////////////////////////////////////////////////////// + + CONFLICT= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, + INTERNAL_SERVER, + INVALID_CAMPAIGN_STATE, + INVALID_STATE, + SERVICE_QUOTA_EXCEEDED +}; + +class AWS_CONNECTCAMPAIGNSV2_API ConnectCampaignsV2Error : public Aws::Client::AWSError +{ +public: + ConnectCampaignsV2Error() {} + ConnectCampaignsV2Error(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + ConnectCampaignsV2Error(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + ConnectCampaignsV2Error(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + ConnectCampaignsV2Error(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + + template + T GetModeledError(); +}; + +namespace ConnectCampaignsV2ErrorMapper +{ + AWS_CONNECTCAMPAIGNSV2_API Aws::Client::AWSError GetErrorForName(const char* errorName); +} + +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2Request.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2Request.h new file mode 100644 index 00000000000..fe9052b0e21 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2Request.h @@ -0,0 +1,46 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ + class AWS_CONNECTCAMPAIGNSV2_API ConnectCampaignsV2Request : public Aws::AmazonSerializableWebServiceRequest + { + public: + using EndpointParameter = Aws::Endpoint::EndpointParameter; + using EndpointParameters = Aws::Endpoint::EndpointParameters; + + virtual ~ConnectCampaignsV2Request () {} + + void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); } + + inline Aws::Http::HeaderValueCollection GetHeaders() const override + { + auto headers = GetRequestSpecificHeaders(); + + if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0)) + { + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::JSON_CONTENT_TYPE )); + } + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2024-04-23")); + return headers; + } + + protected: + virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); } + + }; + + +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2ServiceClientModel.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2ServiceClientModel.h new file mode 100644 index 00000000000..0bcc29c5dcb --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2ServiceClientModel.h @@ -0,0 +1,216 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +/* Generic header includes */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +/* End of generic header includes */ + +/* Service model headers required in ConnectCampaignsV2Client header */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +/* End of service model headers required in ConnectCampaignsV2Client header */ + +namespace Aws +{ + namespace Http + { + class HttpClient; + class HttpClientFactory; + } // namespace Http + + namespace Utils + { + template< typename R, typename E> class Outcome; + + namespace Threading + { + class Executor; + } // namespace Threading + } // namespace Utils + + namespace Auth + { + class AWSCredentials; + class AWSCredentialsProvider; + } // namespace Auth + + namespace Client + { + class RetryStrategy; + } // namespace Client + + namespace ConnectCampaignsV2 + { + using ConnectCampaignsV2ClientConfiguration = Aws::Client::GenericClientConfiguration; + using ConnectCampaignsV2EndpointProviderBase = Aws::ConnectCampaignsV2::Endpoint::ConnectCampaignsV2EndpointProviderBase; + using ConnectCampaignsV2EndpointProvider = Aws::ConnectCampaignsV2::Endpoint::ConnectCampaignsV2EndpointProvider; + + namespace Model + { + /* Service model forward declarations required in ConnectCampaignsV2Client header */ + class CreateCampaignRequest; + class DeleteCampaignRequest; + class DeleteCampaignChannelSubtypeConfigRequest; + class DeleteCampaignCommunicationLimitsRequest; + class DeleteCampaignCommunicationTimeRequest; + class DeleteConnectInstanceConfigRequest; + class DeleteConnectInstanceIntegrationRequest; + class DeleteInstanceOnboardingJobRequest; + class DescribeCampaignRequest; + class GetCampaignStateRequest; + class GetCampaignStateBatchRequest; + class GetConnectInstanceConfigRequest; + class GetInstanceOnboardingJobStatusRequest; + class ListCampaignsRequest; + class ListConnectInstanceIntegrationsRequest; + class ListTagsForResourceRequest; + class PauseCampaignRequest; + class PutConnectInstanceIntegrationRequest; + class PutOutboundRequestBatchRequest; + class ResumeCampaignRequest; + class StartCampaignRequest; + class StartInstanceOnboardingJobRequest; + class StopCampaignRequest; + class TagResourceRequest; + class UntagResourceRequest; + class UpdateCampaignChannelSubtypeConfigRequest; + class UpdateCampaignCommunicationLimitsRequest; + class UpdateCampaignCommunicationTimeRequest; + class UpdateCampaignFlowAssociationRequest; + class UpdateCampaignNameRequest; + class UpdateCampaignScheduleRequest; + class UpdateCampaignSourceRequest; + /* End of service model forward declarations required in ConnectCampaignsV2Client header */ + + /* Service model Outcome class definitions */ + typedef Aws::Utils::Outcome CreateCampaignOutcome; + typedef Aws::Utils::Outcome DeleteCampaignOutcome; + typedef Aws::Utils::Outcome DeleteCampaignChannelSubtypeConfigOutcome; + typedef Aws::Utils::Outcome DeleteCampaignCommunicationLimitsOutcome; + typedef Aws::Utils::Outcome DeleteCampaignCommunicationTimeOutcome; + typedef Aws::Utils::Outcome DeleteConnectInstanceConfigOutcome; + typedef Aws::Utils::Outcome DeleteConnectInstanceIntegrationOutcome; + typedef Aws::Utils::Outcome DeleteInstanceOnboardingJobOutcome; + typedef Aws::Utils::Outcome DescribeCampaignOutcome; + typedef Aws::Utils::Outcome GetCampaignStateOutcome; + typedef Aws::Utils::Outcome GetCampaignStateBatchOutcome; + typedef Aws::Utils::Outcome GetConnectInstanceConfigOutcome; + typedef Aws::Utils::Outcome GetInstanceOnboardingJobStatusOutcome; + typedef Aws::Utils::Outcome ListCampaignsOutcome; + typedef Aws::Utils::Outcome ListConnectInstanceIntegrationsOutcome; + typedef Aws::Utils::Outcome ListTagsForResourceOutcome; + typedef Aws::Utils::Outcome PauseCampaignOutcome; + typedef Aws::Utils::Outcome PutConnectInstanceIntegrationOutcome; + typedef Aws::Utils::Outcome PutOutboundRequestBatchOutcome; + typedef Aws::Utils::Outcome ResumeCampaignOutcome; + typedef Aws::Utils::Outcome StartCampaignOutcome; + typedef Aws::Utils::Outcome StartInstanceOnboardingJobOutcome; + typedef Aws::Utils::Outcome StopCampaignOutcome; + typedef Aws::Utils::Outcome TagResourceOutcome; + typedef Aws::Utils::Outcome UntagResourceOutcome; + typedef Aws::Utils::Outcome UpdateCampaignChannelSubtypeConfigOutcome; + typedef Aws::Utils::Outcome UpdateCampaignCommunicationLimitsOutcome; + typedef Aws::Utils::Outcome UpdateCampaignCommunicationTimeOutcome; + typedef Aws::Utils::Outcome UpdateCampaignFlowAssociationOutcome; + typedef Aws::Utils::Outcome UpdateCampaignNameOutcome; + typedef Aws::Utils::Outcome UpdateCampaignScheduleOutcome; + typedef Aws::Utils::Outcome UpdateCampaignSourceOutcome; + /* End of service model Outcome class definitions */ + + /* Service model Outcome callable definitions */ + typedef std::future CreateCampaignOutcomeCallable; + typedef std::future DeleteCampaignOutcomeCallable; + typedef std::future DeleteCampaignChannelSubtypeConfigOutcomeCallable; + typedef std::future DeleteCampaignCommunicationLimitsOutcomeCallable; + typedef std::future DeleteCampaignCommunicationTimeOutcomeCallable; + typedef std::future DeleteConnectInstanceConfigOutcomeCallable; + typedef std::future DeleteConnectInstanceIntegrationOutcomeCallable; + typedef std::future DeleteInstanceOnboardingJobOutcomeCallable; + typedef std::future DescribeCampaignOutcomeCallable; + typedef std::future GetCampaignStateOutcomeCallable; + typedef std::future GetCampaignStateBatchOutcomeCallable; + typedef std::future GetConnectInstanceConfigOutcomeCallable; + typedef std::future GetInstanceOnboardingJobStatusOutcomeCallable; + typedef std::future ListCampaignsOutcomeCallable; + typedef std::future ListConnectInstanceIntegrationsOutcomeCallable; + typedef std::future ListTagsForResourceOutcomeCallable; + typedef std::future PauseCampaignOutcomeCallable; + typedef std::future PutConnectInstanceIntegrationOutcomeCallable; + typedef std::future PutOutboundRequestBatchOutcomeCallable; + typedef std::future ResumeCampaignOutcomeCallable; + typedef std::future StartCampaignOutcomeCallable; + typedef std::future StartInstanceOnboardingJobOutcomeCallable; + typedef std::future StopCampaignOutcomeCallable; + typedef std::future TagResourceOutcomeCallable; + typedef std::future UntagResourceOutcomeCallable; + typedef std::future UpdateCampaignChannelSubtypeConfigOutcomeCallable; + typedef std::future UpdateCampaignCommunicationLimitsOutcomeCallable; + typedef std::future UpdateCampaignCommunicationTimeOutcomeCallable; + typedef std::future UpdateCampaignFlowAssociationOutcomeCallable; + typedef std::future UpdateCampaignNameOutcomeCallable; + typedef std::future UpdateCampaignScheduleOutcomeCallable; + typedef std::future UpdateCampaignSourceOutcomeCallable; + /* End of service model Outcome callable definitions */ + } // namespace Model + + class ConnectCampaignsV2Client; + + /* Service model async handlers definitions */ + typedef std::function&) > CreateCampaignResponseReceivedHandler; + typedef std::function&) > DeleteCampaignResponseReceivedHandler; + typedef std::function&) > DeleteCampaignChannelSubtypeConfigResponseReceivedHandler; + typedef std::function&) > DeleteCampaignCommunicationLimitsResponseReceivedHandler; + typedef std::function&) > DeleteCampaignCommunicationTimeResponseReceivedHandler; + typedef std::function&) > DeleteConnectInstanceConfigResponseReceivedHandler; + typedef std::function&) > DeleteConnectInstanceIntegrationResponseReceivedHandler; + typedef std::function&) > DeleteInstanceOnboardingJobResponseReceivedHandler; + typedef std::function&) > DescribeCampaignResponseReceivedHandler; + typedef std::function&) > GetCampaignStateResponseReceivedHandler; + typedef std::function&) > GetCampaignStateBatchResponseReceivedHandler; + typedef std::function&) > GetConnectInstanceConfigResponseReceivedHandler; + typedef std::function&) > GetInstanceOnboardingJobStatusResponseReceivedHandler; + typedef std::function&) > ListCampaignsResponseReceivedHandler; + typedef std::function&) > ListConnectInstanceIntegrationsResponseReceivedHandler; + typedef std::function&) > ListTagsForResourceResponseReceivedHandler; + typedef std::function&) > PauseCampaignResponseReceivedHandler; + typedef std::function&) > PutConnectInstanceIntegrationResponseReceivedHandler; + typedef std::function&) > PutOutboundRequestBatchResponseReceivedHandler; + typedef std::function&) > ResumeCampaignResponseReceivedHandler; + typedef std::function&) > StartCampaignResponseReceivedHandler; + typedef std::function&) > StartInstanceOnboardingJobResponseReceivedHandler; + typedef std::function&) > StopCampaignResponseReceivedHandler; + typedef std::function&) > TagResourceResponseReceivedHandler; + typedef std::function&) > UntagResourceResponseReceivedHandler; + typedef std::function&) > UpdateCampaignChannelSubtypeConfigResponseReceivedHandler; + typedef std::function&) > UpdateCampaignCommunicationLimitsResponseReceivedHandler; + typedef std::function&) > UpdateCampaignCommunicationTimeResponseReceivedHandler; + typedef std::function&) > UpdateCampaignFlowAssociationResponseReceivedHandler; + typedef std::function&) > UpdateCampaignNameResponseReceivedHandler; + typedef std::function&) > UpdateCampaignScheduleResponseReceivedHandler; + typedef std::function&) > UpdateCampaignSourceResponseReceivedHandler; + /* End of service model async handlers definitions */ + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h new file mode 100644 index 00000000000..dadb3fb7cdf --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#ifdef _MSC_VER + //disable windows complaining about max template size. + #pragma warning (disable : 4503) +#endif // _MSC_VER + +#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32) + #ifdef _MSC_VER + #pragma warning(disable : 4251) + #endif // _MSC_VER + + #ifdef USE_IMPORT_EXPORT + #ifdef AWS_CONNECTCAMPAIGNSV2_EXPORTS + #define AWS_CONNECTCAMPAIGNSV2_API __declspec(dllexport) + #else + #define AWS_CONNECTCAMPAIGNSV2_API __declspec(dllimport) + #endif /* AWS_CONNECTCAMPAIGNSV2_EXPORTS */ + #define AWS_CONNECTCAMPAIGNSV2_EXTERN + #else + #define AWS_CONNECTCAMPAIGNSV2_API + #define AWS_CONNECTCAMPAIGNSV2_EXTERN extern + #endif // USE_IMPORT_EXPORT +#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) + #define AWS_CONNECTCAMPAIGNSV2_API + #define AWS_CONNECTCAMPAIGNSV2_EXTERN extern +#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/AccessDeniedException.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/AccessDeniedException.h new file mode 100644 index 00000000000..92675a4c862 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/AccessDeniedException.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

You do not have sufficient access to perform this action.

See + * Also:

AWS + * API Reference

+ */ + class AccessDeniedException + { + public: + AWS_CONNECTCAMPAIGNSV2_API AccessDeniedException(); + AWS_CONNECTCAMPAIGNSV2_API AccessDeniedException(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API AccessDeniedException& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline AccessDeniedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline AccessDeniedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline AccessDeniedException& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetXAmzErrorType() const{ return m_xAmzErrorType; } + inline bool XAmzErrorTypeHasBeenSet() const { return m_xAmzErrorTypeHasBeenSet; } + inline void SetXAmzErrorType(const Aws::String& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = value; } + inline void SetXAmzErrorType(Aws::String&& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = std::move(value); } + inline void SetXAmzErrorType(const char* value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType.assign(value); } + inline AccessDeniedException& WithXAmzErrorType(const Aws::String& value) { SetXAmzErrorType(value); return *this;} + inline AccessDeniedException& WithXAmzErrorType(Aws::String&& value) { SetXAmzErrorType(std::move(value)); return *this;} + inline AccessDeniedException& WithXAmzErrorType(const char* value) { SetXAmzErrorType(value); return *this;} + ///@} + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + Aws::String m_xAmzErrorType; + bool m_xAmzErrorTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/AgentlessConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/AgentlessConfig.h new file mode 100644 index 00000000000..b82aae787e5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/AgentlessConfig.h @@ -0,0 +1,41 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Agentless config

See Also:

AWS + * API Reference

+ */ + class AgentlessConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API AgentlessConfig(); + AWS_CONNECTCAMPAIGNSV2_API AgentlessConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API AgentlessConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/AnswerMachineDetectionConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/AnswerMachineDetectionConfig.h new file mode 100644 index 00000000000..3154c9c25ca --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/AnswerMachineDetectionConfig.h @@ -0,0 +1,68 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Answering Machine Detection config

See Also:

AWS + * API Reference

+ */ + class AnswerMachineDetectionConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API AnswerMachineDetectionConfig(); + AWS_CONNECTCAMPAIGNSV2_API AnswerMachineDetectionConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API AnswerMachineDetectionConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

Enable or disable answering machine detection

+ */ + inline bool GetEnableAnswerMachineDetection() const{ return m_enableAnswerMachineDetection; } + inline bool EnableAnswerMachineDetectionHasBeenSet() const { return m_enableAnswerMachineDetectionHasBeenSet; } + inline void SetEnableAnswerMachineDetection(bool value) { m_enableAnswerMachineDetectionHasBeenSet = true; m_enableAnswerMachineDetection = value; } + inline AnswerMachineDetectionConfig& WithEnableAnswerMachineDetection(bool value) { SetEnableAnswerMachineDetection(value); return *this;} + ///@} + + ///@{ + /** + *

Enable or disable await answer machine prompt

+ */ + inline bool GetAwaitAnswerMachinePrompt() const{ return m_awaitAnswerMachinePrompt; } + inline bool AwaitAnswerMachinePromptHasBeenSet() const { return m_awaitAnswerMachinePromptHasBeenSet; } + inline void SetAwaitAnswerMachinePrompt(bool value) { m_awaitAnswerMachinePromptHasBeenSet = true; m_awaitAnswerMachinePrompt = value; } + inline AnswerMachineDetectionConfig& WithAwaitAnswerMachinePrompt(bool value) { SetAwaitAnswerMachinePrompt(value); return *this;} + ///@} + private: + + bool m_enableAnswerMachineDetection; + bool m_enableAnswerMachineDetectionHasBeenSet = false; + + bool m_awaitAnswerMachinePrompt; + bool m_awaitAnswerMachinePromptHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/Campaign.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/Campaign.h new file mode 100644 index 00000000000..1fb0e3d5c8e --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/Campaign.h @@ -0,0 +1,210 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

An Amazon Connect campaign.

See Also:

AWS + * API Reference

+ */ + class Campaign + { + public: + AWS_CONNECTCAMPAIGNSV2_API Campaign(); + AWS_CONNECTCAMPAIGNSV2_API Campaign(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Campaign& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline Campaign& WithId(const Aws::String& value) { SetId(value); return *this;} + inline Campaign& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline Campaign& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetArn() const{ return m_arn; } + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + inline Campaign& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline Campaign& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline Campaign& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline Campaign& WithName(const Aws::String& value) { SetName(value); return *this;} + inline Campaign& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline Campaign& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; } + inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; } + inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; } + inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); } + inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); } + inline Campaign& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;} + inline Campaign& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;} + inline Campaign& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;} + ///@} + + ///@{ + + inline const ChannelSubtypeConfig& GetChannelSubtypeConfig() const{ return m_channelSubtypeConfig; } + inline bool ChannelSubtypeConfigHasBeenSet() const { return m_channelSubtypeConfigHasBeenSet; } + inline void SetChannelSubtypeConfig(const ChannelSubtypeConfig& value) { m_channelSubtypeConfigHasBeenSet = true; m_channelSubtypeConfig = value; } + inline void SetChannelSubtypeConfig(ChannelSubtypeConfig&& value) { m_channelSubtypeConfigHasBeenSet = true; m_channelSubtypeConfig = std::move(value); } + inline Campaign& WithChannelSubtypeConfig(const ChannelSubtypeConfig& value) { SetChannelSubtypeConfig(value); return *this;} + inline Campaign& WithChannelSubtypeConfig(ChannelSubtypeConfig&& value) { SetChannelSubtypeConfig(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Source& GetSource() const{ return m_source; } + inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } + inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; } + inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } + inline Campaign& WithSource(const Source& value) { SetSource(value); return *this;} + inline Campaign& WithSource(Source&& value) { SetSource(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetConnectCampaignFlowArn() const{ return m_connectCampaignFlowArn; } + inline bool ConnectCampaignFlowArnHasBeenSet() const { return m_connectCampaignFlowArnHasBeenSet; } + inline void SetConnectCampaignFlowArn(const Aws::String& value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn = value; } + inline void SetConnectCampaignFlowArn(Aws::String&& value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn = std::move(value); } + inline void SetConnectCampaignFlowArn(const char* value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn.assign(value); } + inline Campaign& WithConnectCampaignFlowArn(const Aws::String& value) { SetConnectCampaignFlowArn(value); return *this;} + inline Campaign& WithConnectCampaignFlowArn(Aws::String&& value) { SetConnectCampaignFlowArn(std::move(value)); return *this;} + inline Campaign& WithConnectCampaignFlowArn(const char* value) { SetConnectCampaignFlowArn(value); return *this;} + ///@} + + ///@{ + + inline const Schedule& GetSchedule() const{ return m_schedule; } + inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; } + inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; } + inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); } + inline Campaign& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;} + inline Campaign& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const CommunicationTimeConfig& GetCommunicationTimeConfig() const{ return m_communicationTimeConfig; } + inline bool CommunicationTimeConfigHasBeenSet() const { return m_communicationTimeConfigHasBeenSet; } + inline void SetCommunicationTimeConfig(const CommunicationTimeConfig& value) { m_communicationTimeConfigHasBeenSet = true; m_communicationTimeConfig = value; } + inline void SetCommunicationTimeConfig(CommunicationTimeConfig&& value) { m_communicationTimeConfigHasBeenSet = true; m_communicationTimeConfig = std::move(value); } + inline Campaign& WithCommunicationTimeConfig(const CommunicationTimeConfig& value) { SetCommunicationTimeConfig(value); return *this;} + inline Campaign& WithCommunicationTimeConfig(CommunicationTimeConfig&& value) { SetCommunicationTimeConfig(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const CommunicationLimitsConfig& GetCommunicationLimitsOverride() const{ return m_communicationLimitsOverride; } + inline bool CommunicationLimitsOverrideHasBeenSet() const { return m_communicationLimitsOverrideHasBeenSet; } + inline void SetCommunicationLimitsOverride(const CommunicationLimitsConfig& value) { m_communicationLimitsOverrideHasBeenSet = true; m_communicationLimitsOverride = value; } + inline void SetCommunicationLimitsOverride(CommunicationLimitsConfig&& value) { m_communicationLimitsOverrideHasBeenSet = true; m_communicationLimitsOverride = std::move(value); } + inline Campaign& WithCommunicationLimitsOverride(const CommunicationLimitsConfig& value) { SetCommunicationLimitsOverride(value); return *this;} + inline Campaign& WithCommunicationLimitsOverride(CommunicationLimitsConfig&& value) { SetCommunicationLimitsOverride(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::Map& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline Campaign& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline Campaign& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline Campaign& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + inline Campaign& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline Campaign& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline Campaign& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline Campaign& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline Campaign& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline Campaign& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_connectInstanceId; + bool m_connectInstanceIdHasBeenSet = false; + + ChannelSubtypeConfig m_channelSubtypeConfig; + bool m_channelSubtypeConfigHasBeenSet = false; + + Source m_source; + bool m_sourceHasBeenSet = false; + + Aws::String m_connectCampaignFlowArn; + bool m_connectCampaignFlowArnHasBeenSet = false; + + Schedule m_schedule; + bool m_scheduleHasBeenSet = false; + + CommunicationTimeConfig m_communicationTimeConfig; + bool m_communicationTimeConfigHasBeenSet = false; + + CommunicationLimitsConfig m_communicationLimitsOverride; + bool m_communicationLimitsOverrideHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignDeletionPolicy.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignDeletionPolicy.h new file mode 100644 index 00000000000..c29528c4a8f --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignDeletionPolicy.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class CampaignDeletionPolicy + { + NOT_SET, + RETAIN_ALL, + DELETE_ALL + }; + +namespace CampaignDeletionPolicyMapper +{ +AWS_CONNECTCAMPAIGNSV2_API CampaignDeletionPolicy GetCampaignDeletionPolicyForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForCampaignDeletionPolicy(CampaignDeletionPolicy value); +} // namespace CampaignDeletionPolicyMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignFilters.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignFilters.h new file mode 100644 index 00000000000..7765fc8c9f3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignFilters.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Filter model by type

See Also:

AWS + * API Reference

+ */ + class CampaignFilters + { + public: + AWS_CONNECTCAMPAIGNSV2_API CampaignFilters(); + AWS_CONNECTCAMPAIGNSV2_API CampaignFilters(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API CampaignFilters& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const InstanceIdFilter& GetInstanceIdFilter() const{ return m_instanceIdFilter; } + inline bool InstanceIdFilterHasBeenSet() const { return m_instanceIdFilterHasBeenSet; } + inline void SetInstanceIdFilter(const InstanceIdFilter& value) { m_instanceIdFilterHasBeenSet = true; m_instanceIdFilter = value; } + inline void SetInstanceIdFilter(InstanceIdFilter&& value) { m_instanceIdFilterHasBeenSet = true; m_instanceIdFilter = std::move(value); } + inline CampaignFilters& WithInstanceIdFilter(const InstanceIdFilter& value) { SetInstanceIdFilter(value); return *this;} + inline CampaignFilters& WithInstanceIdFilter(InstanceIdFilter&& value) { SetInstanceIdFilter(std::move(value)); return *this;} + ///@} + private: + + InstanceIdFilter m_instanceIdFilter; + bool m_instanceIdFilterHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignState.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignState.h new file mode 100644 index 00000000000..c01114e96f8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignState.h @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class CampaignState + { + NOT_SET, + Initialized, + Running, + Paused, + Stopped, + Failed, + Completed + }; + +namespace CampaignStateMapper +{ +AWS_CONNECTCAMPAIGNSV2_API CampaignState GetCampaignStateForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForCampaignState(CampaignState value); +} // namespace CampaignStateMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignSummary.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignSummary.h new file mode 100644 index 00000000000..28aac00dd6f --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CampaignSummary.h @@ -0,0 +1,150 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

An Amazon Connect campaign summary.

See Also:

AWS + * API Reference

+ */ + class CampaignSummary + { + public: + AWS_CONNECTCAMPAIGNSV2_API CampaignSummary(); + AWS_CONNECTCAMPAIGNSV2_API CampaignSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API CampaignSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline CampaignSummary& WithId(const Aws::String& value) { SetId(value); return *this;} + inline CampaignSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline CampaignSummary& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetArn() const{ return m_arn; } + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + inline CampaignSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline CampaignSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline CampaignSummary& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline CampaignSummary& WithName(const Aws::String& value) { SetName(value); return *this;} + inline CampaignSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline CampaignSummary& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; } + inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; } + inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; } + inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); } + inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); } + inline CampaignSummary& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;} + inline CampaignSummary& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;} + inline CampaignSummary& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Vector& GetChannelSubtypes() const{ return m_channelSubtypes; } + inline bool ChannelSubtypesHasBeenSet() const { return m_channelSubtypesHasBeenSet; } + inline void SetChannelSubtypes(const Aws::Vector& value) { m_channelSubtypesHasBeenSet = true; m_channelSubtypes = value; } + inline void SetChannelSubtypes(Aws::Vector&& value) { m_channelSubtypesHasBeenSet = true; m_channelSubtypes = std::move(value); } + inline CampaignSummary& WithChannelSubtypes(const Aws::Vector& value) { SetChannelSubtypes(value); return *this;} + inline CampaignSummary& WithChannelSubtypes(Aws::Vector&& value) { SetChannelSubtypes(std::move(value)); return *this;} + inline CampaignSummary& AddChannelSubtypes(const ChannelSubtype& value) { m_channelSubtypesHasBeenSet = true; m_channelSubtypes.push_back(value); return *this; } + inline CampaignSummary& AddChannelSubtypes(ChannelSubtype&& value) { m_channelSubtypesHasBeenSet = true; m_channelSubtypes.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Schedule& GetSchedule() const{ return m_schedule; } + inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; } + inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; } + inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); } + inline CampaignSummary& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;} + inline CampaignSummary& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetConnectCampaignFlowArn() const{ return m_connectCampaignFlowArn; } + inline bool ConnectCampaignFlowArnHasBeenSet() const { return m_connectCampaignFlowArnHasBeenSet; } + inline void SetConnectCampaignFlowArn(const Aws::String& value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn = value; } + inline void SetConnectCampaignFlowArn(Aws::String&& value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn = std::move(value); } + inline void SetConnectCampaignFlowArn(const char* value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn.assign(value); } + inline CampaignSummary& WithConnectCampaignFlowArn(const Aws::String& value) { SetConnectCampaignFlowArn(value); return *this;} + inline CampaignSummary& WithConnectCampaignFlowArn(Aws::String&& value) { SetConnectCampaignFlowArn(std::move(value)); return *this;} + inline CampaignSummary& WithConnectCampaignFlowArn(const char* value) { SetConnectCampaignFlowArn(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_connectInstanceId; + bool m_connectInstanceIdHasBeenSet = false; + + Aws::Vector m_channelSubtypes; + bool m_channelSubtypesHasBeenSet = false; + + Schedule m_schedule; + bool m_scheduleHasBeenSet = false; + + Aws::String m_connectCampaignFlowArn; + bool m_connectCampaignFlowArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ChannelSubtype.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ChannelSubtype.h new file mode 100644 index 00000000000..68b4949d3db --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ChannelSubtype.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class ChannelSubtype + { + NOT_SET, + TELEPHONY, + SMS, + EMAIL + }; + +namespace ChannelSubtypeMapper +{ +AWS_CONNECTCAMPAIGNSV2_API ChannelSubtype GetChannelSubtypeForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForChannelSubtype(ChannelSubtype value); +} // namespace ChannelSubtypeMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ChannelSubtypeConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ChannelSubtypeConfig.h new file mode 100644 index 00000000000..0cbf230dfaa --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ChannelSubtypeConfig.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Campaign Channel Subtype config

See Also:

AWS + * API Reference

+ */ + class ChannelSubtypeConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API ChannelSubtypeConfig(); + AWS_CONNECTCAMPAIGNSV2_API ChannelSubtypeConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API ChannelSubtypeConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const TelephonyChannelSubtypeConfig& GetTelephony() const{ return m_telephony; } + inline bool TelephonyHasBeenSet() const { return m_telephonyHasBeenSet; } + inline void SetTelephony(const TelephonyChannelSubtypeConfig& value) { m_telephonyHasBeenSet = true; m_telephony = value; } + inline void SetTelephony(TelephonyChannelSubtypeConfig&& value) { m_telephonyHasBeenSet = true; m_telephony = std::move(value); } + inline ChannelSubtypeConfig& WithTelephony(const TelephonyChannelSubtypeConfig& value) { SetTelephony(value); return *this;} + inline ChannelSubtypeConfig& WithTelephony(TelephonyChannelSubtypeConfig&& value) { SetTelephony(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const SmsChannelSubtypeConfig& GetSms() const{ return m_sms; } + inline bool SmsHasBeenSet() const { return m_smsHasBeenSet; } + inline void SetSms(const SmsChannelSubtypeConfig& value) { m_smsHasBeenSet = true; m_sms = value; } + inline void SetSms(SmsChannelSubtypeConfig&& value) { m_smsHasBeenSet = true; m_sms = std::move(value); } + inline ChannelSubtypeConfig& WithSms(const SmsChannelSubtypeConfig& value) { SetSms(value); return *this;} + inline ChannelSubtypeConfig& WithSms(SmsChannelSubtypeConfig&& value) { SetSms(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const EmailChannelSubtypeConfig& GetEmail() const{ return m_email; } + inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; } + inline void SetEmail(const EmailChannelSubtypeConfig& value) { m_emailHasBeenSet = true; m_email = value; } + inline void SetEmail(EmailChannelSubtypeConfig&& value) { m_emailHasBeenSet = true; m_email = std::move(value); } + inline ChannelSubtypeConfig& WithEmail(const EmailChannelSubtypeConfig& value) { SetEmail(value); return *this;} + inline ChannelSubtypeConfig& WithEmail(EmailChannelSubtypeConfig&& value) { SetEmail(std::move(value)); return *this;} + ///@} + private: + + TelephonyChannelSubtypeConfig m_telephony; + bool m_telephonyHasBeenSet = false; + + SmsChannelSubtypeConfig m_sms; + bool m_smsHasBeenSet = false; + + EmailChannelSubtypeConfig m_email; + bool m_emailHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ChannelSubtypeParameters.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ChannelSubtypeParameters.h new file mode 100644 index 00000000000..ea908abe58e --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ChannelSubtypeParameters.h @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

ChannelSubtypeParameters for an outbound request

See Also:

+ * AWS + * API Reference

+ */ + class ChannelSubtypeParameters + { + public: + AWS_CONNECTCAMPAIGNSV2_API ChannelSubtypeParameters(); + AWS_CONNECTCAMPAIGNSV2_API ChannelSubtypeParameters(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API ChannelSubtypeParameters& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const TelephonyChannelSubtypeParameters& GetTelephony() const{ return m_telephony; } + inline bool TelephonyHasBeenSet() const { return m_telephonyHasBeenSet; } + inline void SetTelephony(const TelephonyChannelSubtypeParameters& value) { m_telephonyHasBeenSet = true; m_telephony = value; } + inline void SetTelephony(TelephonyChannelSubtypeParameters&& value) { m_telephonyHasBeenSet = true; m_telephony = std::move(value); } + inline ChannelSubtypeParameters& WithTelephony(const TelephonyChannelSubtypeParameters& value) { SetTelephony(value); return *this;} + inline ChannelSubtypeParameters& WithTelephony(TelephonyChannelSubtypeParameters&& value) { SetTelephony(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const SmsChannelSubtypeParameters& GetSms() const{ return m_sms; } + inline bool SmsHasBeenSet() const { return m_smsHasBeenSet; } + inline void SetSms(const SmsChannelSubtypeParameters& value) { m_smsHasBeenSet = true; m_sms = value; } + inline void SetSms(SmsChannelSubtypeParameters&& value) { m_smsHasBeenSet = true; m_sms = std::move(value); } + inline ChannelSubtypeParameters& WithSms(const SmsChannelSubtypeParameters& value) { SetSms(value); return *this;} + inline ChannelSubtypeParameters& WithSms(SmsChannelSubtypeParameters&& value) { SetSms(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const EmailChannelSubtypeParameters& GetEmail() const{ return m_email; } + inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; } + inline void SetEmail(const EmailChannelSubtypeParameters& value) { m_emailHasBeenSet = true; m_email = value; } + inline void SetEmail(EmailChannelSubtypeParameters&& value) { m_emailHasBeenSet = true; m_email = std::move(value); } + inline ChannelSubtypeParameters& WithEmail(const EmailChannelSubtypeParameters& value) { SetEmail(value); return *this;} + inline ChannelSubtypeParameters& WithEmail(EmailChannelSubtypeParameters&& value) { SetEmail(std::move(value)); return *this;} + ///@} + private: + + TelephonyChannelSubtypeParameters m_telephony; + bool m_telephonyHasBeenSet = false; + + SmsChannelSubtypeParameters m_sms; + bool m_smsHasBeenSet = false; + + EmailChannelSubtypeParameters m_email; + bool m_emailHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimit.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimit.h new file mode 100644 index 00000000000..50c834a8842 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimit.h @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Communication Limit

See Also:

AWS + * API Reference

+ */ + class CommunicationLimit + { + public: + AWS_CONNECTCAMPAIGNSV2_API CommunicationLimit(); + AWS_CONNECTCAMPAIGNSV2_API CommunicationLimit(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API CommunicationLimit& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

Maximum number of contacts allowed for a given target within the given + * frequency.

+ */ + inline int GetMaxCountPerRecipient() const{ return m_maxCountPerRecipient; } + inline bool MaxCountPerRecipientHasBeenSet() const { return m_maxCountPerRecipientHasBeenSet; } + inline void SetMaxCountPerRecipient(int value) { m_maxCountPerRecipientHasBeenSet = true; m_maxCountPerRecipient = value; } + inline CommunicationLimit& WithMaxCountPerRecipient(int value) { SetMaxCountPerRecipient(value); return *this;} + ///@} + + ///@{ + /** + *

The number of days to consider with regards to this limit.

+ */ + inline int GetFrequency() const{ return m_frequency; } + inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; } + inline void SetFrequency(int value) { m_frequencyHasBeenSet = true; m_frequency = value; } + inline CommunicationLimit& WithFrequency(int value) { SetFrequency(value); return *this;} + ///@} + + ///@{ + + inline const CommunicationLimitTimeUnit& GetUnit() const{ return m_unit; } + inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } + inline void SetUnit(const CommunicationLimitTimeUnit& value) { m_unitHasBeenSet = true; m_unit = value; } + inline void SetUnit(CommunicationLimitTimeUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } + inline CommunicationLimit& WithUnit(const CommunicationLimitTimeUnit& value) { SetUnit(value); return *this;} + inline CommunicationLimit& WithUnit(CommunicationLimitTimeUnit&& value) { SetUnit(std::move(value)); return *this;} + ///@} + private: + + int m_maxCountPerRecipient; + bool m_maxCountPerRecipientHasBeenSet = false; + + int m_frequency; + bool m_frequencyHasBeenSet = false; + + CommunicationLimitTimeUnit m_unit; + bool m_unitHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimitTimeUnit.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimitTimeUnit.h new file mode 100644 index 00000000000..69f79bc9de3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimitTimeUnit.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class CommunicationLimitTimeUnit + { + NOT_SET, + DAY + }; + +namespace CommunicationLimitTimeUnitMapper +{ +AWS_CONNECTCAMPAIGNSV2_API CommunicationLimitTimeUnit GetCommunicationLimitTimeUnitForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForCommunicationLimitTimeUnit(CommunicationLimitTimeUnit value); +} // namespace CommunicationLimitTimeUnitMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimits.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimits.h new file mode 100644 index 00000000000..53688238907 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimits.h @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Communication limits

See Also:

AWS + * API Reference

+ */ + class CommunicationLimits + { + public: + AWS_CONNECTCAMPAIGNSV2_API CommunicationLimits(); + AWS_CONNECTCAMPAIGNSV2_API CommunicationLimits(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API CommunicationLimits& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::Vector& GetCommunicationLimitsList() const{ return m_communicationLimitsList; } + inline bool CommunicationLimitsListHasBeenSet() const { return m_communicationLimitsListHasBeenSet; } + inline void SetCommunicationLimitsList(const Aws::Vector& value) { m_communicationLimitsListHasBeenSet = true; m_communicationLimitsList = value; } + inline void SetCommunicationLimitsList(Aws::Vector&& value) { m_communicationLimitsListHasBeenSet = true; m_communicationLimitsList = std::move(value); } + inline CommunicationLimits& WithCommunicationLimitsList(const Aws::Vector& value) { SetCommunicationLimitsList(value); return *this;} + inline CommunicationLimits& WithCommunicationLimitsList(Aws::Vector&& value) { SetCommunicationLimitsList(std::move(value)); return *this;} + inline CommunicationLimits& AddCommunicationLimitsList(const CommunicationLimit& value) { m_communicationLimitsListHasBeenSet = true; m_communicationLimitsList.push_back(value); return *this; } + inline CommunicationLimits& AddCommunicationLimitsList(CommunicationLimit&& value) { m_communicationLimitsListHasBeenSet = true; m_communicationLimitsList.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::Vector m_communicationLimitsList; + bool m_communicationLimitsListHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimitsConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimitsConfig.h new file mode 100644 index 00000000000..a052781361c --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimitsConfig.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Communication limits config

See Also:

AWS + * API Reference

+ */ + class CommunicationLimitsConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API CommunicationLimitsConfig(); + AWS_CONNECTCAMPAIGNSV2_API CommunicationLimitsConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API CommunicationLimitsConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const CommunicationLimits& GetAllChannelSubtypes() const{ return m_allChannelSubtypes; } + inline bool AllChannelSubtypesHasBeenSet() const { return m_allChannelSubtypesHasBeenSet; } + inline void SetAllChannelSubtypes(const CommunicationLimits& value) { m_allChannelSubtypesHasBeenSet = true; m_allChannelSubtypes = value; } + inline void SetAllChannelSubtypes(CommunicationLimits&& value) { m_allChannelSubtypesHasBeenSet = true; m_allChannelSubtypes = std::move(value); } + inline CommunicationLimitsConfig& WithAllChannelSubtypes(const CommunicationLimits& value) { SetAllChannelSubtypes(value); return *this;} + inline CommunicationLimitsConfig& WithAllChannelSubtypes(CommunicationLimits&& value) { SetAllChannelSubtypes(std::move(value)); return *this;} + ///@} + private: + + CommunicationLimits m_allChannelSubtypes; + bool m_allChannelSubtypesHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimitsConfigType.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimitsConfigType.h new file mode 100644 index 00000000000..2a3169589b2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationLimitsConfigType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class CommunicationLimitsConfigType + { + NOT_SET, + ALL_CHANNEL_SUBTYPES + }; + +namespace CommunicationLimitsConfigTypeMapper +{ +AWS_CONNECTCAMPAIGNSV2_API CommunicationLimitsConfigType GetCommunicationLimitsConfigTypeForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForCommunicationLimitsConfigType(CommunicationLimitsConfigType value); +} // namespace CommunicationLimitsConfigTypeMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationTimeConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationTimeConfig.h new file mode 100644 index 00000000000..8a7e767fb03 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationTimeConfig.h @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Campaign communication time config

See Also:

AWS + * API Reference

+ */ + class CommunicationTimeConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API CommunicationTimeConfig(); + AWS_CONNECTCAMPAIGNSV2_API CommunicationTimeConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API CommunicationTimeConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const LocalTimeZoneConfig& GetLocalTimeZoneConfig() const{ return m_localTimeZoneConfig; } + inline bool LocalTimeZoneConfigHasBeenSet() const { return m_localTimeZoneConfigHasBeenSet; } + inline void SetLocalTimeZoneConfig(const LocalTimeZoneConfig& value) { m_localTimeZoneConfigHasBeenSet = true; m_localTimeZoneConfig = value; } + inline void SetLocalTimeZoneConfig(LocalTimeZoneConfig&& value) { m_localTimeZoneConfigHasBeenSet = true; m_localTimeZoneConfig = std::move(value); } + inline CommunicationTimeConfig& WithLocalTimeZoneConfig(const LocalTimeZoneConfig& value) { SetLocalTimeZoneConfig(value); return *this;} + inline CommunicationTimeConfig& WithLocalTimeZoneConfig(LocalTimeZoneConfig&& value) { SetLocalTimeZoneConfig(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const TimeWindow& GetTelephony() const{ return m_telephony; } + inline bool TelephonyHasBeenSet() const { return m_telephonyHasBeenSet; } + inline void SetTelephony(const TimeWindow& value) { m_telephonyHasBeenSet = true; m_telephony = value; } + inline void SetTelephony(TimeWindow&& value) { m_telephonyHasBeenSet = true; m_telephony = std::move(value); } + inline CommunicationTimeConfig& WithTelephony(const TimeWindow& value) { SetTelephony(value); return *this;} + inline CommunicationTimeConfig& WithTelephony(TimeWindow&& value) { SetTelephony(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const TimeWindow& GetSms() const{ return m_sms; } + inline bool SmsHasBeenSet() const { return m_smsHasBeenSet; } + inline void SetSms(const TimeWindow& value) { m_smsHasBeenSet = true; m_sms = value; } + inline void SetSms(TimeWindow&& value) { m_smsHasBeenSet = true; m_sms = std::move(value); } + inline CommunicationTimeConfig& WithSms(const TimeWindow& value) { SetSms(value); return *this;} + inline CommunicationTimeConfig& WithSms(TimeWindow&& value) { SetSms(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const TimeWindow& GetEmail() const{ return m_email; } + inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; } + inline void SetEmail(const TimeWindow& value) { m_emailHasBeenSet = true; m_email = value; } + inline void SetEmail(TimeWindow&& value) { m_emailHasBeenSet = true; m_email = std::move(value); } + inline CommunicationTimeConfig& WithEmail(const TimeWindow& value) { SetEmail(value); return *this;} + inline CommunicationTimeConfig& WithEmail(TimeWindow&& value) { SetEmail(std::move(value)); return *this;} + ///@} + private: + + LocalTimeZoneConfig m_localTimeZoneConfig; + bool m_localTimeZoneConfigHasBeenSet = false; + + TimeWindow m_telephony; + bool m_telephonyHasBeenSet = false; + + TimeWindow m_sms; + bool m_smsHasBeenSet = false; + + TimeWindow m_email; + bool m_emailHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationTimeConfigType.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationTimeConfigType.h new file mode 100644 index 00000000000..b30b4111c6f --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CommunicationTimeConfigType.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class CommunicationTimeConfigType + { + NOT_SET, + TELEPHONY, + SMS, + EMAIL + }; + +namespace CommunicationTimeConfigTypeMapper +{ +AWS_CONNECTCAMPAIGNSV2_API CommunicationTimeConfigType GetCommunicationTimeConfigTypeForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForCommunicationTimeConfigType(CommunicationTimeConfigType value); +} // namespace CommunicationTimeConfigTypeMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ConflictException.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ConflictException.h new file mode 100644 index 00000000000..08c2467758f --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ConflictException.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request could not be processed because of conflict in the current state + * of the resource.

See Also:

AWS + * API Reference

+ */ + class ConflictException + { + public: + AWS_CONNECTCAMPAIGNSV2_API ConflictException(); + AWS_CONNECTCAMPAIGNSV2_API ConflictException(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetXAmzErrorType() const{ return m_xAmzErrorType; } + inline bool XAmzErrorTypeHasBeenSet() const { return m_xAmzErrorTypeHasBeenSet; } + inline void SetXAmzErrorType(const Aws::String& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = value; } + inline void SetXAmzErrorType(Aws::String&& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = std::move(value); } + inline void SetXAmzErrorType(const char* value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType.assign(value); } + inline ConflictException& WithXAmzErrorType(const Aws::String& value) { SetXAmzErrorType(value); return *this;} + inline ConflictException& WithXAmzErrorType(Aws::String&& value) { SetXAmzErrorType(std::move(value)); return *this;} + inline ConflictException& WithXAmzErrorType(const char* value) { SetXAmzErrorType(value); return *this;} + ///@} + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + Aws::String m_xAmzErrorType; + bool m_xAmzErrorTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CreateCampaignRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CreateCampaignRequest.h new file mode 100644 index 00000000000..b093aacc4f0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CreateCampaignRequest.h @@ -0,0 +1,178 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for CreateCampaign API.

See Also:

AWS + * API Reference

+ */ + class CreateCampaignRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API CreateCampaignRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateCampaign"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline CreateCampaignRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + inline CreateCampaignRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline CreateCampaignRequest& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; } + inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; } + inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; } + inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); } + inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); } + inline CreateCampaignRequest& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;} + inline CreateCampaignRequest& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;} + inline CreateCampaignRequest& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;} + ///@} + + ///@{ + + inline const ChannelSubtypeConfig& GetChannelSubtypeConfig() const{ return m_channelSubtypeConfig; } + inline bool ChannelSubtypeConfigHasBeenSet() const { return m_channelSubtypeConfigHasBeenSet; } + inline void SetChannelSubtypeConfig(const ChannelSubtypeConfig& value) { m_channelSubtypeConfigHasBeenSet = true; m_channelSubtypeConfig = value; } + inline void SetChannelSubtypeConfig(ChannelSubtypeConfig&& value) { m_channelSubtypeConfigHasBeenSet = true; m_channelSubtypeConfig = std::move(value); } + inline CreateCampaignRequest& WithChannelSubtypeConfig(const ChannelSubtypeConfig& value) { SetChannelSubtypeConfig(value); return *this;} + inline CreateCampaignRequest& WithChannelSubtypeConfig(ChannelSubtypeConfig&& value) { SetChannelSubtypeConfig(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Source& GetSource() const{ return m_source; } + inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } + inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; } + inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } + inline CreateCampaignRequest& WithSource(const Source& value) { SetSource(value); return *this;} + inline CreateCampaignRequest& WithSource(Source&& value) { SetSource(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetConnectCampaignFlowArn() const{ return m_connectCampaignFlowArn; } + inline bool ConnectCampaignFlowArnHasBeenSet() const { return m_connectCampaignFlowArnHasBeenSet; } + inline void SetConnectCampaignFlowArn(const Aws::String& value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn = value; } + inline void SetConnectCampaignFlowArn(Aws::String&& value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn = std::move(value); } + inline void SetConnectCampaignFlowArn(const char* value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn.assign(value); } + inline CreateCampaignRequest& WithConnectCampaignFlowArn(const Aws::String& value) { SetConnectCampaignFlowArn(value); return *this;} + inline CreateCampaignRequest& WithConnectCampaignFlowArn(Aws::String&& value) { SetConnectCampaignFlowArn(std::move(value)); return *this;} + inline CreateCampaignRequest& WithConnectCampaignFlowArn(const char* value) { SetConnectCampaignFlowArn(value); return *this;} + ///@} + + ///@{ + + inline const Schedule& GetSchedule() const{ return m_schedule; } + inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; } + inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; } + inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); } + inline CreateCampaignRequest& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;} + inline CreateCampaignRequest& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const CommunicationTimeConfig& GetCommunicationTimeConfig() const{ return m_communicationTimeConfig; } + inline bool CommunicationTimeConfigHasBeenSet() const { return m_communicationTimeConfigHasBeenSet; } + inline void SetCommunicationTimeConfig(const CommunicationTimeConfig& value) { m_communicationTimeConfigHasBeenSet = true; m_communicationTimeConfig = value; } + inline void SetCommunicationTimeConfig(CommunicationTimeConfig&& value) { m_communicationTimeConfigHasBeenSet = true; m_communicationTimeConfig = std::move(value); } + inline CreateCampaignRequest& WithCommunicationTimeConfig(const CommunicationTimeConfig& value) { SetCommunicationTimeConfig(value); return *this;} + inline CreateCampaignRequest& WithCommunicationTimeConfig(CommunicationTimeConfig&& value) { SetCommunicationTimeConfig(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const CommunicationLimitsConfig& GetCommunicationLimitsOverride() const{ return m_communicationLimitsOverride; } + inline bool CommunicationLimitsOverrideHasBeenSet() const { return m_communicationLimitsOverrideHasBeenSet; } + inline void SetCommunicationLimitsOverride(const CommunicationLimitsConfig& value) { m_communicationLimitsOverrideHasBeenSet = true; m_communicationLimitsOverride = value; } + inline void SetCommunicationLimitsOverride(CommunicationLimitsConfig&& value) { m_communicationLimitsOverrideHasBeenSet = true; m_communicationLimitsOverride = std::move(value); } + inline CreateCampaignRequest& WithCommunicationLimitsOverride(const CommunicationLimitsConfig& value) { SetCommunicationLimitsOverride(value); return *this;} + inline CreateCampaignRequest& WithCommunicationLimitsOverride(CommunicationLimitsConfig&& value) { SetCommunicationLimitsOverride(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::Map& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline CreateCampaignRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline CreateCampaignRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline CreateCampaignRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + inline CreateCampaignRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateCampaignRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateCampaignRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline CreateCampaignRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateCampaignRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateCampaignRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_connectInstanceId; + bool m_connectInstanceIdHasBeenSet = false; + + ChannelSubtypeConfig m_channelSubtypeConfig; + bool m_channelSubtypeConfigHasBeenSet = false; + + Source m_source; + bool m_sourceHasBeenSet = false; + + Aws::String m_connectCampaignFlowArn; + bool m_connectCampaignFlowArnHasBeenSet = false; + + Schedule m_schedule; + bool m_scheduleHasBeenSet = false; + + CommunicationTimeConfig m_communicationTimeConfig; + bool m_communicationTimeConfigHasBeenSet = false; + + CommunicationLimitsConfig m_communicationLimitsOverride; + bool m_communicationLimitsOverrideHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CreateCampaignResult.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CreateCampaignResult.h new file mode 100644 index 00000000000..22ecfea0899 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CreateCampaignResult.h @@ -0,0 +1,102 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + /** + *

The response for Create Campaign API

See Also:

AWS + * API Reference

+ */ + class CreateCampaignResult + { + public: + AWS_CONNECTCAMPAIGNSV2_API CreateCampaignResult(); + AWS_CONNECTCAMPAIGNSV2_API CreateCampaignResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECTCAMPAIGNSV2_API CreateCampaignResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline void SetId(const Aws::String& value) { m_id = value; } + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + inline void SetId(const char* value) { m_id.assign(value); } + inline CreateCampaignResult& WithId(const Aws::String& value) { SetId(value); return *this;} + inline CreateCampaignResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline CreateCampaignResult& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetArn() const{ return m_arn; } + inline void SetArn(const Aws::String& value) { m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arn.assign(value); } + inline CreateCampaignResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline CreateCampaignResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline CreateCampaignResult& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Map& GetTags() const{ return m_tags; } + inline void SetTags(const Aws::Map& value) { m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + inline CreateCampaignResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline CreateCampaignResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline CreateCampaignResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + inline CreateCampaignResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + inline CreateCampaignResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + inline CreateCampaignResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline CreateCampaignResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + inline CreateCampaignResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + inline CreateCampaignResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline CreateCampaignResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateCampaignResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateCampaignResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_id; + + Aws::String m_arn; + + Aws::Map m_tags; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CustomerProfilesIntegrationConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CustomerProfilesIntegrationConfig.h new file mode 100644 index 00000000000..49662b37f16 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CustomerProfilesIntegrationConfig.h @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Customer Profiles integration config

See Also:

AWS + * API Reference

+ */ + class CustomerProfilesIntegrationConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API CustomerProfilesIntegrationConfig(); + AWS_CONNECTCAMPAIGNSV2_API CustomerProfilesIntegrationConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API CustomerProfilesIntegrationConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetDomainArn() const{ return m_domainArn; } + inline bool DomainArnHasBeenSet() const { return m_domainArnHasBeenSet; } + inline void SetDomainArn(const Aws::String& value) { m_domainArnHasBeenSet = true; m_domainArn = value; } + inline void SetDomainArn(Aws::String&& value) { m_domainArnHasBeenSet = true; m_domainArn = std::move(value); } + inline void SetDomainArn(const char* value) { m_domainArnHasBeenSet = true; m_domainArn.assign(value); } + inline CustomerProfilesIntegrationConfig& WithDomainArn(const Aws::String& value) { SetDomainArn(value); return *this;} + inline CustomerProfilesIntegrationConfig& WithDomainArn(Aws::String&& value) { SetDomainArn(std::move(value)); return *this;} + inline CustomerProfilesIntegrationConfig& WithDomainArn(const char* value) { SetDomainArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Map& GetObjectTypeNames() const{ return m_objectTypeNames; } + inline bool ObjectTypeNamesHasBeenSet() const { return m_objectTypeNamesHasBeenSet; } + inline void SetObjectTypeNames(const Aws::Map& value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames = value; } + inline void SetObjectTypeNames(Aws::Map&& value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames = std::move(value); } + inline CustomerProfilesIntegrationConfig& WithObjectTypeNames(const Aws::Map& value) { SetObjectTypeNames(value); return *this;} + inline CustomerProfilesIntegrationConfig& WithObjectTypeNames(Aws::Map&& value) { SetObjectTypeNames(std::move(value)); return *this;} + inline CustomerProfilesIntegrationConfig& AddObjectTypeNames(const EventType& key, const Aws::String& value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames.emplace(key, value); return *this; } + inline CustomerProfilesIntegrationConfig& AddObjectTypeNames(EventType&& key, const Aws::String& value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames.emplace(std::move(key), value); return *this; } + inline CustomerProfilesIntegrationConfig& AddObjectTypeNames(const EventType& key, Aws::String&& value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames.emplace(key, std::move(value)); return *this; } + inline CustomerProfilesIntegrationConfig& AddObjectTypeNames(EventType&& key, Aws::String&& value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames.emplace(std::move(key), std::move(value)); return *this; } + inline CustomerProfilesIntegrationConfig& AddObjectTypeNames(EventType&& key, const char* value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames.emplace(std::move(key), value); return *this; } + inline CustomerProfilesIntegrationConfig& AddObjectTypeNames(const EventType& key, const char* value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames.emplace(key, value); return *this; } + ///@} + private: + + Aws::String m_domainArn; + bool m_domainArnHasBeenSet = false; + + Aws::Map m_objectTypeNames; + bool m_objectTypeNamesHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CustomerProfilesIntegrationIdentifier.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CustomerProfilesIntegrationIdentifier.h new file mode 100644 index 00000000000..04c73855aff --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CustomerProfilesIntegrationIdentifier.h @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Customer Profiles integration identifier

See Also:

AWS + * API Reference

+ */ + class CustomerProfilesIntegrationIdentifier + { + public: + AWS_CONNECTCAMPAIGNSV2_API CustomerProfilesIntegrationIdentifier(); + AWS_CONNECTCAMPAIGNSV2_API CustomerProfilesIntegrationIdentifier(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API CustomerProfilesIntegrationIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetDomainArn() const{ return m_domainArn; } + inline bool DomainArnHasBeenSet() const { return m_domainArnHasBeenSet; } + inline void SetDomainArn(const Aws::String& value) { m_domainArnHasBeenSet = true; m_domainArn = value; } + inline void SetDomainArn(Aws::String&& value) { m_domainArnHasBeenSet = true; m_domainArn = std::move(value); } + inline void SetDomainArn(const char* value) { m_domainArnHasBeenSet = true; m_domainArn.assign(value); } + inline CustomerProfilesIntegrationIdentifier& WithDomainArn(const Aws::String& value) { SetDomainArn(value); return *this;} + inline CustomerProfilesIntegrationIdentifier& WithDomainArn(Aws::String&& value) { SetDomainArn(std::move(value)); return *this;} + inline CustomerProfilesIntegrationIdentifier& WithDomainArn(const char* value) { SetDomainArn(value); return *this;} + ///@} + private: + + Aws::String m_domainArn; + bool m_domainArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CustomerProfilesIntegrationSummary.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CustomerProfilesIntegrationSummary.h new file mode 100644 index 00000000000..898b38ddab3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/CustomerProfilesIntegrationSummary.h @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Customer Profiles integration summary

See Also:

AWS + * API Reference

+ */ + class CustomerProfilesIntegrationSummary + { + public: + AWS_CONNECTCAMPAIGNSV2_API CustomerProfilesIntegrationSummary(); + AWS_CONNECTCAMPAIGNSV2_API CustomerProfilesIntegrationSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API CustomerProfilesIntegrationSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetDomainArn() const{ return m_domainArn; } + inline bool DomainArnHasBeenSet() const { return m_domainArnHasBeenSet; } + inline void SetDomainArn(const Aws::String& value) { m_domainArnHasBeenSet = true; m_domainArn = value; } + inline void SetDomainArn(Aws::String&& value) { m_domainArnHasBeenSet = true; m_domainArn = std::move(value); } + inline void SetDomainArn(const char* value) { m_domainArnHasBeenSet = true; m_domainArn.assign(value); } + inline CustomerProfilesIntegrationSummary& WithDomainArn(const Aws::String& value) { SetDomainArn(value); return *this;} + inline CustomerProfilesIntegrationSummary& WithDomainArn(Aws::String&& value) { SetDomainArn(std::move(value)); return *this;} + inline CustomerProfilesIntegrationSummary& WithDomainArn(const char* value) { SetDomainArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Map& GetObjectTypeNames() const{ return m_objectTypeNames; } + inline bool ObjectTypeNamesHasBeenSet() const { return m_objectTypeNamesHasBeenSet; } + inline void SetObjectTypeNames(const Aws::Map& value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames = value; } + inline void SetObjectTypeNames(Aws::Map&& value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames = std::move(value); } + inline CustomerProfilesIntegrationSummary& WithObjectTypeNames(const Aws::Map& value) { SetObjectTypeNames(value); return *this;} + inline CustomerProfilesIntegrationSummary& WithObjectTypeNames(Aws::Map&& value) { SetObjectTypeNames(std::move(value)); return *this;} + inline CustomerProfilesIntegrationSummary& AddObjectTypeNames(const EventType& key, const Aws::String& value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames.emplace(key, value); return *this; } + inline CustomerProfilesIntegrationSummary& AddObjectTypeNames(EventType&& key, const Aws::String& value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames.emplace(std::move(key), value); return *this; } + inline CustomerProfilesIntegrationSummary& AddObjectTypeNames(const EventType& key, Aws::String&& value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames.emplace(key, std::move(value)); return *this; } + inline CustomerProfilesIntegrationSummary& AddObjectTypeNames(EventType&& key, Aws::String&& value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames.emplace(std::move(key), std::move(value)); return *this; } + inline CustomerProfilesIntegrationSummary& AddObjectTypeNames(EventType&& key, const char* value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames.emplace(std::move(key), value); return *this; } + inline CustomerProfilesIntegrationSummary& AddObjectTypeNames(const EventType& key, const char* value) { m_objectTypeNamesHasBeenSet = true; m_objectTypeNames.emplace(key, value); return *this; } + ///@} + private: + + Aws::String m_domainArn; + bool m_domainArnHasBeenSet = false; + + Aws::Map m_objectTypeNames; + bool m_objectTypeNamesHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DayOfWeek.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DayOfWeek.h new file mode 100644 index 00000000000..3c795d0dcfa --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DayOfWeek.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class DayOfWeek + { + NOT_SET, + MONDAY, + TUESDAY, + WEDNESDAY, + THURSDAY, + FRIDAY, + SATURDAY, + SUNDAY + }; + +namespace DayOfWeekMapper +{ +AWS_CONNECTCAMPAIGNSV2_API DayOfWeek GetDayOfWeekForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForDayOfWeek(DayOfWeek value); +} // namespace DayOfWeekMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignChannelSubtypeConfigRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignChannelSubtypeConfigRequest.h new file mode 100644 index 00000000000..bef95e4a916 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignChannelSubtypeConfigRequest.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for DeleteCampaignChannelSubtypeConfig API.

See + * Also:

AWS + * API Reference

+ */ + class DeleteCampaignChannelSubtypeConfigRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API DeleteCampaignChannelSubtypeConfigRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteCampaignChannelSubtypeConfig"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + AWS_CONNECTCAMPAIGNSV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline DeleteCampaignChannelSubtypeConfigRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline DeleteCampaignChannelSubtypeConfigRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline DeleteCampaignChannelSubtypeConfigRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const ChannelSubtype& GetChannelSubtype() const{ return m_channelSubtype; } + inline bool ChannelSubtypeHasBeenSet() const { return m_channelSubtypeHasBeenSet; } + inline void SetChannelSubtype(const ChannelSubtype& value) { m_channelSubtypeHasBeenSet = true; m_channelSubtype = value; } + inline void SetChannelSubtype(ChannelSubtype&& value) { m_channelSubtypeHasBeenSet = true; m_channelSubtype = std::move(value); } + inline DeleteCampaignChannelSubtypeConfigRequest& WithChannelSubtype(const ChannelSubtype& value) { SetChannelSubtype(value); return *this;} + inline DeleteCampaignChannelSubtypeConfigRequest& WithChannelSubtype(ChannelSubtype&& value) { SetChannelSubtype(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + ChannelSubtype m_channelSubtype; + bool m_channelSubtypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignCommunicationLimitsRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignCommunicationLimitsRequest.h new file mode 100644 index 00000000000..7344278e58e --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignCommunicationLimitsRequest.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for DeleteCampaignCommunicationLimits API.

See + * Also:

AWS + * API Reference

+ */ + class DeleteCampaignCommunicationLimitsRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API DeleteCampaignCommunicationLimitsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteCampaignCommunicationLimits"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + AWS_CONNECTCAMPAIGNSV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline DeleteCampaignCommunicationLimitsRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline DeleteCampaignCommunicationLimitsRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline DeleteCampaignCommunicationLimitsRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const CommunicationLimitsConfigType& GetConfig() const{ return m_config; } + inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; } + inline void SetConfig(const CommunicationLimitsConfigType& value) { m_configHasBeenSet = true; m_config = value; } + inline void SetConfig(CommunicationLimitsConfigType&& value) { m_configHasBeenSet = true; m_config = std::move(value); } + inline DeleteCampaignCommunicationLimitsRequest& WithConfig(const CommunicationLimitsConfigType& value) { SetConfig(value); return *this;} + inline DeleteCampaignCommunicationLimitsRequest& WithConfig(CommunicationLimitsConfigType&& value) { SetConfig(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + CommunicationLimitsConfigType m_config; + bool m_configHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignCommunicationTimeRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignCommunicationTimeRequest.h new file mode 100644 index 00000000000..ad19bffc427 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignCommunicationTimeRequest.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for DeleteCampaignCommunicationTime API.

See Also:

+ * AWS + * API Reference

+ */ + class DeleteCampaignCommunicationTimeRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API DeleteCampaignCommunicationTimeRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteCampaignCommunicationTime"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + AWS_CONNECTCAMPAIGNSV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline DeleteCampaignCommunicationTimeRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline DeleteCampaignCommunicationTimeRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline DeleteCampaignCommunicationTimeRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const CommunicationTimeConfigType& GetConfig() const{ return m_config; } + inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; } + inline void SetConfig(const CommunicationTimeConfigType& value) { m_configHasBeenSet = true; m_config = value; } + inline void SetConfig(CommunicationTimeConfigType&& value) { m_configHasBeenSet = true; m_config = std::move(value); } + inline DeleteCampaignCommunicationTimeRequest& WithConfig(const CommunicationTimeConfigType& value) { SetConfig(value); return *this;} + inline DeleteCampaignCommunicationTimeRequest& WithConfig(CommunicationTimeConfigType&& value) { SetConfig(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + CommunicationTimeConfigType m_config; + bool m_configHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignRequest.h new file mode 100644 index 00000000000..f70c89c82ec --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteCampaignRequest.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for DeleteCampaign API.

See Also:

AWS + * API Reference

+ */ + class DeleteCampaignRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API DeleteCampaignRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteCampaign"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline DeleteCampaignRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline DeleteCampaignRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline DeleteCampaignRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteConnectInstanceConfigRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteConnectInstanceConfigRequest.h new file mode 100644 index 00000000000..acffe3899e0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteConnectInstanceConfigRequest.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for DeleteConnectInstanceConfig API.

See Also:

+ * AWS + * API Reference

+ */ + class DeleteConnectInstanceConfigRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API DeleteConnectInstanceConfigRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteConnectInstanceConfig"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + AWS_CONNECTCAMPAIGNSV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + + inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; } + inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; } + inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; } + inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); } + inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); } + inline DeleteConnectInstanceConfigRequest& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;} + inline DeleteConnectInstanceConfigRequest& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;} + inline DeleteConnectInstanceConfigRequest& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;} + ///@} + + ///@{ + + inline const CampaignDeletionPolicy& GetCampaignDeletionPolicy() const{ return m_campaignDeletionPolicy; } + inline bool CampaignDeletionPolicyHasBeenSet() const { return m_campaignDeletionPolicyHasBeenSet; } + inline void SetCampaignDeletionPolicy(const CampaignDeletionPolicy& value) { m_campaignDeletionPolicyHasBeenSet = true; m_campaignDeletionPolicy = value; } + inline void SetCampaignDeletionPolicy(CampaignDeletionPolicy&& value) { m_campaignDeletionPolicyHasBeenSet = true; m_campaignDeletionPolicy = std::move(value); } + inline DeleteConnectInstanceConfigRequest& WithCampaignDeletionPolicy(const CampaignDeletionPolicy& value) { SetCampaignDeletionPolicy(value); return *this;} + inline DeleteConnectInstanceConfigRequest& WithCampaignDeletionPolicy(CampaignDeletionPolicy&& value) { SetCampaignDeletionPolicy(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_connectInstanceId; + bool m_connectInstanceIdHasBeenSet = false; + + CampaignDeletionPolicy m_campaignDeletionPolicy; + bool m_campaignDeletionPolicyHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteConnectInstanceIntegrationRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteConnectInstanceIntegrationRequest.h new file mode 100644 index 00000000000..e137e206bbe --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteConnectInstanceIntegrationRequest.h @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for DeleteConnectInstanceIntegration API.

See + * Also:

AWS + * API Reference

+ */ + class DeleteConnectInstanceIntegrationRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API DeleteConnectInstanceIntegrationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteConnectInstanceIntegration"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; } + inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; } + inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; } + inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); } + inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); } + inline DeleteConnectInstanceIntegrationRequest& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;} + inline DeleteConnectInstanceIntegrationRequest& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;} + inline DeleteConnectInstanceIntegrationRequest& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;} + ///@} + + ///@{ + + inline const IntegrationIdentifier& GetIntegrationIdentifier() const{ return m_integrationIdentifier; } + inline bool IntegrationIdentifierHasBeenSet() const { return m_integrationIdentifierHasBeenSet; } + inline void SetIntegrationIdentifier(const IntegrationIdentifier& value) { m_integrationIdentifierHasBeenSet = true; m_integrationIdentifier = value; } + inline void SetIntegrationIdentifier(IntegrationIdentifier&& value) { m_integrationIdentifierHasBeenSet = true; m_integrationIdentifier = std::move(value); } + inline DeleteConnectInstanceIntegrationRequest& WithIntegrationIdentifier(const IntegrationIdentifier& value) { SetIntegrationIdentifier(value); return *this;} + inline DeleteConnectInstanceIntegrationRequest& WithIntegrationIdentifier(IntegrationIdentifier&& value) { SetIntegrationIdentifier(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_connectInstanceId; + bool m_connectInstanceIdHasBeenSet = false; + + IntegrationIdentifier m_integrationIdentifier; + bool m_integrationIdentifierHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteInstanceOnboardingJobRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteInstanceOnboardingJobRequest.h new file mode 100644 index 00000000000..624f348ae4b --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DeleteInstanceOnboardingJobRequest.h @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for DeleteInstanceOnboardingJob API.

See Also:

+ * AWS + * API Reference

+ */ + class DeleteInstanceOnboardingJobRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API DeleteInstanceOnboardingJobRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteInstanceOnboardingJob"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; } + inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; } + inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; } + inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); } + inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); } + inline DeleteInstanceOnboardingJobRequest& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;} + inline DeleteInstanceOnboardingJobRequest& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;} + inline DeleteInstanceOnboardingJobRequest& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;} + ///@} + private: + + Aws::String m_connectInstanceId; + bool m_connectInstanceIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DescribeCampaignRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DescribeCampaignRequest.h new file mode 100644 index 00000000000..6166f0c2048 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DescribeCampaignRequest.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for DescribeCampaign API.

See Also:

AWS + * API Reference

+ */ + class DescribeCampaignRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API DescribeCampaignRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeCampaign"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline DescribeCampaignRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline DescribeCampaignRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline DescribeCampaignRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DescribeCampaignResult.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DescribeCampaignResult.h new file mode 100644 index 00000000000..40997b83a6e --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/DescribeCampaignResult.h @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + /** + *

The response for DescribeCampaign API.

See Also:

AWS + * API Reference

+ */ + class DescribeCampaignResult + { + public: + AWS_CONNECTCAMPAIGNSV2_API DescribeCampaignResult(); + AWS_CONNECTCAMPAIGNSV2_API DescribeCampaignResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECTCAMPAIGNSV2_API DescribeCampaignResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Campaign& GetCampaign() const{ return m_campaign; } + inline void SetCampaign(const Campaign& value) { m_campaign = value; } + inline void SetCampaign(Campaign&& value) { m_campaign = std::move(value); } + inline DescribeCampaignResult& WithCampaign(const Campaign& value) { SetCampaign(value); return *this;} + inline DescribeCampaignResult& WithCampaign(Campaign&& value) { SetCampaign(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline DescribeCampaignResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DescribeCampaignResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DescribeCampaignResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Campaign m_campaign; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailChannelSubtypeConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailChannelSubtypeConfig.h new file mode 100644 index 00000000000..d5a39af3d8a --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailChannelSubtypeConfig.h @@ -0,0 +1,82 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Email Channel Subtype config

See Also:

AWS + * API Reference

+ */ + class EmailChannelSubtypeConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API EmailChannelSubtypeConfig(); + AWS_CONNECTCAMPAIGNSV2_API EmailChannelSubtypeConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API EmailChannelSubtypeConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline double GetCapacity() const{ return m_capacity; } + inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; } + inline void SetCapacity(double value) { m_capacityHasBeenSet = true; m_capacity = value; } + inline EmailChannelSubtypeConfig& WithCapacity(double value) { SetCapacity(value); return *this;} + ///@} + + ///@{ + + inline const EmailOutboundMode& GetOutboundMode() const{ return m_outboundMode; } + inline bool OutboundModeHasBeenSet() const { return m_outboundModeHasBeenSet; } + inline void SetOutboundMode(const EmailOutboundMode& value) { m_outboundModeHasBeenSet = true; m_outboundMode = value; } + inline void SetOutboundMode(EmailOutboundMode&& value) { m_outboundModeHasBeenSet = true; m_outboundMode = std::move(value); } + inline EmailChannelSubtypeConfig& WithOutboundMode(const EmailOutboundMode& value) { SetOutboundMode(value); return *this;} + inline EmailChannelSubtypeConfig& WithOutboundMode(EmailOutboundMode&& value) { SetOutboundMode(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const EmailOutboundConfig& GetDefaultOutboundConfig() const{ return m_defaultOutboundConfig; } + inline bool DefaultOutboundConfigHasBeenSet() const { return m_defaultOutboundConfigHasBeenSet; } + inline void SetDefaultOutboundConfig(const EmailOutboundConfig& value) { m_defaultOutboundConfigHasBeenSet = true; m_defaultOutboundConfig = value; } + inline void SetDefaultOutboundConfig(EmailOutboundConfig&& value) { m_defaultOutboundConfigHasBeenSet = true; m_defaultOutboundConfig = std::move(value); } + inline EmailChannelSubtypeConfig& WithDefaultOutboundConfig(const EmailOutboundConfig& value) { SetDefaultOutboundConfig(value); return *this;} + inline EmailChannelSubtypeConfig& WithDefaultOutboundConfig(EmailOutboundConfig&& value) { SetDefaultOutboundConfig(std::move(value)); return *this;} + ///@} + private: + + double m_capacity; + bool m_capacityHasBeenSet = false; + + EmailOutboundMode m_outboundMode; + bool m_outboundModeHasBeenSet = false; + + EmailOutboundConfig m_defaultOutboundConfig; + bool m_defaultOutboundConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailChannelSubtypeParameters.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailChannelSubtypeParameters.h new file mode 100644 index 00000000000..e5796849030 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailChannelSubtypeParameters.h @@ -0,0 +1,110 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Parameters for the Email Channel Subtype

See Also:

AWS + * API Reference

+ */ + class EmailChannelSubtypeParameters + { + public: + AWS_CONNECTCAMPAIGNSV2_API EmailChannelSubtypeParameters(); + AWS_CONNECTCAMPAIGNSV2_API EmailChannelSubtypeParameters(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API EmailChannelSubtypeParameters& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetDestinationEmailAddress() const{ return m_destinationEmailAddress; } + inline bool DestinationEmailAddressHasBeenSet() const { return m_destinationEmailAddressHasBeenSet; } + inline void SetDestinationEmailAddress(const Aws::String& value) { m_destinationEmailAddressHasBeenSet = true; m_destinationEmailAddress = value; } + inline void SetDestinationEmailAddress(Aws::String&& value) { m_destinationEmailAddressHasBeenSet = true; m_destinationEmailAddress = std::move(value); } + inline void SetDestinationEmailAddress(const char* value) { m_destinationEmailAddressHasBeenSet = true; m_destinationEmailAddress.assign(value); } + inline EmailChannelSubtypeParameters& WithDestinationEmailAddress(const Aws::String& value) { SetDestinationEmailAddress(value); return *this;} + inline EmailChannelSubtypeParameters& WithDestinationEmailAddress(Aws::String&& value) { SetDestinationEmailAddress(std::move(value)); return *this;} + inline EmailChannelSubtypeParameters& WithDestinationEmailAddress(const char* value) { SetDestinationEmailAddress(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetConnectSourceEmailAddress() const{ return m_connectSourceEmailAddress; } + inline bool ConnectSourceEmailAddressHasBeenSet() const { return m_connectSourceEmailAddressHasBeenSet; } + inline void SetConnectSourceEmailAddress(const Aws::String& value) { m_connectSourceEmailAddressHasBeenSet = true; m_connectSourceEmailAddress = value; } + inline void SetConnectSourceEmailAddress(Aws::String&& value) { m_connectSourceEmailAddressHasBeenSet = true; m_connectSourceEmailAddress = std::move(value); } + inline void SetConnectSourceEmailAddress(const char* value) { m_connectSourceEmailAddressHasBeenSet = true; m_connectSourceEmailAddress.assign(value); } + inline EmailChannelSubtypeParameters& WithConnectSourceEmailAddress(const Aws::String& value) { SetConnectSourceEmailAddress(value); return *this;} + inline EmailChannelSubtypeParameters& WithConnectSourceEmailAddress(Aws::String&& value) { SetConnectSourceEmailAddress(std::move(value)); return *this;} + inline EmailChannelSubtypeParameters& WithConnectSourceEmailAddress(const char* value) { SetConnectSourceEmailAddress(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetTemplateArn() const{ return m_templateArn; } + inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; } + inline void SetTemplateArn(const Aws::String& value) { m_templateArnHasBeenSet = true; m_templateArn = value; } + inline void SetTemplateArn(Aws::String&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::move(value); } + inline void SetTemplateArn(const char* value) { m_templateArnHasBeenSet = true; m_templateArn.assign(value); } + inline EmailChannelSubtypeParameters& WithTemplateArn(const Aws::String& value) { SetTemplateArn(value); return *this;} + inline EmailChannelSubtypeParameters& WithTemplateArn(Aws::String&& value) { SetTemplateArn(std::move(value)); return *this;} + inline EmailChannelSubtypeParameters& WithTemplateArn(const char* value) { SetTemplateArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Map& GetTemplateParameters() const{ return m_templateParameters; } + inline bool TemplateParametersHasBeenSet() const { return m_templateParametersHasBeenSet; } + inline void SetTemplateParameters(const Aws::Map& value) { m_templateParametersHasBeenSet = true; m_templateParameters = value; } + inline void SetTemplateParameters(Aws::Map&& value) { m_templateParametersHasBeenSet = true; m_templateParameters = std::move(value); } + inline EmailChannelSubtypeParameters& WithTemplateParameters(const Aws::Map& value) { SetTemplateParameters(value); return *this;} + inline EmailChannelSubtypeParameters& WithTemplateParameters(Aws::Map&& value) { SetTemplateParameters(std::move(value)); return *this;} + inline EmailChannelSubtypeParameters& AddTemplateParameters(const Aws::String& key, const Aws::String& value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(key, value); return *this; } + inline EmailChannelSubtypeParameters& AddTemplateParameters(Aws::String&& key, const Aws::String& value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(std::move(key), value); return *this; } + inline EmailChannelSubtypeParameters& AddTemplateParameters(const Aws::String& key, Aws::String&& value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(key, std::move(value)); return *this; } + inline EmailChannelSubtypeParameters& AddTemplateParameters(Aws::String&& key, Aws::String&& value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(std::move(key), std::move(value)); return *this; } + inline EmailChannelSubtypeParameters& AddTemplateParameters(const char* key, Aws::String&& value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(key, std::move(value)); return *this; } + inline EmailChannelSubtypeParameters& AddTemplateParameters(Aws::String&& key, const char* value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(std::move(key), value); return *this; } + inline EmailChannelSubtypeParameters& AddTemplateParameters(const char* key, const char* value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(key, value); return *this; } + ///@} + private: + + Aws::String m_destinationEmailAddress; + bool m_destinationEmailAddressHasBeenSet = false; + + Aws::String m_connectSourceEmailAddress; + bool m_connectSourceEmailAddressHasBeenSet = false; + + Aws::String m_templateArn; + bool m_templateArnHasBeenSet = false; + + Aws::Map m_templateParameters; + bool m_templateParametersHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailOutboundConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailOutboundConfig.h new file mode 100644 index 00000000000..bd9911838ed --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailOutboundConfig.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Default Email Outbound config

See Also:

AWS + * API Reference

+ */ + class EmailOutboundConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API EmailOutboundConfig(); + AWS_CONNECTCAMPAIGNSV2_API EmailOutboundConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API EmailOutboundConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetConnectSourceEmailAddress() const{ return m_connectSourceEmailAddress; } + inline bool ConnectSourceEmailAddressHasBeenSet() const { return m_connectSourceEmailAddressHasBeenSet; } + inline void SetConnectSourceEmailAddress(const Aws::String& value) { m_connectSourceEmailAddressHasBeenSet = true; m_connectSourceEmailAddress = value; } + inline void SetConnectSourceEmailAddress(Aws::String&& value) { m_connectSourceEmailAddressHasBeenSet = true; m_connectSourceEmailAddress = std::move(value); } + inline void SetConnectSourceEmailAddress(const char* value) { m_connectSourceEmailAddressHasBeenSet = true; m_connectSourceEmailAddress.assign(value); } + inline EmailOutboundConfig& WithConnectSourceEmailAddress(const Aws::String& value) { SetConnectSourceEmailAddress(value); return *this;} + inline EmailOutboundConfig& WithConnectSourceEmailAddress(Aws::String&& value) { SetConnectSourceEmailAddress(std::move(value)); return *this;} + inline EmailOutboundConfig& WithConnectSourceEmailAddress(const char* value) { SetConnectSourceEmailAddress(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetSourceEmailAddressDisplayName() const{ return m_sourceEmailAddressDisplayName; } + inline bool SourceEmailAddressDisplayNameHasBeenSet() const { return m_sourceEmailAddressDisplayNameHasBeenSet; } + inline void SetSourceEmailAddressDisplayName(const Aws::String& value) { m_sourceEmailAddressDisplayNameHasBeenSet = true; m_sourceEmailAddressDisplayName = value; } + inline void SetSourceEmailAddressDisplayName(Aws::String&& value) { m_sourceEmailAddressDisplayNameHasBeenSet = true; m_sourceEmailAddressDisplayName = std::move(value); } + inline void SetSourceEmailAddressDisplayName(const char* value) { m_sourceEmailAddressDisplayNameHasBeenSet = true; m_sourceEmailAddressDisplayName.assign(value); } + inline EmailOutboundConfig& WithSourceEmailAddressDisplayName(const Aws::String& value) { SetSourceEmailAddressDisplayName(value); return *this;} + inline EmailOutboundConfig& WithSourceEmailAddressDisplayName(Aws::String&& value) { SetSourceEmailAddressDisplayName(std::move(value)); return *this;} + inline EmailOutboundConfig& WithSourceEmailAddressDisplayName(const char* value) { SetSourceEmailAddressDisplayName(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetWisdomTemplateArn() const{ return m_wisdomTemplateArn; } + inline bool WisdomTemplateArnHasBeenSet() const { return m_wisdomTemplateArnHasBeenSet; } + inline void SetWisdomTemplateArn(const Aws::String& value) { m_wisdomTemplateArnHasBeenSet = true; m_wisdomTemplateArn = value; } + inline void SetWisdomTemplateArn(Aws::String&& value) { m_wisdomTemplateArnHasBeenSet = true; m_wisdomTemplateArn = std::move(value); } + inline void SetWisdomTemplateArn(const char* value) { m_wisdomTemplateArnHasBeenSet = true; m_wisdomTemplateArn.assign(value); } + inline EmailOutboundConfig& WithWisdomTemplateArn(const Aws::String& value) { SetWisdomTemplateArn(value); return *this;} + inline EmailOutboundConfig& WithWisdomTemplateArn(Aws::String&& value) { SetWisdomTemplateArn(std::move(value)); return *this;} + inline EmailOutboundConfig& WithWisdomTemplateArn(const char* value) { SetWisdomTemplateArn(value); return *this;} + ///@} + private: + + Aws::String m_connectSourceEmailAddress; + bool m_connectSourceEmailAddressHasBeenSet = false; + + Aws::String m_sourceEmailAddressDisplayName; + bool m_sourceEmailAddressDisplayNameHasBeenSet = false; + + Aws::String m_wisdomTemplateArn; + bool m_wisdomTemplateArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailOutboundMode.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailOutboundMode.h new file mode 100644 index 00000000000..f3af2a1cd2f --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EmailOutboundMode.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Email Outbound Mode

See Also:

AWS + * API Reference

+ */ + class EmailOutboundMode + { + public: + AWS_CONNECTCAMPAIGNSV2_API EmailOutboundMode(); + AWS_CONNECTCAMPAIGNSV2_API EmailOutboundMode(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API EmailOutboundMode& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const AgentlessConfig& GetAgentless() const{ return m_agentless; } + inline bool AgentlessHasBeenSet() const { return m_agentlessHasBeenSet; } + inline void SetAgentless(const AgentlessConfig& value) { m_agentlessHasBeenSet = true; m_agentless = value; } + inline void SetAgentless(AgentlessConfig&& value) { m_agentlessHasBeenSet = true; m_agentless = std::move(value); } + inline EmailOutboundMode& WithAgentless(const AgentlessConfig& value) { SetAgentless(value); return *this;} + inline EmailOutboundMode& WithAgentless(AgentlessConfig&& value) { SetAgentless(std::move(value)); return *this;} + ///@} + private: + + AgentlessConfig m_agentless; + bool m_agentlessHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EncryptionConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EncryptionConfig.h new file mode 100644 index 00000000000..b8687d8f489 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EncryptionConfig.h @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Encryption config for Connect Instance. Note that sensitive data will always + * be encrypted. If disabled, service will perform encryption with its own key. If + * enabled, a KMS key id needs to be provided and KMS charges will apply. KMS is + * only type supported

See Also:

AWS + * API Reference

+ */ + class EncryptionConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API EncryptionConfig(); + AWS_CONNECTCAMPAIGNSV2_API EncryptionConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API EncryptionConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline bool GetEnabled() const{ return m_enabled; } + inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } + inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } + inline EncryptionConfig& WithEnabled(bool value) { SetEnabled(value); return *this;} + ///@} + + ///@{ + + inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; } + inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; } + inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; } + inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); } + inline EncryptionConfig& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;} + inline EncryptionConfig& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetKeyArn() const{ return m_keyArn; } + inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; } + inline void SetKeyArn(const Aws::String& value) { m_keyArnHasBeenSet = true; m_keyArn = value; } + inline void SetKeyArn(Aws::String&& value) { m_keyArnHasBeenSet = true; m_keyArn = std::move(value); } + inline void SetKeyArn(const char* value) { m_keyArnHasBeenSet = true; m_keyArn.assign(value); } + inline EncryptionConfig& WithKeyArn(const Aws::String& value) { SetKeyArn(value); return *this;} + inline EncryptionConfig& WithKeyArn(Aws::String&& value) { SetKeyArn(std::move(value)); return *this;} + inline EncryptionConfig& WithKeyArn(const char* value) { SetKeyArn(value); return *this;} + ///@} + private: + + bool m_enabled; + bool m_enabledHasBeenSet = false; + + EncryptionType m_encryptionType; + bool m_encryptionTypeHasBeenSet = false; + + Aws::String m_keyArn; + bool m_keyArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EncryptionType.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EncryptionType.h new file mode 100644 index 00000000000..73e0a3916f7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EncryptionType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class EncryptionType + { + NOT_SET, + KMS + }; + +namespace EncryptionTypeMapper +{ +AWS_CONNECTCAMPAIGNSV2_API EncryptionType GetEncryptionTypeForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForEncryptionType(EncryptionType value); +} // namespace EncryptionTypeMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EventType.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EventType.h new file mode 100644 index 00000000000..2aa5bc9cf2a --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/EventType.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class EventType + { + NOT_SET, + Campaign_Email, + Campaign_SMS, + Campaign_Telephony, + Campaign_Orchestration + }; + +namespace EventTypeMapper +{ +AWS_CONNECTCAMPAIGNSV2_API EventType GetEventTypeForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForEventType(EventType value); +} // namespace EventTypeMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/FailedCampaignStateResponse.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/FailedCampaignStateResponse.h new file mode 100644 index 00000000000..389791c4360 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/FailedCampaignStateResponse.h @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Failed response of campaign state

See Also:

AWS + * API Reference

+ */ + class FailedCampaignStateResponse + { + public: + AWS_CONNECTCAMPAIGNSV2_API FailedCampaignStateResponse(); + AWS_CONNECTCAMPAIGNSV2_API FailedCampaignStateResponse(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API FailedCampaignStateResponse& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetCampaignId() const{ return m_campaignId; } + inline bool CampaignIdHasBeenSet() const { return m_campaignIdHasBeenSet; } + inline void SetCampaignId(const Aws::String& value) { m_campaignIdHasBeenSet = true; m_campaignId = value; } + inline void SetCampaignId(Aws::String&& value) { m_campaignIdHasBeenSet = true; m_campaignId = std::move(value); } + inline void SetCampaignId(const char* value) { m_campaignIdHasBeenSet = true; m_campaignId.assign(value); } + inline FailedCampaignStateResponse& WithCampaignId(const Aws::String& value) { SetCampaignId(value); return *this;} + inline FailedCampaignStateResponse& WithCampaignId(Aws::String&& value) { SetCampaignId(std::move(value)); return *this;} + inline FailedCampaignStateResponse& WithCampaignId(const char* value) { SetCampaignId(value); return *this;} + ///@} + + ///@{ + + inline const GetCampaignStateBatchFailureCode& GetFailureCode() const{ return m_failureCode; } + inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; } + inline void SetFailureCode(const GetCampaignStateBatchFailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; } + inline void SetFailureCode(GetCampaignStateBatchFailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); } + inline FailedCampaignStateResponse& WithFailureCode(const GetCampaignStateBatchFailureCode& value) { SetFailureCode(value); return *this;} + inline FailedCampaignStateResponse& WithFailureCode(GetCampaignStateBatchFailureCode&& value) { SetFailureCode(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_campaignId; + bool m_campaignIdHasBeenSet = false; + + GetCampaignStateBatchFailureCode m_failureCode; + bool m_failureCodeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/FailedRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/FailedRequest.h new file mode 100644 index 00000000000..53a08fd380a --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/FailedRequest.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

A failed request identified by the unique client token.

See + * Also:

AWS + * API Reference

+ */ + class FailedRequest + { + public: + AWS_CONNECTCAMPAIGNSV2_API FailedRequest(); + AWS_CONNECTCAMPAIGNSV2_API FailedRequest(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API FailedRequest& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + inline FailedRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + inline FailedRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + inline FailedRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline FailedRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline FailedRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline FailedRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const FailureCode& GetFailureCode() const{ return m_failureCode; } + inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; } + inline void SetFailureCode(const FailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; } + inline void SetFailureCode(FailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); } + inline FailedRequest& WithFailureCode(const FailureCode& value) { SetFailureCode(value); return *this;} + inline FailedRequest& WithFailureCode(FailureCode&& value) { SetFailureCode(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::String m_id; + bool m_idHasBeenSet = false; + + FailureCode m_failureCode; + bool m_failureCodeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/FailureCode.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/FailureCode.h new file mode 100644 index 00000000000..36824f69b7a --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/FailureCode.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class FailureCode + { + NOT_SET, + InvalidInput, + RequestThrottled, + UnknownError, + BufferLimitExceeded + }; + +namespace FailureCodeMapper +{ +AWS_CONNECTCAMPAIGNSV2_API FailureCode GetFailureCodeForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForFailureCode(FailureCode value); +} // namespace FailureCodeMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateBatchFailureCode.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateBatchFailureCode.h new file mode 100644 index 00000000000..283a7abae0b --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateBatchFailureCode.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class GetCampaignStateBatchFailureCode + { + NOT_SET, + ResourceNotFound, + UnknownError + }; + +namespace GetCampaignStateBatchFailureCodeMapper +{ +AWS_CONNECTCAMPAIGNSV2_API GetCampaignStateBatchFailureCode GetGetCampaignStateBatchFailureCodeForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForGetCampaignStateBatchFailureCode(GetCampaignStateBatchFailureCode value); +} // namespace GetCampaignStateBatchFailureCodeMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateBatchRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateBatchRequest.h new file mode 100644 index 00000000000..93406898fee --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateBatchRequest.h @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for GetCampaignStateBatch API.

See Also:

AWS + * API Reference

+ */ + class GetCampaignStateBatchRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API GetCampaignStateBatchRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetCampaignStateBatch"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::Vector& GetCampaignIds() const{ return m_campaignIds; } + inline bool CampaignIdsHasBeenSet() const { return m_campaignIdsHasBeenSet; } + inline void SetCampaignIds(const Aws::Vector& value) { m_campaignIdsHasBeenSet = true; m_campaignIds = value; } + inline void SetCampaignIds(Aws::Vector&& value) { m_campaignIdsHasBeenSet = true; m_campaignIds = std::move(value); } + inline GetCampaignStateBatchRequest& WithCampaignIds(const Aws::Vector& value) { SetCampaignIds(value); return *this;} + inline GetCampaignStateBatchRequest& WithCampaignIds(Aws::Vector&& value) { SetCampaignIds(std::move(value)); return *this;} + inline GetCampaignStateBatchRequest& AddCampaignIds(const Aws::String& value) { m_campaignIdsHasBeenSet = true; m_campaignIds.push_back(value); return *this; } + inline GetCampaignStateBatchRequest& AddCampaignIds(Aws::String&& value) { m_campaignIdsHasBeenSet = true; m_campaignIds.push_back(std::move(value)); return *this; } + inline GetCampaignStateBatchRequest& AddCampaignIds(const char* value) { m_campaignIdsHasBeenSet = true; m_campaignIds.push_back(value); return *this; } + ///@} + private: + + Aws::Vector m_campaignIds; + bool m_campaignIdsHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateBatchResult.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateBatchResult.h new file mode 100644 index 00000000000..8f3b7cc9e3d --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateBatchResult.h @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + /** + *

The response for GetCampaignStateBatch API.

See Also:

AWS + * API Reference

+ */ + class GetCampaignStateBatchResult + { + public: + AWS_CONNECTCAMPAIGNSV2_API GetCampaignStateBatchResult(); + AWS_CONNECTCAMPAIGNSV2_API GetCampaignStateBatchResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECTCAMPAIGNSV2_API GetCampaignStateBatchResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::Vector& GetSuccessfulRequests() const{ return m_successfulRequests; } + inline void SetSuccessfulRequests(const Aws::Vector& value) { m_successfulRequests = value; } + inline void SetSuccessfulRequests(Aws::Vector&& value) { m_successfulRequests = std::move(value); } + inline GetCampaignStateBatchResult& WithSuccessfulRequests(const Aws::Vector& value) { SetSuccessfulRequests(value); return *this;} + inline GetCampaignStateBatchResult& WithSuccessfulRequests(Aws::Vector&& value) { SetSuccessfulRequests(std::move(value)); return *this;} + inline GetCampaignStateBatchResult& AddSuccessfulRequests(const SuccessfulCampaignStateResponse& value) { m_successfulRequests.push_back(value); return *this; } + inline GetCampaignStateBatchResult& AddSuccessfulRequests(SuccessfulCampaignStateResponse&& value) { m_successfulRequests.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::Vector& GetFailedRequests() const{ return m_failedRequests; } + inline void SetFailedRequests(const Aws::Vector& value) { m_failedRequests = value; } + inline void SetFailedRequests(Aws::Vector&& value) { m_failedRequests = std::move(value); } + inline GetCampaignStateBatchResult& WithFailedRequests(const Aws::Vector& value) { SetFailedRequests(value); return *this;} + inline GetCampaignStateBatchResult& WithFailedRequests(Aws::Vector&& value) { SetFailedRequests(std::move(value)); return *this;} + inline GetCampaignStateBatchResult& AddFailedRequests(const FailedCampaignStateResponse& value) { m_failedRequests.push_back(value); return *this; } + inline GetCampaignStateBatchResult& AddFailedRequests(FailedCampaignStateResponse&& value) { m_failedRequests.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetCampaignStateBatchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetCampaignStateBatchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetCampaignStateBatchResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_successfulRequests; + + Aws::Vector m_failedRequests; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateRequest.h new file mode 100644 index 00000000000..e423cbeda5a --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateRequest.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for GetCampaignState API.

See Also:

AWS + * API Reference

+ */ + class GetCampaignStateRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API GetCampaignStateRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetCampaignState"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline GetCampaignStateRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline GetCampaignStateRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline GetCampaignStateRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateResult.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateResult.h new file mode 100644 index 00000000000..af018169c25 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetCampaignStateResult.h @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + /** + *

The response for GetCampaignState API.

See Also:

AWS + * API Reference

+ */ + class GetCampaignStateResult + { + public: + AWS_CONNECTCAMPAIGNSV2_API GetCampaignStateResult(); + AWS_CONNECTCAMPAIGNSV2_API GetCampaignStateResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECTCAMPAIGNSV2_API GetCampaignStateResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const CampaignState& GetState() const{ return m_state; } + inline void SetState(const CampaignState& value) { m_state = value; } + inline void SetState(CampaignState&& value) { m_state = std::move(value); } + inline GetCampaignStateResult& WithState(const CampaignState& value) { SetState(value); return *this;} + inline GetCampaignStateResult& WithState(CampaignState&& value) { SetState(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetCampaignStateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetCampaignStateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetCampaignStateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + CampaignState m_state; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetConnectInstanceConfigRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetConnectInstanceConfigRequest.h new file mode 100644 index 00000000000..8377c2819c9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetConnectInstanceConfigRequest.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for GetConnectInstanceConfig API.

See Also:

AWS + * API Reference

+ */ + class GetConnectInstanceConfigRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API GetConnectInstanceConfigRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetConnectInstanceConfig"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; } + inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; } + inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; } + inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); } + inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); } + inline GetConnectInstanceConfigRequest& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;} + inline GetConnectInstanceConfigRequest& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;} + inline GetConnectInstanceConfigRequest& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;} + ///@} + private: + + Aws::String m_connectInstanceId; + bool m_connectInstanceIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetConnectInstanceConfigResult.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetConnectInstanceConfigResult.h new file mode 100644 index 00000000000..02dd75cabe1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetConnectInstanceConfigResult.h @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + /** + *

The response for GetConnectInstanceConfig API.

See Also:

AWS + * API Reference

+ */ + class GetConnectInstanceConfigResult + { + public: + AWS_CONNECTCAMPAIGNSV2_API GetConnectInstanceConfigResult(); + AWS_CONNECTCAMPAIGNSV2_API GetConnectInstanceConfigResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECTCAMPAIGNSV2_API GetConnectInstanceConfigResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const InstanceConfig& GetConnectInstanceConfig() const{ return m_connectInstanceConfig; } + inline void SetConnectInstanceConfig(const InstanceConfig& value) { m_connectInstanceConfig = value; } + inline void SetConnectInstanceConfig(InstanceConfig&& value) { m_connectInstanceConfig = std::move(value); } + inline GetConnectInstanceConfigResult& WithConnectInstanceConfig(const InstanceConfig& value) { SetConnectInstanceConfig(value); return *this;} + inline GetConnectInstanceConfigResult& WithConnectInstanceConfig(InstanceConfig&& value) { SetConnectInstanceConfig(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetConnectInstanceConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetConnectInstanceConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetConnectInstanceConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + InstanceConfig m_connectInstanceConfig; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetInstanceOnboardingJobStatusRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetInstanceOnboardingJobStatusRequest.h new file mode 100644 index 00000000000..a08034b6b6b --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetInstanceOnboardingJobStatusRequest.h @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for GetInstanceOnboardingJobStatus API.

See Also:

+ * AWS + * API Reference

+ */ + class GetInstanceOnboardingJobStatusRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API GetInstanceOnboardingJobStatusRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetInstanceOnboardingJobStatus"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; } + inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; } + inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; } + inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); } + inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); } + inline GetInstanceOnboardingJobStatusRequest& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;} + inline GetInstanceOnboardingJobStatusRequest& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;} + inline GetInstanceOnboardingJobStatusRequest& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;} + ///@} + private: + + Aws::String m_connectInstanceId; + bool m_connectInstanceIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetInstanceOnboardingJobStatusResult.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetInstanceOnboardingJobStatusResult.h new file mode 100644 index 00000000000..f876143d7dc --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/GetInstanceOnboardingJobStatusResult.h @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + /** + *

The response for GetInstanceOnboardingJobStatus API.

See Also:

+ * AWS + * API Reference

+ */ + class GetInstanceOnboardingJobStatusResult + { + public: + AWS_CONNECTCAMPAIGNSV2_API GetInstanceOnboardingJobStatusResult(); + AWS_CONNECTCAMPAIGNSV2_API GetInstanceOnboardingJobStatusResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECTCAMPAIGNSV2_API GetInstanceOnboardingJobStatusResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const InstanceOnboardingJobStatus& GetConnectInstanceOnboardingJobStatus() const{ return m_connectInstanceOnboardingJobStatus; } + inline void SetConnectInstanceOnboardingJobStatus(const InstanceOnboardingJobStatus& value) { m_connectInstanceOnboardingJobStatus = value; } + inline void SetConnectInstanceOnboardingJobStatus(InstanceOnboardingJobStatus&& value) { m_connectInstanceOnboardingJobStatus = std::move(value); } + inline GetInstanceOnboardingJobStatusResult& WithConnectInstanceOnboardingJobStatus(const InstanceOnboardingJobStatus& value) { SetConnectInstanceOnboardingJobStatus(value); return *this;} + inline GetInstanceOnboardingJobStatusResult& WithConnectInstanceOnboardingJobStatus(InstanceOnboardingJobStatus&& value) { SetConnectInstanceOnboardingJobStatus(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetInstanceOnboardingJobStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetInstanceOnboardingJobStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetInstanceOnboardingJobStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + InstanceOnboardingJobStatus m_connectInstanceOnboardingJobStatus; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceConfig.h new file mode 100644 index 00000000000..822ab139bb2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceConfig.h @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Instance config object

See Also:

AWS + * API Reference

+ */ + class InstanceConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API InstanceConfig(); + AWS_CONNECTCAMPAIGNSV2_API InstanceConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API InstanceConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; } + inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; } + inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; } + inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); } + inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); } + inline InstanceConfig& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;} + inline InstanceConfig& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;} + inline InstanceConfig& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetServiceLinkedRoleArn() const{ return m_serviceLinkedRoleArn; } + inline bool ServiceLinkedRoleArnHasBeenSet() const { return m_serviceLinkedRoleArnHasBeenSet; } + inline void SetServiceLinkedRoleArn(const Aws::String& value) { m_serviceLinkedRoleArnHasBeenSet = true; m_serviceLinkedRoleArn = value; } + inline void SetServiceLinkedRoleArn(Aws::String&& value) { m_serviceLinkedRoleArnHasBeenSet = true; m_serviceLinkedRoleArn = std::move(value); } + inline void SetServiceLinkedRoleArn(const char* value) { m_serviceLinkedRoleArnHasBeenSet = true; m_serviceLinkedRoleArn.assign(value); } + inline InstanceConfig& WithServiceLinkedRoleArn(const Aws::String& value) { SetServiceLinkedRoleArn(value); return *this;} + inline InstanceConfig& WithServiceLinkedRoleArn(Aws::String&& value) { SetServiceLinkedRoleArn(std::move(value)); return *this;} + inline InstanceConfig& WithServiceLinkedRoleArn(const char* value) { SetServiceLinkedRoleArn(value); return *this;} + ///@} + + ///@{ + + inline const EncryptionConfig& GetEncryptionConfig() const{ return m_encryptionConfig; } + inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; } + inline void SetEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = value; } + inline void SetEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::move(value); } + inline InstanceConfig& WithEncryptionConfig(const EncryptionConfig& value) { SetEncryptionConfig(value); return *this;} + inline InstanceConfig& WithEncryptionConfig(EncryptionConfig&& value) { SetEncryptionConfig(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_connectInstanceId; + bool m_connectInstanceIdHasBeenSet = false; + + Aws::String m_serviceLinkedRoleArn; + bool m_serviceLinkedRoleArnHasBeenSet = false; + + EncryptionConfig m_encryptionConfig; + bool m_encryptionConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceIdFilter.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceIdFilter.h new file mode 100644 index 00000000000..998a9cf76c2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceIdFilter.h @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Connect instance identifier filter

See Also:

AWS + * API Reference

+ */ + class InstanceIdFilter + { + public: + AWS_CONNECTCAMPAIGNSV2_API InstanceIdFilter(); + AWS_CONNECTCAMPAIGNSV2_API InstanceIdFilter(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API InstanceIdFilter& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetValue() const{ return m_value; } + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } + inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } + inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } + inline InstanceIdFilter& WithValue(const Aws::String& value) { SetValue(value); return *this;} + inline InstanceIdFilter& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} + inline InstanceIdFilter& WithValue(const char* value) { SetValue(value); return *this;} + ///@} + + ///@{ + + inline const InstanceIdFilterOperator& GetOperator() const{ return m_operator; } + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + inline void SetOperator(const InstanceIdFilterOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + inline void SetOperator(InstanceIdFilterOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + inline InstanceIdFilter& WithOperator(const InstanceIdFilterOperator& value) { SetOperator(value); return *this;} + inline InstanceIdFilter& WithOperator(InstanceIdFilterOperator&& value) { SetOperator(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_value; + bool m_valueHasBeenSet = false; + + InstanceIdFilterOperator m_operator; + bool m_operatorHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceIdFilterOperator.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceIdFilterOperator.h new file mode 100644 index 00000000000..5eed200b0be --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceIdFilterOperator.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class InstanceIdFilterOperator + { + NOT_SET, + Eq + }; + +namespace InstanceIdFilterOperatorMapper +{ +AWS_CONNECTCAMPAIGNSV2_API InstanceIdFilterOperator GetInstanceIdFilterOperatorForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForInstanceIdFilterOperator(InstanceIdFilterOperator value); +} // namespace InstanceIdFilterOperatorMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceOnboardingJobFailureCode.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceOnboardingJobFailureCode.h new file mode 100644 index 00000000000..24d4e426476 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceOnboardingJobFailureCode.h @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class InstanceOnboardingJobFailureCode + { + NOT_SET, + EVENT_BRIDGE_ACCESS_DENIED, + EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED, + IAM_ACCESS_DENIED, + KMS_ACCESS_DENIED, + KMS_KEY_NOT_FOUND, + INTERNAL_FAILURE + }; + +namespace InstanceOnboardingJobFailureCodeMapper +{ +AWS_CONNECTCAMPAIGNSV2_API InstanceOnboardingJobFailureCode GetInstanceOnboardingJobFailureCodeForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForInstanceOnboardingJobFailureCode(InstanceOnboardingJobFailureCode value); +} // namespace InstanceOnboardingJobFailureCodeMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceOnboardingJobStatus.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceOnboardingJobStatus.h new file mode 100644 index 00000000000..bbaeafcaf92 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceOnboardingJobStatus.h @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Instance onboarding job status object

See Also:

AWS + * API Reference

+ */ + class InstanceOnboardingJobStatus + { + public: + AWS_CONNECTCAMPAIGNSV2_API InstanceOnboardingJobStatus(); + AWS_CONNECTCAMPAIGNSV2_API InstanceOnboardingJobStatus(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API InstanceOnboardingJobStatus& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; } + inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; } + inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; } + inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); } + inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); } + inline InstanceOnboardingJobStatus& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;} + inline InstanceOnboardingJobStatus& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;} + inline InstanceOnboardingJobStatus& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;} + ///@} + + ///@{ + + inline const InstanceOnboardingJobStatusCode& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const InstanceOnboardingJobStatusCode& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(InstanceOnboardingJobStatusCode&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline InstanceOnboardingJobStatus& WithStatus(const InstanceOnboardingJobStatusCode& value) { SetStatus(value); return *this;} + inline InstanceOnboardingJobStatus& WithStatus(InstanceOnboardingJobStatusCode&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const InstanceOnboardingJobFailureCode& GetFailureCode() const{ return m_failureCode; } + inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; } + inline void SetFailureCode(const InstanceOnboardingJobFailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; } + inline void SetFailureCode(InstanceOnboardingJobFailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); } + inline InstanceOnboardingJobStatus& WithFailureCode(const InstanceOnboardingJobFailureCode& value) { SetFailureCode(value); return *this;} + inline InstanceOnboardingJobStatus& WithFailureCode(InstanceOnboardingJobFailureCode&& value) { SetFailureCode(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_connectInstanceId; + bool m_connectInstanceIdHasBeenSet = false; + + InstanceOnboardingJobStatusCode m_status; + bool m_statusHasBeenSet = false; + + InstanceOnboardingJobFailureCode m_failureCode; + bool m_failureCodeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceOnboardingJobStatusCode.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceOnboardingJobStatusCode.h new file mode 100644 index 00000000000..b8fbb1894f0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InstanceOnboardingJobStatusCode.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class InstanceOnboardingJobStatusCode + { + NOT_SET, + IN_PROGRESS, + SUCCEEDED, + FAILED + }; + +namespace InstanceOnboardingJobStatusCodeMapper +{ +AWS_CONNECTCAMPAIGNSV2_API InstanceOnboardingJobStatusCode GetInstanceOnboardingJobStatusCodeForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForInstanceOnboardingJobStatusCode(InstanceOnboardingJobStatusCode value); +} // namespace InstanceOnboardingJobStatusCodeMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/IntegrationConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/IntegrationConfig.h new file mode 100644 index 00000000000..5c42b503981 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/IntegrationConfig.h @@ -0,0 +1,71 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Integration config for Connect Instance

See Also:

AWS + * API Reference

+ */ + class IntegrationConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API IntegrationConfig(); + AWS_CONNECTCAMPAIGNSV2_API IntegrationConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API IntegrationConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const CustomerProfilesIntegrationConfig& GetCustomerProfiles() const{ return m_customerProfiles; } + inline bool CustomerProfilesHasBeenSet() const { return m_customerProfilesHasBeenSet; } + inline void SetCustomerProfiles(const CustomerProfilesIntegrationConfig& value) { m_customerProfilesHasBeenSet = true; m_customerProfiles = value; } + inline void SetCustomerProfiles(CustomerProfilesIntegrationConfig&& value) { m_customerProfilesHasBeenSet = true; m_customerProfiles = std::move(value); } + inline IntegrationConfig& WithCustomerProfiles(const CustomerProfilesIntegrationConfig& value) { SetCustomerProfiles(value); return *this;} + inline IntegrationConfig& WithCustomerProfiles(CustomerProfilesIntegrationConfig&& value) { SetCustomerProfiles(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const QConnectIntegrationConfig& GetQConnect() const{ return m_qConnect; } + inline bool QConnectHasBeenSet() const { return m_qConnectHasBeenSet; } + inline void SetQConnect(const QConnectIntegrationConfig& value) { m_qConnectHasBeenSet = true; m_qConnect = value; } + inline void SetQConnect(QConnectIntegrationConfig&& value) { m_qConnectHasBeenSet = true; m_qConnect = std::move(value); } + inline IntegrationConfig& WithQConnect(const QConnectIntegrationConfig& value) { SetQConnect(value); return *this;} + inline IntegrationConfig& WithQConnect(QConnectIntegrationConfig&& value) { SetQConnect(std::move(value)); return *this;} + ///@} + private: + + CustomerProfilesIntegrationConfig m_customerProfiles; + bool m_customerProfilesHasBeenSet = false; + + QConnectIntegrationConfig m_qConnect; + bool m_qConnectHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/IntegrationIdentifier.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/IntegrationIdentifier.h new file mode 100644 index 00000000000..f18bb9e655f --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/IntegrationIdentifier.h @@ -0,0 +1,71 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Integration identifier for Connect instance

See Also:

AWS + * API Reference

+ */ + class IntegrationIdentifier + { + public: + AWS_CONNECTCAMPAIGNSV2_API IntegrationIdentifier(); + AWS_CONNECTCAMPAIGNSV2_API IntegrationIdentifier(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API IntegrationIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const CustomerProfilesIntegrationIdentifier& GetCustomerProfiles() const{ return m_customerProfiles; } + inline bool CustomerProfilesHasBeenSet() const { return m_customerProfilesHasBeenSet; } + inline void SetCustomerProfiles(const CustomerProfilesIntegrationIdentifier& value) { m_customerProfilesHasBeenSet = true; m_customerProfiles = value; } + inline void SetCustomerProfiles(CustomerProfilesIntegrationIdentifier&& value) { m_customerProfilesHasBeenSet = true; m_customerProfiles = std::move(value); } + inline IntegrationIdentifier& WithCustomerProfiles(const CustomerProfilesIntegrationIdentifier& value) { SetCustomerProfiles(value); return *this;} + inline IntegrationIdentifier& WithCustomerProfiles(CustomerProfilesIntegrationIdentifier&& value) { SetCustomerProfiles(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const QConnectIntegrationIdentifier& GetQConnect() const{ return m_qConnect; } + inline bool QConnectHasBeenSet() const { return m_qConnectHasBeenSet; } + inline void SetQConnect(const QConnectIntegrationIdentifier& value) { m_qConnectHasBeenSet = true; m_qConnect = value; } + inline void SetQConnect(QConnectIntegrationIdentifier&& value) { m_qConnectHasBeenSet = true; m_qConnect = std::move(value); } + inline IntegrationIdentifier& WithQConnect(const QConnectIntegrationIdentifier& value) { SetQConnect(value); return *this;} + inline IntegrationIdentifier& WithQConnect(QConnectIntegrationIdentifier&& value) { SetQConnect(std::move(value)); return *this;} + ///@} + private: + + CustomerProfilesIntegrationIdentifier m_customerProfiles; + bool m_customerProfilesHasBeenSet = false; + + QConnectIntegrationIdentifier m_qConnect; + bool m_qConnectHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/IntegrationSummary.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/IntegrationSummary.h new file mode 100644 index 00000000000..4e1e44b4029 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/IntegrationSummary.h @@ -0,0 +1,71 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Integration summary for Connect instance.

See Also:

AWS + * API Reference

+ */ + class IntegrationSummary + { + public: + AWS_CONNECTCAMPAIGNSV2_API IntegrationSummary(); + AWS_CONNECTCAMPAIGNSV2_API IntegrationSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API IntegrationSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const CustomerProfilesIntegrationSummary& GetCustomerProfiles() const{ return m_customerProfiles; } + inline bool CustomerProfilesHasBeenSet() const { return m_customerProfilesHasBeenSet; } + inline void SetCustomerProfiles(const CustomerProfilesIntegrationSummary& value) { m_customerProfilesHasBeenSet = true; m_customerProfiles = value; } + inline void SetCustomerProfiles(CustomerProfilesIntegrationSummary&& value) { m_customerProfilesHasBeenSet = true; m_customerProfiles = std::move(value); } + inline IntegrationSummary& WithCustomerProfiles(const CustomerProfilesIntegrationSummary& value) { SetCustomerProfiles(value); return *this;} + inline IntegrationSummary& WithCustomerProfiles(CustomerProfilesIntegrationSummary&& value) { SetCustomerProfiles(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const QConnectIntegrationSummary& GetQConnect() const{ return m_qConnect; } + inline bool QConnectHasBeenSet() const { return m_qConnectHasBeenSet; } + inline void SetQConnect(const QConnectIntegrationSummary& value) { m_qConnectHasBeenSet = true; m_qConnect = value; } + inline void SetQConnect(QConnectIntegrationSummary&& value) { m_qConnectHasBeenSet = true; m_qConnect = std::move(value); } + inline IntegrationSummary& WithQConnect(const QConnectIntegrationSummary& value) { SetQConnect(value); return *this;} + inline IntegrationSummary& WithQConnect(QConnectIntegrationSummary&& value) { SetQConnect(std::move(value)); return *this;} + ///@} + private: + + CustomerProfilesIntegrationSummary m_customerProfiles; + bool m_customerProfilesHasBeenSet = false; + + QConnectIntegrationSummary m_qConnect; + bool m_qConnectHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InternalServerException.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InternalServerException.h new file mode 100644 index 00000000000..fa84cceea16 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InternalServerException.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Request processing failed because of an error or failure with the + * service.

See Also:

AWS + * API Reference

+ */ + class InternalServerException + { + public: + AWS_CONNECTCAMPAIGNSV2_API InternalServerException(); + AWS_CONNECTCAMPAIGNSV2_API InternalServerException(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API InternalServerException& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline InternalServerException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline InternalServerException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline InternalServerException& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetXAmzErrorType() const{ return m_xAmzErrorType; } + inline bool XAmzErrorTypeHasBeenSet() const { return m_xAmzErrorTypeHasBeenSet; } + inline void SetXAmzErrorType(const Aws::String& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = value; } + inline void SetXAmzErrorType(Aws::String&& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = std::move(value); } + inline void SetXAmzErrorType(const char* value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType.assign(value); } + inline InternalServerException& WithXAmzErrorType(const Aws::String& value) { SetXAmzErrorType(value); return *this;} + inline InternalServerException& WithXAmzErrorType(Aws::String&& value) { SetXAmzErrorType(std::move(value)); return *this;} + inline InternalServerException& WithXAmzErrorType(const char* value) { SetXAmzErrorType(value); return *this;} + ///@} + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + Aws::String m_xAmzErrorType; + bool m_xAmzErrorTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InvalidCampaignStateException.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InvalidCampaignStateException.h new file mode 100644 index 00000000000..062a3f053b7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InvalidCampaignStateException.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request could not be processed because of conflict in the current state + * of the campaign.

See Also:

AWS + * API Reference

+ */ + class InvalidCampaignStateException + { + public: + AWS_CONNECTCAMPAIGNSV2_API InvalidCampaignStateException(); + AWS_CONNECTCAMPAIGNSV2_API InvalidCampaignStateException(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API InvalidCampaignStateException& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const CampaignState& GetState() const{ return m_state; } + inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } + inline void SetState(const CampaignState& value) { m_stateHasBeenSet = true; m_state = value; } + inline void SetState(CampaignState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } + inline InvalidCampaignStateException& WithState(const CampaignState& value) { SetState(value); return *this;} + inline InvalidCampaignStateException& WithState(CampaignState&& value) { SetState(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline InvalidCampaignStateException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline InvalidCampaignStateException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline InvalidCampaignStateException& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetXAmzErrorType() const{ return m_xAmzErrorType; } + inline bool XAmzErrorTypeHasBeenSet() const { return m_xAmzErrorTypeHasBeenSet; } + inline void SetXAmzErrorType(const Aws::String& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = value; } + inline void SetXAmzErrorType(Aws::String&& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = std::move(value); } + inline void SetXAmzErrorType(const char* value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType.assign(value); } + inline InvalidCampaignStateException& WithXAmzErrorType(const Aws::String& value) { SetXAmzErrorType(value); return *this;} + inline InvalidCampaignStateException& WithXAmzErrorType(Aws::String&& value) { SetXAmzErrorType(std::move(value)); return *this;} + inline InvalidCampaignStateException& WithXAmzErrorType(const char* value) { SetXAmzErrorType(value); return *this;} + ///@} + private: + + CampaignState m_state; + bool m_stateHasBeenSet = false; + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + Aws::String m_xAmzErrorType; + bool m_xAmzErrorTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InvalidStateException.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InvalidStateException.h new file mode 100644 index 00000000000..3760e92cd5e --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/InvalidStateException.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request could not be processed because of conflict in the current + * state.

See Also:

AWS + * API Reference

+ */ + class InvalidStateException + { + public: + AWS_CONNECTCAMPAIGNSV2_API InvalidStateException(); + AWS_CONNECTCAMPAIGNSV2_API InvalidStateException(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API InvalidStateException& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline InvalidStateException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline InvalidStateException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline InvalidStateException& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetXAmzErrorType() const{ return m_xAmzErrorType; } + inline bool XAmzErrorTypeHasBeenSet() const { return m_xAmzErrorTypeHasBeenSet; } + inline void SetXAmzErrorType(const Aws::String& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = value; } + inline void SetXAmzErrorType(Aws::String&& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = std::move(value); } + inline void SetXAmzErrorType(const char* value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType.assign(value); } + inline InvalidStateException& WithXAmzErrorType(const Aws::String& value) { SetXAmzErrorType(value); return *this;} + inline InvalidStateException& WithXAmzErrorType(Aws::String&& value) { SetXAmzErrorType(std::move(value)); return *this;} + inline InvalidStateException& WithXAmzErrorType(const char* value) { SetXAmzErrorType(value); return *this;} + ///@} + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + Aws::String m_xAmzErrorType; + bool m_xAmzErrorTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListCampaignsRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListCampaignsRequest.h new file mode 100644 index 00000000000..c80572f10db --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListCampaignsRequest.h @@ -0,0 +1,82 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for ListCampaigns API.

See Also:

AWS + * API Reference

+ */ + class ListCampaignsRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API ListCampaignsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListCampaigns"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListCampaignsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListCampaignsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListCampaignsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListCampaignsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const CampaignFilters& GetFilters() const{ return m_filters; } + inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } + inline void SetFilters(const CampaignFilters& value) { m_filtersHasBeenSet = true; m_filters = value; } + inline void SetFilters(CampaignFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } + inline ListCampaignsRequest& WithFilters(const CampaignFilters& value) { SetFilters(value); return *this;} + inline ListCampaignsRequest& WithFilters(CampaignFilters&& value) { SetFilters(std::move(value)); return *this;} + ///@} + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + CampaignFilters m_filters; + bool m_filtersHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListCampaignsResult.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListCampaignsResult.h new file mode 100644 index 00000000000..241680eaae3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListCampaignsResult.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + /** + *

The response for ListCampaigns API.

See Also:

AWS + * API Reference

+ */ + class ListCampaignsResult + { + public: + AWS_CONNECTCAMPAIGNSV2_API ListCampaignsResult(); + AWS_CONNECTCAMPAIGNSV2_API ListCampaignsResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECTCAMPAIGNSV2_API ListCampaignsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListCampaignsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListCampaignsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListCampaignsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Vector& GetCampaignSummaryList() const{ return m_campaignSummaryList; } + inline void SetCampaignSummaryList(const Aws::Vector& value) { m_campaignSummaryList = value; } + inline void SetCampaignSummaryList(Aws::Vector&& value) { m_campaignSummaryList = std::move(value); } + inline ListCampaignsResult& WithCampaignSummaryList(const Aws::Vector& value) { SetCampaignSummaryList(value); return *this;} + inline ListCampaignsResult& WithCampaignSummaryList(Aws::Vector&& value) { SetCampaignSummaryList(std::move(value)); return *this;} + inline ListCampaignsResult& AddCampaignSummaryList(const CampaignSummary& value) { m_campaignSummaryList.push_back(value); return *this; } + inline ListCampaignsResult& AddCampaignSummaryList(CampaignSummary&& value) { m_campaignSummaryList.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListCampaignsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListCampaignsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListCampaignsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_nextToken; + + Aws::Vector m_campaignSummaryList; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListConnectInstanceIntegrationsRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListConnectInstanceIntegrationsRequest.h new file mode 100644 index 00000000000..0b34524f8ba --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListConnectInstanceIntegrationsRequest.h @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for ListConnectInstanceIntegrations API.

See Also:

+ * AWS + * API Reference

+ */ + class ListConnectInstanceIntegrationsRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API ListConnectInstanceIntegrationsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListConnectInstanceIntegrations"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + AWS_CONNECTCAMPAIGNSV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + + inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; } + inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; } + inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; } + inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); } + inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); } + inline ListConnectInstanceIntegrationsRequest& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;} + inline ListConnectInstanceIntegrationsRequest& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;} + inline ListConnectInstanceIntegrationsRequest& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;} + ///@} + + ///@{ + + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListConnectInstanceIntegrationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListConnectInstanceIntegrationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListConnectInstanceIntegrationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListConnectInstanceIntegrationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + private: + + Aws::String m_connectInstanceId; + bool m_connectInstanceIdHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListConnectInstanceIntegrationsResult.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListConnectInstanceIntegrationsResult.h new file mode 100644 index 00000000000..14c8b9f13c3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListConnectInstanceIntegrationsResult.h @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + /** + *

The response for ListConnectInstanceIntegrations API.

See + * Also:

AWS + * API Reference

+ */ + class ListConnectInstanceIntegrationsResult + { + public: + AWS_CONNECTCAMPAIGNSV2_API ListConnectInstanceIntegrationsResult(); + AWS_CONNECTCAMPAIGNSV2_API ListConnectInstanceIntegrationsResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECTCAMPAIGNSV2_API ListConnectInstanceIntegrationsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListConnectInstanceIntegrationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListConnectInstanceIntegrationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListConnectInstanceIntegrationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Vector& GetIntegrationSummaryList() const{ return m_integrationSummaryList; } + inline void SetIntegrationSummaryList(const Aws::Vector& value) { m_integrationSummaryList = value; } + inline void SetIntegrationSummaryList(Aws::Vector&& value) { m_integrationSummaryList = std::move(value); } + inline ListConnectInstanceIntegrationsResult& WithIntegrationSummaryList(const Aws::Vector& value) { SetIntegrationSummaryList(value); return *this;} + inline ListConnectInstanceIntegrationsResult& WithIntegrationSummaryList(Aws::Vector&& value) { SetIntegrationSummaryList(std::move(value)); return *this;} + inline ListConnectInstanceIntegrationsResult& AddIntegrationSummaryList(const IntegrationSummary& value) { m_integrationSummaryList.push_back(value); return *this; } + inline ListConnectInstanceIntegrationsResult& AddIntegrationSummaryList(IntegrationSummary&& value) { m_integrationSummaryList.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListConnectInstanceIntegrationsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListConnectInstanceIntegrationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListConnectInstanceIntegrationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_nextToken; + + Aws::Vector m_integrationSummaryList; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListTagsForResourceRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListTagsForResourceRequest.h new file mode 100644 index 00000000000..49d70480ecc --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListTagsForResourceRequest.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for ListTagsForResource API.

See Also:

AWS + * API Reference

+ */ + class ListTagsForResourceRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API ListTagsForResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetArn() const{ return m_arn; } + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + inline ListTagsForResourceRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline ListTagsForResourceRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline ListTagsForResourceRequest& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + private: + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListTagsForResourceResult.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListTagsForResourceResult.h new file mode 100644 index 00000000000..4b035eb591a --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ListTagsForResourceResult.h @@ -0,0 +1,76 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + /** + *

The request for ListTagsForResource API.

See Also:

AWS + * API Reference

+ */ + class ListTagsForResourceResult + { + public: + AWS_CONNECTCAMPAIGNSV2_API ListTagsForResourceResult(); + AWS_CONNECTCAMPAIGNSV2_API ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECTCAMPAIGNSV2_API ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::Map& GetTags() const{ return m_tags; } + inline void SetTags(const Aws::Map& value) { m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + inline ListTagsForResourceResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline ListTagsForResourceResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline ListTagsForResourceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + inline ListTagsForResourceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + inline ListTagsForResourceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + inline ListTagsForResourceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline ListTagsForResourceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + inline ListTagsForResourceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + inline ListTagsForResourceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListTagsForResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListTagsForResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListTagsForResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Map m_tags; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/LocalTimeZoneConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/LocalTimeZoneConfig.h new file mode 100644 index 00000000000..a233c8c55fc --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/LocalTimeZoneConfig.h @@ -0,0 +1,76 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Local time zone config

See Also:

AWS + * API Reference

+ */ + class LocalTimeZoneConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API LocalTimeZoneConfig(); + AWS_CONNECTCAMPAIGNSV2_API LocalTimeZoneConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API LocalTimeZoneConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetDefaultTimeZone() const{ return m_defaultTimeZone; } + inline bool DefaultTimeZoneHasBeenSet() const { return m_defaultTimeZoneHasBeenSet; } + inline void SetDefaultTimeZone(const Aws::String& value) { m_defaultTimeZoneHasBeenSet = true; m_defaultTimeZone = value; } + inline void SetDefaultTimeZone(Aws::String&& value) { m_defaultTimeZoneHasBeenSet = true; m_defaultTimeZone = std::move(value); } + inline void SetDefaultTimeZone(const char* value) { m_defaultTimeZoneHasBeenSet = true; m_defaultTimeZone.assign(value); } + inline LocalTimeZoneConfig& WithDefaultTimeZone(const Aws::String& value) { SetDefaultTimeZone(value); return *this;} + inline LocalTimeZoneConfig& WithDefaultTimeZone(Aws::String&& value) { SetDefaultTimeZone(std::move(value)); return *this;} + inline LocalTimeZoneConfig& WithDefaultTimeZone(const char* value) { SetDefaultTimeZone(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Vector& GetLocalTimeZoneDetection() const{ return m_localTimeZoneDetection; } + inline bool LocalTimeZoneDetectionHasBeenSet() const { return m_localTimeZoneDetectionHasBeenSet; } + inline void SetLocalTimeZoneDetection(const Aws::Vector& value) { m_localTimeZoneDetectionHasBeenSet = true; m_localTimeZoneDetection = value; } + inline void SetLocalTimeZoneDetection(Aws::Vector&& value) { m_localTimeZoneDetectionHasBeenSet = true; m_localTimeZoneDetection = std::move(value); } + inline LocalTimeZoneConfig& WithLocalTimeZoneDetection(const Aws::Vector& value) { SetLocalTimeZoneDetection(value); return *this;} + inline LocalTimeZoneConfig& WithLocalTimeZoneDetection(Aws::Vector&& value) { SetLocalTimeZoneDetection(std::move(value)); return *this;} + inline LocalTimeZoneConfig& AddLocalTimeZoneDetection(const LocalTimeZoneDetectionType& value) { m_localTimeZoneDetectionHasBeenSet = true; m_localTimeZoneDetection.push_back(value); return *this; } + inline LocalTimeZoneConfig& AddLocalTimeZoneDetection(LocalTimeZoneDetectionType&& value) { m_localTimeZoneDetectionHasBeenSet = true; m_localTimeZoneDetection.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::String m_defaultTimeZone; + bool m_defaultTimeZoneHasBeenSet = false; + + Aws::Vector m_localTimeZoneDetection; + bool m_localTimeZoneDetectionHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/LocalTimeZoneDetectionType.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/LocalTimeZoneDetectionType.h new file mode 100644 index 00000000000..e72d4f81f9f --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/LocalTimeZoneDetectionType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + enum class LocalTimeZoneDetectionType + { + NOT_SET, + ZIP_CODE, + AREA_CODE + }; + +namespace LocalTimeZoneDetectionTypeMapper +{ +AWS_CONNECTCAMPAIGNSV2_API LocalTimeZoneDetectionType GetLocalTimeZoneDetectionTypeForName(const Aws::String& name); + +AWS_CONNECTCAMPAIGNSV2_API Aws::String GetNameForLocalTimeZoneDetectionType(LocalTimeZoneDetectionType value); +} // namespace LocalTimeZoneDetectionTypeMapper +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/OpenHours.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/OpenHours.h new file mode 100644 index 00000000000..8cdb8eeba70 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/OpenHours.h @@ -0,0 +1,64 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Open Hours config

See Also:

AWS + * API Reference

+ */ + class OpenHours + { + public: + AWS_CONNECTCAMPAIGNSV2_API OpenHours(); + AWS_CONNECTCAMPAIGNSV2_API OpenHours(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API OpenHours& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::Map>& GetDailyHours() const{ return m_dailyHours; } + inline bool DailyHoursHasBeenSet() const { return m_dailyHoursHasBeenSet; } + inline void SetDailyHours(const Aws::Map>& value) { m_dailyHoursHasBeenSet = true; m_dailyHours = value; } + inline void SetDailyHours(Aws::Map>&& value) { m_dailyHoursHasBeenSet = true; m_dailyHours = std::move(value); } + inline OpenHours& WithDailyHours(const Aws::Map>& value) { SetDailyHours(value); return *this;} + inline OpenHours& WithDailyHours(Aws::Map>&& value) { SetDailyHours(std::move(value)); return *this;} + inline OpenHours& AddDailyHours(const DayOfWeek& key, const Aws::Vector& value) { m_dailyHoursHasBeenSet = true; m_dailyHours.emplace(key, value); return *this; } + inline OpenHours& AddDailyHours(DayOfWeek&& key, const Aws::Vector& value) { m_dailyHoursHasBeenSet = true; m_dailyHours.emplace(std::move(key), value); return *this; } + inline OpenHours& AddDailyHours(const DayOfWeek& key, Aws::Vector&& value) { m_dailyHoursHasBeenSet = true; m_dailyHours.emplace(key, std::move(value)); return *this; } + inline OpenHours& AddDailyHours(DayOfWeek&& key, Aws::Vector&& value) { m_dailyHoursHasBeenSet = true; m_dailyHours.emplace(std::move(key), std::move(value)); return *this; } + ///@} + private: + + Aws::Map> m_dailyHours; + bool m_dailyHoursHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/OutboundRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/OutboundRequest.h new file mode 100644 index 00000000000..17065064f26 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/OutboundRequest.h @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

An outbound request for a campaign.

See Also:

AWS + * API Reference

+ */ + class OutboundRequest + { + public: + AWS_CONNECTCAMPAIGNSV2_API OutboundRequest(); + AWS_CONNECTCAMPAIGNSV2_API OutboundRequest(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API OutboundRequest& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + inline OutboundRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + inline OutboundRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + inline OutboundRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; } + inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; } + inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; } + inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); } + inline OutboundRequest& WithExpirationTime(const Aws::Utils::DateTime& value) { SetExpirationTime(value); return *this;} + inline OutboundRequest& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const ChannelSubtypeParameters& GetChannelSubtypeParameters() const{ return m_channelSubtypeParameters; } + inline bool ChannelSubtypeParametersHasBeenSet() const { return m_channelSubtypeParametersHasBeenSet; } + inline void SetChannelSubtypeParameters(const ChannelSubtypeParameters& value) { m_channelSubtypeParametersHasBeenSet = true; m_channelSubtypeParameters = value; } + inline void SetChannelSubtypeParameters(ChannelSubtypeParameters&& value) { m_channelSubtypeParametersHasBeenSet = true; m_channelSubtypeParameters = std::move(value); } + inline OutboundRequest& WithChannelSubtypeParameters(const ChannelSubtypeParameters& value) { SetChannelSubtypeParameters(value); return *this;} + inline OutboundRequest& WithChannelSubtypeParameters(ChannelSubtypeParameters&& value) { SetChannelSubtypeParameters(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::Utils::DateTime m_expirationTime; + bool m_expirationTimeHasBeenSet = false; + + ChannelSubtypeParameters m_channelSubtypeParameters; + bool m_channelSubtypeParametersHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PauseCampaignRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PauseCampaignRequest.h new file mode 100644 index 00000000000..83916b53721 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PauseCampaignRequest.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for PauseCampaign API.

See Also:

AWS + * API Reference

+ */ + class PauseCampaignRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API PauseCampaignRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "PauseCampaign"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline PauseCampaignRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline PauseCampaignRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline PauseCampaignRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PredictiveConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PredictiveConfig.h new file mode 100644 index 00000000000..b2aa3631b2e --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PredictiveConfig.h @@ -0,0 +1,53 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Predictive config

See Also:

AWS + * API Reference

+ */ + class PredictiveConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API PredictiveConfig(); + AWS_CONNECTCAMPAIGNSV2_API PredictiveConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API PredictiveConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline double GetBandwidthAllocation() const{ return m_bandwidthAllocation; } + inline bool BandwidthAllocationHasBeenSet() const { return m_bandwidthAllocationHasBeenSet; } + inline void SetBandwidthAllocation(double value) { m_bandwidthAllocationHasBeenSet = true; m_bandwidthAllocation = value; } + inline PredictiveConfig& WithBandwidthAllocation(double value) { SetBandwidthAllocation(value); return *this;} + ///@} + private: + + double m_bandwidthAllocation; + bool m_bandwidthAllocationHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ProgressiveConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ProgressiveConfig.h new file mode 100644 index 00000000000..f9d63103419 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ProgressiveConfig.h @@ -0,0 +1,53 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Progressive config

See Also:

AWS + * API Reference

+ */ + class ProgressiveConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API ProgressiveConfig(); + AWS_CONNECTCAMPAIGNSV2_API ProgressiveConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API ProgressiveConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline double GetBandwidthAllocation() const{ return m_bandwidthAllocation; } + inline bool BandwidthAllocationHasBeenSet() const { return m_bandwidthAllocationHasBeenSet; } + inline void SetBandwidthAllocation(double value) { m_bandwidthAllocationHasBeenSet = true; m_bandwidthAllocation = value; } + inline ProgressiveConfig& WithBandwidthAllocation(double value) { SetBandwidthAllocation(value); return *this;} + ///@} + private: + + double m_bandwidthAllocation; + bool m_bandwidthAllocationHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PutConnectInstanceIntegrationRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PutConnectInstanceIntegrationRequest.h new file mode 100644 index 00000000000..2b1a7c119d5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PutConnectInstanceIntegrationRequest.h @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for PutConnectInstanceIntegration API.

See Also:

+ * AWS + * API Reference

+ */ + class PutConnectInstanceIntegrationRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API PutConnectInstanceIntegrationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "PutConnectInstanceIntegration"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; } + inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; } + inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; } + inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); } + inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); } + inline PutConnectInstanceIntegrationRequest& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;} + inline PutConnectInstanceIntegrationRequest& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;} + inline PutConnectInstanceIntegrationRequest& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;} + ///@} + + ///@{ + + inline const IntegrationConfig& GetIntegrationConfig() const{ return m_integrationConfig; } + inline bool IntegrationConfigHasBeenSet() const { return m_integrationConfigHasBeenSet; } + inline void SetIntegrationConfig(const IntegrationConfig& value) { m_integrationConfigHasBeenSet = true; m_integrationConfig = value; } + inline void SetIntegrationConfig(IntegrationConfig&& value) { m_integrationConfigHasBeenSet = true; m_integrationConfig = std::move(value); } + inline PutConnectInstanceIntegrationRequest& WithIntegrationConfig(const IntegrationConfig& value) { SetIntegrationConfig(value); return *this;} + inline PutConnectInstanceIntegrationRequest& WithIntegrationConfig(IntegrationConfig&& value) { SetIntegrationConfig(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_connectInstanceId; + bool m_connectInstanceIdHasBeenSet = false; + + IntegrationConfig m_integrationConfig; + bool m_integrationConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PutOutboundRequestBatchRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PutOutboundRequestBatchRequest.h new file mode 100644 index 00000000000..1510d750062 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PutOutboundRequestBatchRequest.h @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for PutOutboundRequestBatch API.

See Also:

AWS + * API Reference

+ */ + class PutOutboundRequestBatchRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API PutOutboundRequestBatchRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "PutOutboundRequestBatch"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline PutOutboundRequestBatchRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline PutOutboundRequestBatchRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline PutOutboundRequestBatchRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Vector& GetOutboundRequests() const{ return m_outboundRequests; } + inline bool OutboundRequestsHasBeenSet() const { return m_outboundRequestsHasBeenSet; } + inline void SetOutboundRequests(const Aws::Vector& value) { m_outboundRequestsHasBeenSet = true; m_outboundRequests = value; } + inline void SetOutboundRequests(Aws::Vector&& value) { m_outboundRequestsHasBeenSet = true; m_outboundRequests = std::move(value); } + inline PutOutboundRequestBatchRequest& WithOutboundRequests(const Aws::Vector& value) { SetOutboundRequests(value); return *this;} + inline PutOutboundRequestBatchRequest& WithOutboundRequests(Aws::Vector&& value) { SetOutboundRequests(std::move(value)); return *this;} + inline PutOutboundRequestBatchRequest& AddOutboundRequests(const OutboundRequest& value) { m_outboundRequestsHasBeenSet = true; m_outboundRequests.push_back(value); return *this; } + inline PutOutboundRequestBatchRequest& AddOutboundRequests(OutboundRequest&& value) { m_outboundRequestsHasBeenSet = true; m_outboundRequests.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::Vector m_outboundRequests; + bool m_outboundRequestsHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PutOutboundRequestBatchResult.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PutOutboundRequestBatchResult.h new file mode 100644 index 00000000000..99c99c96758 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/PutOutboundRequestBatchResult.h @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + /** + *

The response for PutOutboundRequestBatch API.

See Also:

AWS + * API Reference

+ */ + class PutOutboundRequestBatchResult + { + public: + AWS_CONNECTCAMPAIGNSV2_API PutOutboundRequestBatchResult(); + AWS_CONNECTCAMPAIGNSV2_API PutOutboundRequestBatchResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECTCAMPAIGNSV2_API PutOutboundRequestBatchResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::Vector& GetSuccessfulRequests() const{ return m_successfulRequests; } + inline void SetSuccessfulRequests(const Aws::Vector& value) { m_successfulRequests = value; } + inline void SetSuccessfulRequests(Aws::Vector&& value) { m_successfulRequests = std::move(value); } + inline PutOutboundRequestBatchResult& WithSuccessfulRequests(const Aws::Vector& value) { SetSuccessfulRequests(value); return *this;} + inline PutOutboundRequestBatchResult& WithSuccessfulRequests(Aws::Vector&& value) { SetSuccessfulRequests(std::move(value)); return *this;} + inline PutOutboundRequestBatchResult& AddSuccessfulRequests(const SuccessfulRequest& value) { m_successfulRequests.push_back(value); return *this; } + inline PutOutboundRequestBatchResult& AddSuccessfulRequests(SuccessfulRequest&& value) { m_successfulRequests.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::Vector& GetFailedRequests() const{ return m_failedRequests; } + inline void SetFailedRequests(const Aws::Vector& value) { m_failedRequests = value; } + inline void SetFailedRequests(Aws::Vector&& value) { m_failedRequests = std::move(value); } + inline PutOutboundRequestBatchResult& WithFailedRequests(const Aws::Vector& value) { SetFailedRequests(value); return *this;} + inline PutOutboundRequestBatchResult& WithFailedRequests(Aws::Vector&& value) { SetFailedRequests(std::move(value)); return *this;} + inline PutOutboundRequestBatchResult& AddFailedRequests(const FailedRequest& value) { m_failedRequests.push_back(value); return *this; } + inline PutOutboundRequestBatchResult& AddFailedRequests(FailedRequest&& value) { m_failedRequests.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline PutOutboundRequestBatchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline PutOutboundRequestBatchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline PutOutboundRequestBatchResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_successfulRequests; + + Aws::Vector m_failedRequests; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/QConnectIntegrationConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/QConnectIntegrationConfig.h new file mode 100644 index 00000000000..4f177bddb33 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/QConnectIntegrationConfig.h @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Q Connect integration config

See Also:

AWS + * API Reference

+ */ + class QConnectIntegrationConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API QConnectIntegrationConfig(); + AWS_CONNECTCAMPAIGNSV2_API QConnectIntegrationConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API QConnectIntegrationConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetKnowledgeBaseArn() const{ return m_knowledgeBaseArn; } + inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; } + inline void SetKnowledgeBaseArn(const Aws::String& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = value; } + inline void SetKnowledgeBaseArn(Aws::String&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::move(value); } + inline void SetKnowledgeBaseArn(const char* value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn.assign(value); } + inline QConnectIntegrationConfig& WithKnowledgeBaseArn(const Aws::String& value) { SetKnowledgeBaseArn(value); return *this;} + inline QConnectIntegrationConfig& WithKnowledgeBaseArn(Aws::String&& value) { SetKnowledgeBaseArn(std::move(value)); return *this;} + inline QConnectIntegrationConfig& WithKnowledgeBaseArn(const char* value) { SetKnowledgeBaseArn(value); return *this;} + ///@} + private: + + Aws::String m_knowledgeBaseArn; + bool m_knowledgeBaseArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/QConnectIntegrationIdentifier.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/QConnectIntegrationIdentifier.h new file mode 100644 index 00000000000..b1ef63503d7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/QConnectIntegrationIdentifier.h @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Q Connect integration identifier

See Also:

AWS + * API Reference

+ */ + class QConnectIntegrationIdentifier + { + public: + AWS_CONNECTCAMPAIGNSV2_API QConnectIntegrationIdentifier(); + AWS_CONNECTCAMPAIGNSV2_API QConnectIntegrationIdentifier(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API QConnectIntegrationIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetKnowledgeBaseArn() const{ return m_knowledgeBaseArn; } + inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; } + inline void SetKnowledgeBaseArn(const Aws::String& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = value; } + inline void SetKnowledgeBaseArn(Aws::String&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::move(value); } + inline void SetKnowledgeBaseArn(const char* value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn.assign(value); } + inline QConnectIntegrationIdentifier& WithKnowledgeBaseArn(const Aws::String& value) { SetKnowledgeBaseArn(value); return *this;} + inline QConnectIntegrationIdentifier& WithKnowledgeBaseArn(Aws::String&& value) { SetKnowledgeBaseArn(std::move(value)); return *this;} + inline QConnectIntegrationIdentifier& WithKnowledgeBaseArn(const char* value) { SetKnowledgeBaseArn(value); return *this;} + ///@} + private: + + Aws::String m_knowledgeBaseArn; + bool m_knowledgeBaseArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/QConnectIntegrationSummary.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/QConnectIntegrationSummary.h new file mode 100644 index 00000000000..0b77362fb81 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/QConnectIntegrationSummary.h @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Q Connect integration summary

See Also:

AWS + * API Reference

+ */ + class QConnectIntegrationSummary + { + public: + AWS_CONNECTCAMPAIGNSV2_API QConnectIntegrationSummary(); + AWS_CONNECTCAMPAIGNSV2_API QConnectIntegrationSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API QConnectIntegrationSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetKnowledgeBaseArn() const{ return m_knowledgeBaseArn; } + inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; } + inline void SetKnowledgeBaseArn(const Aws::String& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = value; } + inline void SetKnowledgeBaseArn(Aws::String&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::move(value); } + inline void SetKnowledgeBaseArn(const char* value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn.assign(value); } + inline QConnectIntegrationSummary& WithKnowledgeBaseArn(const Aws::String& value) { SetKnowledgeBaseArn(value); return *this;} + inline QConnectIntegrationSummary& WithKnowledgeBaseArn(Aws::String&& value) { SetKnowledgeBaseArn(std::move(value)); return *this;} + inline QConnectIntegrationSummary& WithKnowledgeBaseArn(const char* value) { SetKnowledgeBaseArn(value); return *this;} + ///@} + private: + + Aws::String m_knowledgeBaseArn; + bool m_knowledgeBaseArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ResourceNotFoundException.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ResourceNotFoundException.h new file mode 100644 index 00000000000..cdcca66b837 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ResourceNotFoundException.h @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The specified resource was not found.

See Also:

AWS + * API Reference

+ */ + class ResourceNotFoundException + { + public: + AWS_CONNECTCAMPAIGNSV2_API ResourceNotFoundException(); + AWS_CONNECTCAMPAIGNSV2_API ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetXAmzErrorType() const{ return m_xAmzErrorType; } + inline bool XAmzErrorTypeHasBeenSet() const { return m_xAmzErrorTypeHasBeenSet; } + inline void SetXAmzErrorType(const Aws::String& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = value; } + inline void SetXAmzErrorType(Aws::String&& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = std::move(value); } + inline void SetXAmzErrorType(const char* value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType.assign(value); } + inline ResourceNotFoundException& WithXAmzErrorType(const Aws::String& value) { SetXAmzErrorType(value); return *this;} + inline ResourceNotFoundException& WithXAmzErrorType(Aws::String&& value) { SetXAmzErrorType(std::move(value)); return *this;} + inline ResourceNotFoundException& WithXAmzErrorType(const char* value) { SetXAmzErrorType(value); return *this;} + ///@} + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + Aws::String m_xAmzErrorType; + bool m_xAmzErrorTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/RestrictedPeriod.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/RestrictedPeriod.h new file mode 100644 index 00000000000..9fd0ac65b29 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/RestrictedPeriod.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Restricted period

See Also:

AWS + * API Reference

+ */ + class RestrictedPeriod + { + public: + AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriod(); + AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriod(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriod& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline RestrictedPeriod& WithName(const Aws::String& value) { SetName(value); return *this;} + inline RestrictedPeriod& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline RestrictedPeriod& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetStartDate() const{ return m_startDate; } + inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; } + inline void SetStartDate(const Aws::String& value) { m_startDateHasBeenSet = true; m_startDate = value; } + inline void SetStartDate(Aws::String&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); } + inline void SetStartDate(const char* value) { m_startDateHasBeenSet = true; m_startDate.assign(value); } + inline RestrictedPeriod& WithStartDate(const Aws::String& value) { SetStartDate(value); return *this;} + inline RestrictedPeriod& WithStartDate(Aws::String&& value) { SetStartDate(std::move(value)); return *this;} + inline RestrictedPeriod& WithStartDate(const char* value) { SetStartDate(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetEndDate() const{ return m_endDate; } + inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; } + inline void SetEndDate(const Aws::String& value) { m_endDateHasBeenSet = true; m_endDate = value; } + inline void SetEndDate(Aws::String&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); } + inline void SetEndDate(const char* value) { m_endDateHasBeenSet = true; m_endDate.assign(value); } + inline RestrictedPeriod& WithEndDate(const Aws::String& value) { SetEndDate(value); return *this;} + inline RestrictedPeriod& WithEndDate(Aws::String&& value) { SetEndDate(std::move(value)); return *this;} + inline RestrictedPeriod& WithEndDate(const char* value) { SetEndDate(value); return *this;} + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_startDate; + bool m_startDateHasBeenSet = false; + + Aws::String m_endDate; + bool m_endDateHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/RestrictedPeriods.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/RestrictedPeriods.h new file mode 100644 index 00000000000..fb1b1fb48dd --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/RestrictedPeriods.h @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Restricted period config

See Also:

AWS + * API Reference

+ */ + class RestrictedPeriods + { + public: + AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods(); + AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::Vector& GetRestrictedPeriodList() const{ return m_restrictedPeriodList; } + inline bool RestrictedPeriodListHasBeenSet() const { return m_restrictedPeriodListHasBeenSet; } + inline void SetRestrictedPeriodList(const Aws::Vector& value) { m_restrictedPeriodListHasBeenSet = true; m_restrictedPeriodList = value; } + inline void SetRestrictedPeriodList(Aws::Vector&& value) { m_restrictedPeriodListHasBeenSet = true; m_restrictedPeriodList = std::move(value); } + inline RestrictedPeriods& WithRestrictedPeriodList(const Aws::Vector& value) { SetRestrictedPeriodList(value); return *this;} + inline RestrictedPeriods& WithRestrictedPeriodList(Aws::Vector&& value) { SetRestrictedPeriodList(std::move(value)); return *this;} + inline RestrictedPeriods& AddRestrictedPeriodList(const RestrictedPeriod& value) { m_restrictedPeriodListHasBeenSet = true; m_restrictedPeriodList.push_back(value); return *this; } + inline RestrictedPeriods& AddRestrictedPeriodList(RestrictedPeriod&& value) { m_restrictedPeriodListHasBeenSet = true; m_restrictedPeriodList.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::Vector m_restrictedPeriodList; + bool m_restrictedPeriodListHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ResumeCampaignRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ResumeCampaignRequest.h new file mode 100644 index 00000000000..d2871035c75 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ResumeCampaignRequest.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for ResumeCampaign API.

See Also:

AWS + * API Reference

+ */ + class ResumeCampaignRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API ResumeCampaignRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ResumeCampaign"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline ResumeCampaignRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline ResumeCampaignRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline ResumeCampaignRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/Schedule.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/Schedule.h new file mode 100644 index 00000000000..4e450c62bf6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/Schedule.h @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Campaign schedule

See Also:

AWS + * API Reference

+ */ + class Schedule + { + public: + AWS_CONNECTCAMPAIGNSV2_API Schedule(); + AWS_CONNECTCAMPAIGNSV2_API Schedule(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Schedule& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } + inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } + inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } + inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } + inline Schedule& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} + inline Schedule& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } + inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } + inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } + inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } + inline Schedule& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} + inline Schedule& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRefreshFrequency() const{ return m_refreshFrequency; } + inline bool RefreshFrequencyHasBeenSet() const { return m_refreshFrequencyHasBeenSet; } + inline void SetRefreshFrequency(const Aws::String& value) { m_refreshFrequencyHasBeenSet = true; m_refreshFrequency = value; } + inline void SetRefreshFrequency(Aws::String&& value) { m_refreshFrequencyHasBeenSet = true; m_refreshFrequency = std::move(value); } + inline void SetRefreshFrequency(const char* value) { m_refreshFrequencyHasBeenSet = true; m_refreshFrequency.assign(value); } + inline Schedule& WithRefreshFrequency(const Aws::String& value) { SetRefreshFrequency(value); return *this;} + inline Schedule& WithRefreshFrequency(Aws::String&& value) { SetRefreshFrequency(std::move(value)); return *this;} + inline Schedule& WithRefreshFrequency(const char* value) { SetRefreshFrequency(value); return *this;} + ///@} + private: + + Aws::Utils::DateTime m_startTime; + bool m_startTimeHasBeenSet = false; + + Aws::Utils::DateTime m_endTime; + bool m_endTimeHasBeenSet = false; + + Aws::String m_refreshFrequency; + bool m_refreshFrequencyHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ServiceQuotaExceededException.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ServiceQuotaExceededException.h new file mode 100644 index 00000000000..498f6002cdf --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ServiceQuotaExceededException.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Request would cause a service quota to be exceeded.

See Also:

+ * AWS + * API Reference

+ */ + class ServiceQuotaExceededException + { + public: + AWS_CONNECTCAMPAIGNSV2_API ServiceQuotaExceededException(); + AWS_CONNECTCAMPAIGNSV2_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API ServiceQuotaExceededException& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline ServiceQuotaExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline ServiceQuotaExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline ServiceQuotaExceededException& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetXAmzErrorType() const{ return m_xAmzErrorType; } + inline bool XAmzErrorTypeHasBeenSet() const { return m_xAmzErrorTypeHasBeenSet; } + inline void SetXAmzErrorType(const Aws::String& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = value; } + inline void SetXAmzErrorType(Aws::String&& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = std::move(value); } + inline void SetXAmzErrorType(const char* value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType.assign(value); } + inline ServiceQuotaExceededException& WithXAmzErrorType(const Aws::String& value) { SetXAmzErrorType(value); return *this;} + inline ServiceQuotaExceededException& WithXAmzErrorType(Aws::String&& value) { SetXAmzErrorType(std::move(value)); return *this;} + inline ServiceQuotaExceededException& WithXAmzErrorType(const char* value) { SetXAmzErrorType(value); return *this;} + ///@} + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + Aws::String m_xAmzErrorType; + bool m_xAmzErrorTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsChannelSubtypeConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsChannelSubtypeConfig.h new file mode 100644 index 00000000000..e7fde719b1d --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsChannelSubtypeConfig.h @@ -0,0 +1,82 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

SMS Channel Subtype config

See Also:

AWS + * API Reference

+ */ + class SmsChannelSubtypeConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API SmsChannelSubtypeConfig(); + AWS_CONNECTCAMPAIGNSV2_API SmsChannelSubtypeConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API SmsChannelSubtypeConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline double GetCapacity() const{ return m_capacity; } + inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; } + inline void SetCapacity(double value) { m_capacityHasBeenSet = true; m_capacity = value; } + inline SmsChannelSubtypeConfig& WithCapacity(double value) { SetCapacity(value); return *this;} + ///@} + + ///@{ + + inline const SmsOutboundMode& GetOutboundMode() const{ return m_outboundMode; } + inline bool OutboundModeHasBeenSet() const { return m_outboundModeHasBeenSet; } + inline void SetOutboundMode(const SmsOutboundMode& value) { m_outboundModeHasBeenSet = true; m_outboundMode = value; } + inline void SetOutboundMode(SmsOutboundMode&& value) { m_outboundModeHasBeenSet = true; m_outboundMode = std::move(value); } + inline SmsChannelSubtypeConfig& WithOutboundMode(const SmsOutboundMode& value) { SetOutboundMode(value); return *this;} + inline SmsChannelSubtypeConfig& WithOutboundMode(SmsOutboundMode&& value) { SetOutboundMode(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const SmsOutboundConfig& GetDefaultOutboundConfig() const{ return m_defaultOutboundConfig; } + inline bool DefaultOutboundConfigHasBeenSet() const { return m_defaultOutboundConfigHasBeenSet; } + inline void SetDefaultOutboundConfig(const SmsOutboundConfig& value) { m_defaultOutboundConfigHasBeenSet = true; m_defaultOutboundConfig = value; } + inline void SetDefaultOutboundConfig(SmsOutboundConfig&& value) { m_defaultOutboundConfigHasBeenSet = true; m_defaultOutboundConfig = std::move(value); } + inline SmsChannelSubtypeConfig& WithDefaultOutboundConfig(const SmsOutboundConfig& value) { SetDefaultOutboundConfig(value); return *this;} + inline SmsChannelSubtypeConfig& WithDefaultOutboundConfig(SmsOutboundConfig&& value) { SetDefaultOutboundConfig(std::move(value)); return *this;} + ///@} + private: + + double m_capacity; + bool m_capacityHasBeenSet = false; + + SmsOutboundMode m_outboundMode; + bool m_outboundModeHasBeenSet = false; + + SmsOutboundConfig m_defaultOutboundConfig; + bool m_defaultOutboundConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsChannelSubtypeParameters.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsChannelSubtypeParameters.h new file mode 100644 index 00000000000..3476d39a3ac --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsChannelSubtypeParameters.h @@ -0,0 +1,110 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Parameters for the SMS Channel Subtype

See Also:

AWS + * API Reference

+ */ + class SmsChannelSubtypeParameters + { + public: + AWS_CONNECTCAMPAIGNSV2_API SmsChannelSubtypeParameters(); + AWS_CONNECTCAMPAIGNSV2_API SmsChannelSubtypeParameters(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API SmsChannelSubtypeParameters& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetDestinationPhoneNumber() const{ return m_destinationPhoneNumber; } + inline bool DestinationPhoneNumberHasBeenSet() const { return m_destinationPhoneNumberHasBeenSet; } + inline void SetDestinationPhoneNumber(const Aws::String& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = value; } + inline void SetDestinationPhoneNumber(Aws::String&& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = std::move(value); } + inline void SetDestinationPhoneNumber(const char* value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber.assign(value); } + inline SmsChannelSubtypeParameters& WithDestinationPhoneNumber(const Aws::String& value) { SetDestinationPhoneNumber(value); return *this;} + inline SmsChannelSubtypeParameters& WithDestinationPhoneNumber(Aws::String&& value) { SetDestinationPhoneNumber(std::move(value)); return *this;} + inline SmsChannelSubtypeParameters& WithDestinationPhoneNumber(const char* value) { SetDestinationPhoneNumber(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetConnectSourcePhoneNumberArn() const{ return m_connectSourcePhoneNumberArn; } + inline bool ConnectSourcePhoneNumberArnHasBeenSet() const { return m_connectSourcePhoneNumberArnHasBeenSet; } + inline void SetConnectSourcePhoneNumberArn(const Aws::String& value) { m_connectSourcePhoneNumberArnHasBeenSet = true; m_connectSourcePhoneNumberArn = value; } + inline void SetConnectSourcePhoneNumberArn(Aws::String&& value) { m_connectSourcePhoneNumberArnHasBeenSet = true; m_connectSourcePhoneNumberArn = std::move(value); } + inline void SetConnectSourcePhoneNumberArn(const char* value) { m_connectSourcePhoneNumberArnHasBeenSet = true; m_connectSourcePhoneNumberArn.assign(value); } + inline SmsChannelSubtypeParameters& WithConnectSourcePhoneNumberArn(const Aws::String& value) { SetConnectSourcePhoneNumberArn(value); return *this;} + inline SmsChannelSubtypeParameters& WithConnectSourcePhoneNumberArn(Aws::String&& value) { SetConnectSourcePhoneNumberArn(std::move(value)); return *this;} + inline SmsChannelSubtypeParameters& WithConnectSourcePhoneNumberArn(const char* value) { SetConnectSourcePhoneNumberArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetTemplateArn() const{ return m_templateArn; } + inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; } + inline void SetTemplateArn(const Aws::String& value) { m_templateArnHasBeenSet = true; m_templateArn = value; } + inline void SetTemplateArn(Aws::String&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::move(value); } + inline void SetTemplateArn(const char* value) { m_templateArnHasBeenSet = true; m_templateArn.assign(value); } + inline SmsChannelSubtypeParameters& WithTemplateArn(const Aws::String& value) { SetTemplateArn(value); return *this;} + inline SmsChannelSubtypeParameters& WithTemplateArn(Aws::String&& value) { SetTemplateArn(std::move(value)); return *this;} + inline SmsChannelSubtypeParameters& WithTemplateArn(const char* value) { SetTemplateArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Map& GetTemplateParameters() const{ return m_templateParameters; } + inline bool TemplateParametersHasBeenSet() const { return m_templateParametersHasBeenSet; } + inline void SetTemplateParameters(const Aws::Map& value) { m_templateParametersHasBeenSet = true; m_templateParameters = value; } + inline void SetTemplateParameters(Aws::Map&& value) { m_templateParametersHasBeenSet = true; m_templateParameters = std::move(value); } + inline SmsChannelSubtypeParameters& WithTemplateParameters(const Aws::Map& value) { SetTemplateParameters(value); return *this;} + inline SmsChannelSubtypeParameters& WithTemplateParameters(Aws::Map&& value) { SetTemplateParameters(std::move(value)); return *this;} + inline SmsChannelSubtypeParameters& AddTemplateParameters(const Aws::String& key, const Aws::String& value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(key, value); return *this; } + inline SmsChannelSubtypeParameters& AddTemplateParameters(Aws::String&& key, const Aws::String& value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(std::move(key), value); return *this; } + inline SmsChannelSubtypeParameters& AddTemplateParameters(const Aws::String& key, Aws::String&& value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(key, std::move(value)); return *this; } + inline SmsChannelSubtypeParameters& AddTemplateParameters(Aws::String&& key, Aws::String&& value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(std::move(key), std::move(value)); return *this; } + inline SmsChannelSubtypeParameters& AddTemplateParameters(const char* key, Aws::String&& value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(key, std::move(value)); return *this; } + inline SmsChannelSubtypeParameters& AddTemplateParameters(Aws::String&& key, const char* value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(std::move(key), value); return *this; } + inline SmsChannelSubtypeParameters& AddTemplateParameters(const char* key, const char* value) { m_templateParametersHasBeenSet = true; m_templateParameters.emplace(key, value); return *this; } + ///@} + private: + + Aws::String m_destinationPhoneNumber; + bool m_destinationPhoneNumberHasBeenSet = false; + + Aws::String m_connectSourcePhoneNumberArn; + bool m_connectSourcePhoneNumberArnHasBeenSet = false; + + Aws::String m_templateArn; + bool m_templateArnHasBeenSet = false; + + Aws::Map m_templateParameters; + bool m_templateParametersHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsOutboundConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsOutboundConfig.h new file mode 100644 index 00000000000..374b579b328 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsOutboundConfig.h @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Default SMS Outbound config

See Also:

AWS + * API Reference

+ */ + class SmsOutboundConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API SmsOutboundConfig(); + AWS_CONNECTCAMPAIGNSV2_API SmsOutboundConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API SmsOutboundConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetConnectSourcePhoneNumberArn() const{ return m_connectSourcePhoneNumberArn; } + inline bool ConnectSourcePhoneNumberArnHasBeenSet() const { return m_connectSourcePhoneNumberArnHasBeenSet; } + inline void SetConnectSourcePhoneNumberArn(const Aws::String& value) { m_connectSourcePhoneNumberArnHasBeenSet = true; m_connectSourcePhoneNumberArn = value; } + inline void SetConnectSourcePhoneNumberArn(Aws::String&& value) { m_connectSourcePhoneNumberArnHasBeenSet = true; m_connectSourcePhoneNumberArn = std::move(value); } + inline void SetConnectSourcePhoneNumberArn(const char* value) { m_connectSourcePhoneNumberArnHasBeenSet = true; m_connectSourcePhoneNumberArn.assign(value); } + inline SmsOutboundConfig& WithConnectSourcePhoneNumberArn(const Aws::String& value) { SetConnectSourcePhoneNumberArn(value); return *this;} + inline SmsOutboundConfig& WithConnectSourcePhoneNumberArn(Aws::String&& value) { SetConnectSourcePhoneNumberArn(std::move(value)); return *this;} + inline SmsOutboundConfig& WithConnectSourcePhoneNumberArn(const char* value) { SetConnectSourcePhoneNumberArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetWisdomTemplateArn() const{ return m_wisdomTemplateArn; } + inline bool WisdomTemplateArnHasBeenSet() const { return m_wisdomTemplateArnHasBeenSet; } + inline void SetWisdomTemplateArn(const Aws::String& value) { m_wisdomTemplateArnHasBeenSet = true; m_wisdomTemplateArn = value; } + inline void SetWisdomTemplateArn(Aws::String&& value) { m_wisdomTemplateArnHasBeenSet = true; m_wisdomTemplateArn = std::move(value); } + inline void SetWisdomTemplateArn(const char* value) { m_wisdomTemplateArnHasBeenSet = true; m_wisdomTemplateArn.assign(value); } + inline SmsOutboundConfig& WithWisdomTemplateArn(const Aws::String& value) { SetWisdomTemplateArn(value); return *this;} + inline SmsOutboundConfig& WithWisdomTemplateArn(Aws::String&& value) { SetWisdomTemplateArn(std::move(value)); return *this;} + inline SmsOutboundConfig& WithWisdomTemplateArn(const char* value) { SetWisdomTemplateArn(value); return *this;} + ///@} + private: + + Aws::String m_connectSourcePhoneNumberArn; + bool m_connectSourcePhoneNumberArnHasBeenSet = false; + + Aws::String m_wisdomTemplateArn; + bool m_wisdomTemplateArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsOutboundMode.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsOutboundMode.h new file mode 100644 index 00000000000..5d9506fc3f5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SmsOutboundMode.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

SMS Outbound Mode

See Also:

AWS + * API Reference

+ */ + class SmsOutboundMode + { + public: + AWS_CONNECTCAMPAIGNSV2_API SmsOutboundMode(); + AWS_CONNECTCAMPAIGNSV2_API SmsOutboundMode(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API SmsOutboundMode& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const AgentlessConfig& GetAgentless() const{ return m_agentless; } + inline bool AgentlessHasBeenSet() const { return m_agentlessHasBeenSet; } + inline void SetAgentless(const AgentlessConfig& value) { m_agentlessHasBeenSet = true; m_agentless = value; } + inline void SetAgentless(AgentlessConfig&& value) { m_agentlessHasBeenSet = true; m_agentless = std::move(value); } + inline SmsOutboundMode& WithAgentless(const AgentlessConfig& value) { SetAgentless(value); return *this;} + inline SmsOutboundMode& WithAgentless(AgentlessConfig&& value) { SetAgentless(std::move(value)); return *this;} + ///@} + private: + + AgentlessConfig m_agentless; + bool m_agentlessHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/Source.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/Source.h new file mode 100644 index 00000000000..b9bd05ad120 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/Source.h @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Source of the campaign

See Also:

AWS + * API Reference

+ */ + class Source + { + public: + AWS_CONNECTCAMPAIGNSV2_API Source(); + AWS_CONNECTCAMPAIGNSV2_API Source(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Source& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetCustomerProfilesSegmentArn() const{ return m_customerProfilesSegmentArn; } + inline bool CustomerProfilesSegmentArnHasBeenSet() const { return m_customerProfilesSegmentArnHasBeenSet; } + inline void SetCustomerProfilesSegmentArn(const Aws::String& value) { m_customerProfilesSegmentArnHasBeenSet = true; m_customerProfilesSegmentArn = value; } + inline void SetCustomerProfilesSegmentArn(Aws::String&& value) { m_customerProfilesSegmentArnHasBeenSet = true; m_customerProfilesSegmentArn = std::move(value); } + inline void SetCustomerProfilesSegmentArn(const char* value) { m_customerProfilesSegmentArnHasBeenSet = true; m_customerProfilesSegmentArn.assign(value); } + inline Source& WithCustomerProfilesSegmentArn(const Aws::String& value) { SetCustomerProfilesSegmentArn(value); return *this;} + inline Source& WithCustomerProfilesSegmentArn(Aws::String&& value) { SetCustomerProfilesSegmentArn(std::move(value)); return *this;} + inline Source& WithCustomerProfilesSegmentArn(const char* value) { SetCustomerProfilesSegmentArn(value); return *this;} + ///@} + private: + + Aws::String m_customerProfilesSegmentArn; + bool m_customerProfilesSegmentArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StartCampaignRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StartCampaignRequest.h new file mode 100644 index 00000000000..0742a362667 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StartCampaignRequest.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for StartCampaign API.

See Also:

AWS + * API Reference

+ */ + class StartCampaignRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API StartCampaignRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "StartCampaign"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline StartCampaignRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline StartCampaignRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline StartCampaignRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StartInstanceOnboardingJobRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StartInstanceOnboardingJobRequest.h new file mode 100644 index 00000000000..03cc0575917 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StartInstanceOnboardingJobRequest.h @@ -0,0 +1,71 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for StartInstanceOnboardingJob API.

See Also:

AWS + * API Reference

+ */ + class StartInstanceOnboardingJobRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API StartInstanceOnboardingJobRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "StartInstanceOnboardingJob"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; } + inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; } + inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; } + inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); } + inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); } + inline StartInstanceOnboardingJobRequest& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;} + inline StartInstanceOnboardingJobRequest& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;} + inline StartInstanceOnboardingJobRequest& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;} + ///@} + + ///@{ + + inline const EncryptionConfig& GetEncryptionConfig() const{ return m_encryptionConfig; } + inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; } + inline void SetEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = value; } + inline void SetEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::move(value); } + inline StartInstanceOnboardingJobRequest& WithEncryptionConfig(const EncryptionConfig& value) { SetEncryptionConfig(value); return *this;} + inline StartInstanceOnboardingJobRequest& WithEncryptionConfig(EncryptionConfig&& value) { SetEncryptionConfig(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_connectInstanceId; + bool m_connectInstanceIdHasBeenSet = false; + + EncryptionConfig m_encryptionConfig; + bool m_encryptionConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StartInstanceOnboardingJobResult.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StartInstanceOnboardingJobResult.h new file mode 100644 index 00000000000..90e6168d286 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StartInstanceOnboardingJobResult.h @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + /** + *

The response for StartInstanceOnboardingJob API.

See Also:

+ * AWS + * API Reference

+ */ + class StartInstanceOnboardingJobResult + { + public: + AWS_CONNECTCAMPAIGNSV2_API StartInstanceOnboardingJobResult(); + AWS_CONNECTCAMPAIGNSV2_API StartInstanceOnboardingJobResult(const Aws::AmazonWebServiceResult& result); + AWS_CONNECTCAMPAIGNSV2_API StartInstanceOnboardingJobResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const InstanceOnboardingJobStatus& GetConnectInstanceOnboardingJobStatus() const{ return m_connectInstanceOnboardingJobStatus; } + inline void SetConnectInstanceOnboardingJobStatus(const InstanceOnboardingJobStatus& value) { m_connectInstanceOnboardingJobStatus = value; } + inline void SetConnectInstanceOnboardingJobStatus(InstanceOnboardingJobStatus&& value) { m_connectInstanceOnboardingJobStatus = std::move(value); } + inline StartInstanceOnboardingJobResult& WithConnectInstanceOnboardingJobStatus(const InstanceOnboardingJobStatus& value) { SetConnectInstanceOnboardingJobStatus(value); return *this;} + inline StartInstanceOnboardingJobResult& WithConnectInstanceOnboardingJobStatus(InstanceOnboardingJobStatus&& value) { SetConnectInstanceOnboardingJobStatus(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline StartInstanceOnboardingJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline StartInstanceOnboardingJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline StartInstanceOnboardingJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + InstanceOnboardingJobStatus m_connectInstanceOnboardingJobStatus; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StopCampaignRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StopCampaignRequest.h new file mode 100644 index 00000000000..0780589b6f9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/StopCampaignRequest.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for StopCampaign API.

See Also:

AWS + * API Reference

+ */ + class StopCampaignRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API StopCampaignRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "StopCampaign"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline StopCampaignRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline StopCampaignRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline StopCampaignRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SuccessfulCampaignStateResponse.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SuccessfulCampaignStateResponse.h new file mode 100644 index 00000000000..394f69b0bc0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SuccessfulCampaignStateResponse.h @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Successful response of campaign state

See Also:

AWS + * API Reference

+ */ + class SuccessfulCampaignStateResponse + { + public: + AWS_CONNECTCAMPAIGNSV2_API SuccessfulCampaignStateResponse(); + AWS_CONNECTCAMPAIGNSV2_API SuccessfulCampaignStateResponse(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API SuccessfulCampaignStateResponse& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetCampaignId() const{ return m_campaignId; } + inline bool CampaignIdHasBeenSet() const { return m_campaignIdHasBeenSet; } + inline void SetCampaignId(const Aws::String& value) { m_campaignIdHasBeenSet = true; m_campaignId = value; } + inline void SetCampaignId(Aws::String&& value) { m_campaignIdHasBeenSet = true; m_campaignId = std::move(value); } + inline void SetCampaignId(const char* value) { m_campaignIdHasBeenSet = true; m_campaignId.assign(value); } + inline SuccessfulCampaignStateResponse& WithCampaignId(const Aws::String& value) { SetCampaignId(value); return *this;} + inline SuccessfulCampaignStateResponse& WithCampaignId(Aws::String&& value) { SetCampaignId(std::move(value)); return *this;} + inline SuccessfulCampaignStateResponse& WithCampaignId(const char* value) { SetCampaignId(value); return *this;} + ///@} + + ///@{ + + inline const CampaignState& GetState() const{ return m_state; } + inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } + inline void SetState(const CampaignState& value) { m_stateHasBeenSet = true; m_state = value; } + inline void SetState(CampaignState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } + inline SuccessfulCampaignStateResponse& WithState(const CampaignState& value) { SetState(value); return *this;} + inline SuccessfulCampaignStateResponse& WithState(CampaignState&& value) { SetState(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_campaignId; + bool m_campaignIdHasBeenSet = false; + + CampaignState m_state; + bool m_stateHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SuccessfulRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SuccessfulRequest.h new file mode 100644 index 00000000000..9de2c07ca0d --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/SuccessfulRequest.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

A successful request identified by the unique client token.

See + * Also:

AWS + * API Reference

+ */ + class SuccessfulRequest + { + public: + AWS_CONNECTCAMPAIGNSV2_API SuccessfulRequest(); + AWS_CONNECTCAMPAIGNSV2_API SuccessfulRequest(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API SuccessfulRequest& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + inline SuccessfulRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + inline SuccessfulRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + inline SuccessfulRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline SuccessfulRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline SuccessfulRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline SuccessfulRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + private: + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TagResourceRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TagResourceRequest.h new file mode 100644 index 00000000000..c2214569310 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TagResourceRequest.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for TagResource API.

See Also:

AWS + * API Reference

+ */ + class TagResourceRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API TagResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "TagResource"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetArn() const{ return m_arn; } + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + inline TagResourceRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline TagResourceRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline TagResourceRequest& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Map& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline TagResourceRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline TagResourceRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline TagResourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + inline TagResourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline TagResourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline TagResourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline TagResourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline TagResourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline TagResourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + ///@} + private: + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyChannelSubtypeConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyChannelSubtypeConfig.h new file mode 100644 index 00000000000..4c01aec41d1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyChannelSubtypeConfig.h @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Telephony Channel Subtype config

See Also:

AWS + * API Reference

+ */ + class TelephonyChannelSubtypeConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API TelephonyChannelSubtypeConfig(); + AWS_CONNECTCAMPAIGNSV2_API TelephonyChannelSubtypeConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API TelephonyChannelSubtypeConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline double GetCapacity() const{ return m_capacity; } + inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; } + inline void SetCapacity(double value) { m_capacityHasBeenSet = true; m_capacity = value; } + inline TelephonyChannelSubtypeConfig& WithCapacity(double value) { SetCapacity(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetConnectQueueId() const{ return m_connectQueueId; } + inline bool ConnectQueueIdHasBeenSet() const { return m_connectQueueIdHasBeenSet; } + inline void SetConnectQueueId(const Aws::String& value) { m_connectQueueIdHasBeenSet = true; m_connectQueueId = value; } + inline void SetConnectQueueId(Aws::String&& value) { m_connectQueueIdHasBeenSet = true; m_connectQueueId = std::move(value); } + inline void SetConnectQueueId(const char* value) { m_connectQueueIdHasBeenSet = true; m_connectQueueId.assign(value); } + inline TelephonyChannelSubtypeConfig& WithConnectQueueId(const Aws::String& value) { SetConnectQueueId(value); return *this;} + inline TelephonyChannelSubtypeConfig& WithConnectQueueId(Aws::String&& value) { SetConnectQueueId(std::move(value)); return *this;} + inline TelephonyChannelSubtypeConfig& WithConnectQueueId(const char* value) { SetConnectQueueId(value); return *this;} + ///@} + + ///@{ + + inline const TelephonyOutboundMode& GetOutboundMode() const{ return m_outboundMode; } + inline bool OutboundModeHasBeenSet() const { return m_outboundModeHasBeenSet; } + inline void SetOutboundMode(const TelephonyOutboundMode& value) { m_outboundModeHasBeenSet = true; m_outboundMode = value; } + inline void SetOutboundMode(TelephonyOutboundMode&& value) { m_outboundModeHasBeenSet = true; m_outboundMode = std::move(value); } + inline TelephonyChannelSubtypeConfig& WithOutboundMode(const TelephonyOutboundMode& value) { SetOutboundMode(value); return *this;} + inline TelephonyChannelSubtypeConfig& WithOutboundMode(TelephonyOutboundMode&& value) { SetOutboundMode(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const TelephonyOutboundConfig& GetDefaultOutboundConfig() const{ return m_defaultOutboundConfig; } + inline bool DefaultOutboundConfigHasBeenSet() const { return m_defaultOutboundConfigHasBeenSet; } + inline void SetDefaultOutboundConfig(const TelephonyOutboundConfig& value) { m_defaultOutboundConfigHasBeenSet = true; m_defaultOutboundConfig = value; } + inline void SetDefaultOutboundConfig(TelephonyOutboundConfig&& value) { m_defaultOutboundConfigHasBeenSet = true; m_defaultOutboundConfig = std::move(value); } + inline TelephonyChannelSubtypeConfig& WithDefaultOutboundConfig(const TelephonyOutboundConfig& value) { SetDefaultOutboundConfig(value); return *this;} + inline TelephonyChannelSubtypeConfig& WithDefaultOutboundConfig(TelephonyOutboundConfig&& value) { SetDefaultOutboundConfig(std::move(value)); return *this;} + ///@} + private: + + double m_capacity; + bool m_capacityHasBeenSet = false; + + Aws::String m_connectQueueId; + bool m_connectQueueIdHasBeenSet = false; + + TelephonyOutboundMode m_outboundMode; + bool m_outboundModeHasBeenSet = false; + + TelephonyOutboundConfig m_defaultOutboundConfig; + bool m_defaultOutboundConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyChannelSubtypeParameters.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyChannelSubtypeParameters.h new file mode 100644 index 00000000000..ec78d72d8d4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyChannelSubtypeParameters.h @@ -0,0 +1,109 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Parameters for the Telephony Channel Subtype

See Also:

AWS + * API Reference

+ */ + class TelephonyChannelSubtypeParameters + { + public: + AWS_CONNECTCAMPAIGNSV2_API TelephonyChannelSubtypeParameters(); + AWS_CONNECTCAMPAIGNSV2_API TelephonyChannelSubtypeParameters(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API TelephonyChannelSubtypeParameters& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetDestinationPhoneNumber() const{ return m_destinationPhoneNumber; } + inline bool DestinationPhoneNumberHasBeenSet() const { return m_destinationPhoneNumberHasBeenSet; } + inline void SetDestinationPhoneNumber(const Aws::String& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = value; } + inline void SetDestinationPhoneNumber(Aws::String&& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = std::move(value); } + inline void SetDestinationPhoneNumber(const char* value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber.assign(value); } + inline TelephonyChannelSubtypeParameters& WithDestinationPhoneNumber(const Aws::String& value) { SetDestinationPhoneNumber(value); return *this;} + inline TelephonyChannelSubtypeParameters& WithDestinationPhoneNumber(Aws::String&& value) { SetDestinationPhoneNumber(std::move(value)); return *this;} + inline TelephonyChannelSubtypeParameters& WithDestinationPhoneNumber(const char* value) { SetDestinationPhoneNumber(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Map& GetAttributes() const{ return m_attributes; } + inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } + inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } + inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } + inline TelephonyChannelSubtypeParameters& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} + inline TelephonyChannelSubtypeParameters& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} + inline TelephonyChannelSubtypeParameters& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } + inline TelephonyChannelSubtypeParameters& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } + inline TelephonyChannelSubtypeParameters& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } + inline TelephonyChannelSubtypeParameters& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } + inline TelephonyChannelSubtypeParameters& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } + inline TelephonyChannelSubtypeParameters& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } + inline TelephonyChannelSubtypeParameters& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetConnectSourcePhoneNumber() const{ return m_connectSourcePhoneNumber; } + inline bool ConnectSourcePhoneNumberHasBeenSet() const { return m_connectSourcePhoneNumberHasBeenSet; } + inline void SetConnectSourcePhoneNumber(const Aws::String& value) { m_connectSourcePhoneNumberHasBeenSet = true; m_connectSourcePhoneNumber = value; } + inline void SetConnectSourcePhoneNumber(Aws::String&& value) { m_connectSourcePhoneNumberHasBeenSet = true; m_connectSourcePhoneNumber = std::move(value); } + inline void SetConnectSourcePhoneNumber(const char* value) { m_connectSourcePhoneNumberHasBeenSet = true; m_connectSourcePhoneNumber.assign(value); } + inline TelephonyChannelSubtypeParameters& WithConnectSourcePhoneNumber(const Aws::String& value) { SetConnectSourcePhoneNumber(value); return *this;} + inline TelephonyChannelSubtypeParameters& WithConnectSourcePhoneNumber(Aws::String&& value) { SetConnectSourcePhoneNumber(std::move(value)); return *this;} + inline TelephonyChannelSubtypeParameters& WithConnectSourcePhoneNumber(const char* value) { SetConnectSourcePhoneNumber(value); return *this;} + ///@} + + ///@{ + + inline const AnswerMachineDetectionConfig& GetAnswerMachineDetectionConfig() const{ return m_answerMachineDetectionConfig; } + inline bool AnswerMachineDetectionConfigHasBeenSet() const { return m_answerMachineDetectionConfigHasBeenSet; } + inline void SetAnswerMachineDetectionConfig(const AnswerMachineDetectionConfig& value) { m_answerMachineDetectionConfigHasBeenSet = true; m_answerMachineDetectionConfig = value; } + inline void SetAnswerMachineDetectionConfig(AnswerMachineDetectionConfig&& value) { m_answerMachineDetectionConfigHasBeenSet = true; m_answerMachineDetectionConfig = std::move(value); } + inline TelephonyChannelSubtypeParameters& WithAnswerMachineDetectionConfig(const AnswerMachineDetectionConfig& value) { SetAnswerMachineDetectionConfig(value); return *this;} + inline TelephonyChannelSubtypeParameters& WithAnswerMachineDetectionConfig(AnswerMachineDetectionConfig&& value) { SetAnswerMachineDetectionConfig(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_destinationPhoneNumber; + bool m_destinationPhoneNumberHasBeenSet = false; + + Aws::Map m_attributes; + bool m_attributesHasBeenSet = false; + + Aws::String m_connectSourcePhoneNumber; + bool m_connectSourcePhoneNumberHasBeenSet = false; + + AnswerMachineDetectionConfig m_answerMachineDetectionConfig; + bool m_answerMachineDetectionConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyOutboundConfig.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyOutboundConfig.h new file mode 100644 index 00000000000..c6fec1a5383 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyOutboundConfig.h @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Default Telephony Outbound config

See Also:

AWS + * API Reference

+ */ + class TelephonyOutboundConfig + { + public: + AWS_CONNECTCAMPAIGNSV2_API TelephonyOutboundConfig(); + AWS_CONNECTCAMPAIGNSV2_API TelephonyOutboundConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API TelephonyOutboundConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetConnectContactFlowId() const{ return m_connectContactFlowId; } + inline bool ConnectContactFlowIdHasBeenSet() const { return m_connectContactFlowIdHasBeenSet; } + inline void SetConnectContactFlowId(const Aws::String& value) { m_connectContactFlowIdHasBeenSet = true; m_connectContactFlowId = value; } + inline void SetConnectContactFlowId(Aws::String&& value) { m_connectContactFlowIdHasBeenSet = true; m_connectContactFlowId = std::move(value); } + inline void SetConnectContactFlowId(const char* value) { m_connectContactFlowIdHasBeenSet = true; m_connectContactFlowId.assign(value); } + inline TelephonyOutboundConfig& WithConnectContactFlowId(const Aws::String& value) { SetConnectContactFlowId(value); return *this;} + inline TelephonyOutboundConfig& WithConnectContactFlowId(Aws::String&& value) { SetConnectContactFlowId(std::move(value)); return *this;} + inline TelephonyOutboundConfig& WithConnectContactFlowId(const char* value) { SetConnectContactFlowId(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetConnectSourcePhoneNumber() const{ return m_connectSourcePhoneNumber; } + inline bool ConnectSourcePhoneNumberHasBeenSet() const { return m_connectSourcePhoneNumberHasBeenSet; } + inline void SetConnectSourcePhoneNumber(const Aws::String& value) { m_connectSourcePhoneNumberHasBeenSet = true; m_connectSourcePhoneNumber = value; } + inline void SetConnectSourcePhoneNumber(Aws::String&& value) { m_connectSourcePhoneNumberHasBeenSet = true; m_connectSourcePhoneNumber = std::move(value); } + inline void SetConnectSourcePhoneNumber(const char* value) { m_connectSourcePhoneNumberHasBeenSet = true; m_connectSourcePhoneNumber.assign(value); } + inline TelephonyOutboundConfig& WithConnectSourcePhoneNumber(const Aws::String& value) { SetConnectSourcePhoneNumber(value); return *this;} + inline TelephonyOutboundConfig& WithConnectSourcePhoneNumber(Aws::String&& value) { SetConnectSourcePhoneNumber(std::move(value)); return *this;} + inline TelephonyOutboundConfig& WithConnectSourcePhoneNumber(const char* value) { SetConnectSourcePhoneNumber(value); return *this;} + ///@} + + ///@{ + + inline const AnswerMachineDetectionConfig& GetAnswerMachineDetectionConfig() const{ return m_answerMachineDetectionConfig; } + inline bool AnswerMachineDetectionConfigHasBeenSet() const { return m_answerMachineDetectionConfigHasBeenSet; } + inline void SetAnswerMachineDetectionConfig(const AnswerMachineDetectionConfig& value) { m_answerMachineDetectionConfigHasBeenSet = true; m_answerMachineDetectionConfig = value; } + inline void SetAnswerMachineDetectionConfig(AnswerMachineDetectionConfig&& value) { m_answerMachineDetectionConfigHasBeenSet = true; m_answerMachineDetectionConfig = std::move(value); } + inline TelephonyOutboundConfig& WithAnswerMachineDetectionConfig(const AnswerMachineDetectionConfig& value) { SetAnswerMachineDetectionConfig(value); return *this;} + inline TelephonyOutboundConfig& WithAnswerMachineDetectionConfig(AnswerMachineDetectionConfig&& value) { SetAnswerMachineDetectionConfig(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_connectContactFlowId; + bool m_connectContactFlowIdHasBeenSet = false; + + Aws::String m_connectSourcePhoneNumber; + bool m_connectSourcePhoneNumberHasBeenSet = false; + + AnswerMachineDetectionConfig m_answerMachineDetectionConfig; + bool m_answerMachineDetectionConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyOutboundMode.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyOutboundMode.h new file mode 100644 index 00000000000..d7bd33f18df --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TelephonyOutboundMode.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Telephony Outbound Mode

See Also:

AWS + * API Reference

+ */ + class TelephonyOutboundMode + { + public: + AWS_CONNECTCAMPAIGNSV2_API TelephonyOutboundMode(); + AWS_CONNECTCAMPAIGNSV2_API TelephonyOutboundMode(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API TelephonyOutboundMode& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const ProgressiveConfig& GetProgressive() const{ return m_progressive; } + inline bool ProgressiveHasBeenSet() const { return m_progressiveHasBeenSet; } + inline void SetProgressive(const ProgressiveConfig& value) { m_progressiveHasBeenSet = true; m_progressive = value; } + inline void SetProgressive(ProgressiveConfig&& value) { m_progressiveHasBeenSet = true; m_progressive = std::move(value); } + inline TelephonyOutboundMode& WithProgressive(const ProgressiveConfig& value) { SetProgressive(value); return *this;} + inline TelephonyOutboundMode& WithProgressive(ProgressiveConfig&& value) { SetProgressive(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const PredictiveConfig& GetPredictive() const{ return m_predictive; } + inline bool PredictiveHasBeenSet() const { return m_predictiveHasBeenSet; } + inline void SetPredictive(const PredictiveConfig& value) { m_predictiveHasBeenSet = true; m_predictive = value; } + inline void SetPredictive(PredictiveConfig&& value) { m_predictiveHasBeenSet = true; m_predictive = std::move(value); } + inline TelephonyOutboundMode& WithPredictive(const PredictiveConfig& value) { SetPredictive(value); return *this;} + inline TelephonyOutboundMode& WithPredictive(PredictiveConfig&& value) { SetPredictive(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const AgentlessConfig& GetAgentless() const{ return m_agentless; } + inline bool AgentlessHasBeenSet() const { return m_agentlessHasBeenSet; } + inline void SetAgentless(const AgentlessConfig& value) { m_agentlessHasBeenSet = true; m_agentless = value; } + inline void SetAgentless(AgentlessConfig&& value) { m_agentlessHasBeenSet = true; m_agentless = std::move(value); } + inline TelephonyOutboundMode& WithAgentless(const AgentlessConfig& value) { SetAgentless(value); return *this;} + inline TelephonyOutboundMode& WithAgentless(AgentlessConfig&& value) { SetAgentless(std::move(value)); return *this;} + ///@} + private: + + ProgressiveConfig m_progressive; + bool m_progressiveHasBeenSet = false; + + PredictiveConfig m_predictive; + bool m_predictiveHasBeenSet = false; + + AgentlessConfig m_agentless; + bool m_agentlessHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ThrottlingException.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ThrottlingException.h new file mode 100644 index 00000000000..817c9244d0e --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ThrottlingException.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request was denied due to request throttling.

See Also:

+ * AWS + * API Reference

+ */ + class ThrottlingException + { + public: + AWS_CONNECTCAMPAIGNSV2_API ThrottlingException(); + AWS_CONNECTCAMPAIGNSV2_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API ThrottlingException& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline ThrottlingException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline ThrottlingException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline ThrottlingException& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetXAmzErrorType() const{ return m_xAmzErrorType; } + inline bool XAmzErrorTypeHasBeenSet() const { return m_xAmzErrorTypeHasBeenSet; } + inline void SetXAmzErrorType(const Aws::String& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = value; } + inline void SetXAmzErrorType(Aws::String&& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = std::move(value); } + inline void SetXAmzErrorType(const char* value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType.assign(value); } + inline ThrottlingException& WithXAmzErrorType(const Aws::String& value) { SetXAmzErrorType(value); return *this;} + inline ThrottlingException& WithXAmzErrorType(Aws::String&& value) { SetXAmzErrorType(std::move(value)); return *this;} + inline ThrottlingException& WithXAmzErrorType(const char* value) { SetXAmzErrorType(value); return *this;} + ///@} + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + Aws::String m_xAmzErrorType; + bool m_xAmzErrorTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TimeRange.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TimeRange.h new file mode 100644 index 00000000000..2521aee00a4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TimeRange.h @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Time range in 24 hour format

See Also:

AWS + * API Reference

+ */ + class TimeRange + { + public: + AWS_CONNECTCAMPAIGNSV2_API TimeRange(); + AWS_CONNECTCAMPAIGNSV2_API TimeRange(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API TimeRange& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetStartTime() const{ return m_startTime; } + inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } + inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; } + inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } + inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); } + inline TimeRange& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;} + inline TimeRange& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;} + inline TimeRange& WithStartTime(const char* value) { SetStartTime(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetEndTime() const{ return m_endTime; } + inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } + inline void SetEndTime(const Aws::String& value) { m_endTimeHasBeenSet = true; m_endTime = value; } + inline void SetEndTime(Aws::String&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } + inline void SetEndTime(const char* value) { m_endTimeHasBeenSet = true; m_endTime.assign(value); } + inline TimeRange& WithEndTime(const Aws::String& value) { SetEndTime(value); return *this;} + inline TimeRange& WithEndTime(Aws::String&& value) { SetEndTime(std::move(value)); return *this;} + inline TimeRange& WithEndTime(const char* value) { SetEndTime(value); return *this;} + ///@} + private: + + Aws::String m_startTime; + bool m_startTimeHasBeenSet = false; + + Aws::String m_endTime; + bool m_endTimeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TimeWindow.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TimeWindow.h new file mode 100644 index 00000000000..596c45e0eda --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/TimeWindow.h @@ -0,0 +1,71 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

Time window config

See Also:

AWS + * API Reference

+ */ + class TimeWindow + { + public: + AWS_CONNECTCAMPAIGNSV2_API TimeWindow(); + AWS_CONNECTCAMPAIGNSV2_API TimeWindow(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API TimeWindow& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const OpenHours& GetOpenHours() const{ return m_openHours; } + inline bool OpenHoursHasBeenSet() const { return m_openHoursHasBeenSet; } + inline void SetOpenHours(const OpenHours& value) { m_openHoursHasBeenSet = true; m_openHours = value; } + inline void SetOpenHours(OpenHours&& value) { m_openHoursHasBeenSet = true; m_openHours = std::move(value); } + inline TimeWindow& WithOpenHours(const OpenHours& value) { SetOpenHours(value); return *this;} + inline TimeWindow& WithOpenHours(OpenHours&& value) { SetOpenHours(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const RestrictedPeriods& GetRestrictedPeriods() const{ return m_restrictedPeriods; } + inline bool RestrictedPeriodsHasBeenSet() const { return m_restrictedPeriodsHasBeenSet; } + inline void SetRestrictedPeriods(const RestrictedPeriods& value) { m_restrictedPeriodsHasBeenSet = true; m_restrictedPeriods = value; } + inline void SetRestrictedPeriods(RestrictedPeriods&& value) { m_restrictedPeriodsHasBeenSet = true; m_restrictedPeriods = std::move(value); } + inline TimeWindow& WithRestrictedPeriods(const RestrictedPeriods& value) { SetRestrictedPeriods(value); return *this;} + inline TimeWindow& WithRestrictedPeriods(RestrictedPeriods&& value) { SetRestrictedPeriods(std::move(value)); return *this;} + ///@} + private: + + OpenHours m_openHours; + bool m_openHoursHasBeenSet = false; + + RestrictedPeriods m_restrictedPeriods; + bool m_restrictedPeriodsHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UntagResourceRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UntagResourceRequest.h new file mode 100644 index 00000000000..d59b6c7731d --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UntagResourceRequest.h @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for UntagResource API.

See Also:

AWS + * API Reference

+ */ + class UntagResourceRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API UntagResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + AWS_CONNECTCAMPAIGNSV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + + inline const Aws::String& GetArn() const{ return m_arn; } + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + inline UntagResourceRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline UntagResourceRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline UntagResourceRequest& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::Vector& GetTagKeys() const{ return m_tagKeys; } + inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; } + inline void SetTagKeys(const Aws::Vector& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; } + inline void SetTagKeys(Aws::Vector&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); } + inline UntagResourceRequest& WithTagKeys(const Aws::Vector& value) { SetTagKeys(value); return *this;} + inline UntagResourceRequest& WithTagKeys(Aws::Vector&& value) { SetTagKeys(std::move(value)); return *this;} + inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; } + inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + ///@} + private: + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + Aws::Vector m_tagKeys; + bool m_tagKeysHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignChannelSubtypeConfigRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignChannelSubtypeConfigRequest.h new file mode 100644 index 00000000000..770be66461b --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignChannelSubtypeConfigRequest.h @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for UpdateCampaignChannelSubtypeConfig API.

See + * Also:

AWS + * API Reference

+ */ + class UpdateCampaignChannelSubtypeConfigRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API UpdateCampaignChannelSubtypeConfigRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateCampaignChannelSubtypeConfig"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline UpdateCampaignChannelSubtypeConfigRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline UpdateCampaignChannelSubtypeConfigRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline UpdateCampaignChannelSubtypeConfigRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const ChannelSubtypeConfig& GetChannelSubtypeConfig() const{ return m_channelSubtypeConfig; } + inline bool ChannelSubtypeConfigHasBeenSet() const { return m_channelSubtypeConfigHasBeenSet; } + inline void SetChannelSubtypeConfig(const ChannelSubtypeConfig& value) { m_channelSubtypeConfigHasBeenSet = true; m_channelSubtypeConfig = value; } + inline void SetChannelSubtypeConfig(ChannelSubtypeConfig&& value) { m_channelSubtypeConfigHasBeenSet = true; m_channelSubtypeConfig = std::move(value); } + inline UpdateCampaignChannelSubtypeConfigRequest& WithChannelSubtypeConfig(const ChannelSubtypeConfig& value) { SetChannelSubtypeConfig(value); return *this;} + inline UpdateCampaignChannelSubtypeConfigRequest& WithChannelSubtypeConfig(ChannelSubtypeConfig&& value) { SetChannelSubtypeConfig(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + ChannelSubtypeConfig m_channelSubtypeConfig; + bool m_channelSubtypeConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignCommunicationLimitsRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignCommunicationLimitsRequest.h new file mode 100644 index 00000000000..75f41f3ac6c --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignCommunicationLimitsRequest.h @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for UpdateCampaignCommunicationLimits API.

See + * Also:

AWS + * API Reference

+ */ + class UpdateCampaignCommunicationLimitsRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API UpdateCampaignCommunicationLimitsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateCampaignCommunicationLimits"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline UpdateCampaignCommunicationLimitsRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline UpdateCampaignCommunicationLimitsRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline UpdateCampaignCommunicationLimitsRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const CommunicationLimitsConfig& GetCommunicationLimitsOverride() const{ return m_communicationLimitsOverride; } + inline bool CommunicationLimitsOverrideHasBeenSet() const { return m_communicationLimitsOverrideHasBeenSet; } + inline void SetCommunicationLimitsOverride(const CommunicationLimitsConfig& value) { m_communicationLimitsOverrideHasBeenSet = true; m_communicationLimitsOverride = value; } + inline void SetCommunicationLimitsOverride(CommunicationLimitsConfig&& value) { m_communicationLimitsOverrideHasBeenSet = true; m_communicationLimitsOverride = std::move(value); } + inline UpdateCampaignCommunicationLimitsRequest& WithCommunicationLimitsOverride(const CommunicationLimitsConfig& value) { SetCommunicationLimitsOverride(value); return *this;} + inline UpdateCampaignCommunicationLimitsRequest& WithCommunicationLimitsOverride(CommunicationLimitsConfig&& value) { SetCommunicationLimitsOverride(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + CommunicationLimitsConfig m_communicationLimitsOverride; + bool m_communicationLimitsOverrideHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignCommunicationTimeRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignCommunicationTimeRequest.h new file mode 100644 index 00000000000..674d799fa50 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignCommunicationTimeRequest.h @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for UpdateCampaignCommunicationTime API.

See Also:

+ * AWS + * API Reference

+ */ + class UpdateCampaignCommunicationTimeRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API UpdateCampaignCommunicationTimeRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateCampaignCommunicationTime"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline UpdateCampaignCommunicationTimeRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline UpdateCampaignCommunicationTimeRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline UpdateCampaignCommunicationTimeRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const CommunicationTimeConfig& GetCommunicationTimeConfig() const{ return m_communicationTimeConfig; } + inline bool CommunicationTimeConfigHasBeenSet() const { return m_communicationTimeConfigHasBeenSet; } + inline void SetCommunicationTimeConfig(const CommunicationTimeConfig& value) { m_communicationTimeConfigHasBeenSet = true; m_communicationTimeConfig = value; } + inline void SetCommunicationTimeConfig(CommunicationTimeConfig&& value) { m_communicationTimeConfigHasBeenSet = true; m_communicationTimeConfig = std::move(value); } + inline UpdateCampaignCommunicationTimeRequest& WithCommunicationTimeConfig(const CommunicationTimeConfig& value) { SetCommunicationTimeConfig(value); return *this;} + inline UpdateCampaignCommunicationTimeRequest& WithCommunicationTimeConfig(CommunicationTimeConfig&& value) { SetCommunicationTimeConfig(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + CommunicationTimeConfig m_communicationTimeConfig; + bool m_communicationTimeConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignFlowAssociationRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignFlowAssociationRequest.h new file mode 100644 index 00000000000..6f8dcf93583 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignFlowAssociationRequest.h @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for UpdateCampaignFlowAssociation API.

See Also:

+ * AWS + * API Reference

+ */ + class UpdateCampaignFlowAssociationRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API UpdateCampaignFlowAssociationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateCampaignFlowAssociation"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline UpdateCampaignFlowAssociationRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline UpdateCampaignFlowAssociationRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline UpdateCampaignFlowAssociationRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetConnectCampaignFlowArn() const{ return m_connectCampaignFlowArn; } + inline bool ConnectCampaignFlowArnHasBeenSet() const { return m_connectCampaignFlowArnHasBeenSet; } + inline void SetConnectCampaignFlowArn(const Aws::String& value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn = value; } + inline void SetConnectCampaignFlowArn(Aws::String&& value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn = std::move(value); } + inline void SetConnectCampaignFlowArn(const char* value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn.assign(value); } + inline UpdateCampaignFlowAssociationRequest& WithConnectCampaignFlowArn(const Aws::String& value) { SetConnectCampaignFlowArn(value); return *this;} + inline UpdateCampaignFlowAssociationRequest& WithConnectCampaignFlowArn(Aws::String&& value) { SetConnectCampaignFlowArn(std::move(value)); return *this;} + inline UpdateCampaignFlowAssociationRequest& WithConnectCampaignFlowArn(const char* value) { SetConnectCampaignFlowArn(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_connectCampaignFlowArn; + bool m_connectCampaignFlowArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignNameRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignNameRequest.h new file mode 100644 index 00000000000..6a78e0958ae --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignNameRequest.h @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for UpdateCampaignName API.

See Also:

AWS + * API Reference

+ */ + class UpdateCampaignNameRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API UpdateCampaignNameRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateCampaignName"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline UpdateCampaignNameRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline UpdateCampaignNameRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline UpdateCampaignNameRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline UpdateCampaignNameRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + inline UpdateCampaignNameRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline UpdateCampaignNameRequest& WithName(const char* value) { SetName(value); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignScheduleRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignScheduleRequest.h new file mode 100644 index 00000000000..65dd48e4fc3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignScheduleRequest.h @@ -0,0 +1,71 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for UpdateCampaignSchedule API.

See Also:

AWS + * API Reference

+ */ + class UpdateCampaignScheduleRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API UpdateCampaignScheduleRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateCampaignSchedule"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline UpdateCampaignScheduleRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline UpdateCampaignScheduleRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline UpdateCampaignScheduleRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const Schedule& GetSchedule() const{ return m_schedule; } + inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; } + inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; } + inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); } + inline UpdateCampaignScheduleRequest& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;} + inline UpdateCampaignScheduleRequest& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Schedule m_schedule; + bool m_scheduleHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignSourceRequest.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignSourceRequest.h new file mode 100644 index 00000000000..482e4cf53a2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/UpdateCampaignSourceRequest.h @@ -0,0 +1,71 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The request for UpdateCampaignSource API.

See Also:

AWS + * API Reference

+ */ + class UpdateCampaignSourceRequest : public ConnectCampaignsV2Request + { + public: + AWS_CONNECTCAMPAIGNSV2_API UpdateCampaignSourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateCampaignSource"; } + + AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override; + + + ///@{ + + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline UpdateCampaignSourceRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + inline UpdateCampaignSourceRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline UpdateCampaignSourceRequest& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + + inline const Source& GetSource() const{ return m_source; } + inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } + inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; } + inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } + inline UpdateCampaignSourceRequest& WithSource(const Source& value) { SetSource(value); return *this;} + inline UpdateCampaignSourceRequest& WithSource(Source&& value) { SetSource(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Source m_source; + bool m_sourceHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ValidationException.h b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ValidationException.h new file mode 100644 index 00000000000..ce757d3fdf8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/include/aws/connectcampaignsv2/model/ValidationException.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ConnectCampaignsV2 +{ +namespace Model +{ + + /** + *

The input fails to satisfy the constraints specified by an AWS + * service.

See Also:

AWS + * API Reference

+ */ + class ValidationException + { + public: + AWS_CONNECTCAMPAIGNSV2_API ValidationException(); + AWS_CONNECTCAMPAIGNSV2_API ValidationException(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetXAmzErrorType() const{ return m_xAmzErrorType; } + inline bool XAmzErrorTypeHasBeenSet() const { return m_xAmzErrorTypeHasBeenSet; } + inline void SetXAmzErrorType(const Aws::String& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = value; } + inline void SetXAmzErrorType(Aws::String&& value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType = std::move(value); } + inline void SetXAmzErrorType(const char* value) { m_xAmzErrorTypeHasBeenSet = true; m_xAmzErrorType.assign(value); } + inline ValidationException& WithXAmzErrorType(const Aws::String& value) { SetXAmzErrorType(value); return *this;} + inline ValidationException& WithXAmzErrorType(Aws::String&& value) { SetXAmzErrorType(std::move(value)); return *this;} + inline ValidationException& WithXAmzErrorType(const char* value) { SetXAmzErrorType(value); return *this;} + ///@} + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + Aws::String m_xAmzErrorType; + bool m_xAmzErrorTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Client.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Client.cpp new file mode 100644 index 00000000000..4043e4f9229 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Client.cpp @@ -0,0 +1,1280 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + + +using namespace Aws; +using namespace Aws::Auth; +using namespace Aws::Client; +using namespace Aws::ConnectCampaignsV2; +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Http; +using namespace Aws::Utils::Json; +using namespace smithy::components::tracing; +using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + const char SERVICE_NAME[] = "connect-campaigns"; + const char ALLOCATION_TAG[] = "ConnectCampaignsV2Client"; + } +} +const char* ConnectCampaignsV2Client::GetServiceName() {return SERVICE_NAME;} +const char* ConnectCampaignsV2Client::GetAllocationTag() {return ALLOCATION_TAG;} + +ConnectCampaignsV2Client::ConnectCampaignsV2Client(const ConnectCampaignsV2::ConnectCampaignsV2ClientConfiguration& clientConfiguration, + std::shared_ptr endpointProvider) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +ConnectCampaignsV2Client::ConnectCampaignsV2Client(const AWSCredentials& credentials, + std::shared_ptr endpointProvider, + const ConnectCampaignsV2::ConnectCampaignsV2ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG, credentials), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +ConnectCampaignsV2Client::ConnectCampaignsV2Client(const std::shared_ptr& credentialsProvider, + std::shared_ptr endpointProvider, + const ConnectCampaignsV2::ConnectCampaignsV2ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + credentialsProvider, + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + + /* Legacy constructors due deprecation */ + ConnectCampaignsV2Client::ConnectCampaignsV2Client(const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +ConnectCampaignsV2Client::ConnectCampaignsV2Client(const AWSCredentials& credentials, + const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG, credentials), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +ConnectCampaignsV2Client::ConnectCampaignsV2Client(const std::shared_ptr& credentialsProvider, + const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + credentialsProvider, + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + + /* End of legacy constructors due deprecation */ +ConnectCampaignsV2Client::~ConnectCampaignsV2Client() +{ + ShutdownSdkClient(this, -1); +} + +std::shared_ptr& ConnectCampaignsV2Client::accessEndpointProvider() +{ + return m_endpointProvider; +} + +void ConnectCampaignsV2Client::init(const ConnectCampaignsV2::ConnectCampaignsV2ClientConfiguration& config) +{ + AWSClient::SetServiceClientName("ConnectCampaignsV2"); + if (!m_clientConfiguration.executor) { + if (!m_clientConfiguration.configFactories.executorCreateFn()) { + AWS_LOGSTREAM_FATAL(ALLOCATION_TAG, "Failed to initialize client: config is missing Executor or executorCreateFn"); + m_isInitialized = false; + return; + } + m_clientConfiguration.executor = m_clientConfiguration.configFactories.executorCreateFn(); + } + AWS_CHECK_PTR(SERVICE_NAME, m_endpointProvider); + m_endpointProvider->InitBuiltInParameters(config); +} + +void ConnectCampaignsV2Client::OverrideEndpoint(const Aws::String& endpoint) +{ + AWS_CHECK_PTR(SERVICE_NAME, m_endpointProvider); + m_endpointProvider->OverrideEndpoint(endpoint); +} + +CreateCampaignOutcome ConnectCampaignsV2Client::CreateCampaign(const CreateCampaignRequest& request) const +{ + AWS_OPERATION_GUARD(CreateCampaign); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateCampaign", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateCampaignOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns"); + return CreateCampaignOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteCampaignOutcome ConnectCampaignsV2Client::DeleteCampaign(const DeleteCampaignRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteCampaign); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteCampaign", "Required field: Id, is not set"); + return DeleteCampaignOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteCampaign", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteCampaignOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return DeleteCampaignOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteCampaignChannelSubtypeConfigOutcome ConnectCampaignsV2Client::DeleteCampaignChannelSubtypeConfig(const DeleteCampaignChannelSubtypeConfigRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteCampaignChannelSubtypeConfig); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteCampaignChannelSubtypeConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteCampaignChannelSubtypeConfig", "Required field: Id, is not set"); + return DeleteCampaignChannelSubtypeConfigOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + if (!request.ChannelSubtypeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteCampaignChannelSubtypeConfig", "Required field: ChannelSubtype, is not set"); + return DeleteCampaignChannelSubtypeConfigOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ChannelSubtype]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteCampaignChannelSubtypeConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteCampaignChannelSubtypeConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteCampaignChannelSubtypeConfig", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteCampaignChannelSubtypeConfigOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteCampaignChannelSubtypeConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/channel-subtype-config"); + return DeleteCampaignChannelSubtypeConfigOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteCampaignCommunicationLimitsOutcome ConnectCampaignsV2Client::DeleteCampaignCommunicationLimits(const DeleteCampaignCommunicationLimitsRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteCampaignCommunicationLimits); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteCampaignCommunicationLimits, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteCampaignCommunicationLimits", "Required field: Id, is not set"); + return DeleteCampaignCommunicationLimitsOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + if (!request.ConfigHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteCampaignCommunicationLimits", "Required field: Config, is not set"); + return DeleteCampaignCommunicationLimitsOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Config]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteCampaignCommunicationLimits, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteCampaignCommunicationLimits, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteCampaignCommunicationLimits", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteCampaignCommunicationLimitsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteCampaignCommunicationLimits, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/communication-limits"); + return DeleteCampaignCommunicationLimitsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteCampaignCommunicationTimeOutcome ConnectCampaignsV2Client::DeleteCampaignCommunicationTime(const DeleteCampaignCommunicationTimeRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteCampaignCommunicationTime); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteCampaignCommunicationTime, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteCampaignCommunicationTime", "Required field: Id, is not set"); + return DeleteCampaignCommunicationTimeOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + if (!request.ConfigHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteCampaignCommunicationTime", "Required field: Config, is not set"); + return DeleteCampaignCommunicationTimeOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Config]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteCampaignCommunicationTime, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteCampaignCommunicationTime, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteCampaignCommunicationTime", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteCampaignCommunicationTimeOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteCampaignCommunicationTime, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/communication-time"); + return DeleteCampaignCommunicationTimeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteConnectInstanceConfigOutcome ConnectCampaignsV2Client::DeleteConnectInstanceConfig(const DeleteConnectInstanceConfigRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteConnectInstanceConfig); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteConnectInstanceConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ConnectInstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteConnectInstanceConfig", "Required field: ConnectInstanceId, is not set"); + return DeleteConnectInstanceConfigOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ConnectInstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteConnectInstanceConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteConnectInstanceConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteConnectInstanceConfig", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteConnectInstanceConfigOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteConnectInstanceConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/connect-instance/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetConnectInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/config"); + return DeleteConnectInstanceConfigOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteConnectInstanceIntegrationOutcome ConnectCampaignsV2Client::DeleteConnectInstanceIntegration(const DeleteConnectInstanceIntegrationRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteConnectInstanceIntegration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteConnectInstanceIntegration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ConnectInstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteConnectInstanceIntegration", "Required field: ConnectInstanceId, is not set"); + return DeleteConnectInstanceIntegrationOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ConnectInstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteConnectInstanceIntegration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteConnectInstanceIntegration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteConnectInstanceIntegration", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteConnectInstanceIntegrationOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteConnectInstanceIntegration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/connect-instance/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetConnectInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/integrations/delete"); + return DeleteConnectInstanceIntegrationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteInstanceOnboardingJobOutcome ConnectCampaignsV2Client::DeleteInstanceOnboardingJob(const DeleteInstanceOnboardingJobRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteInstanceOnboardingJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteInstanceOnboardingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ConnectInstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteInstanceOnboardingJob", "Required field: ConnectInstanceId, is not set"); + return DeleteInstanceOnboardingJobOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ConnectInstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteInstanceOnboardingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteInstanceOnboardingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteInstanceOnboardingJob", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteInstanceOnboardingJobOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteInstanceOnboardingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/connect-instance/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetConnectInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/onboarding"); + return DeleteInstanceOnboardingJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DescribeCampaignOutcome ConnectCampaignsV2Client::DescribeCampaign(const DescribeCampaignRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeCampaign); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeCampaign", "Required field: Id, is not set"); + return DescribeCampaignOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DescribeCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeCampaign", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DescribeCampaignOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return DescribeCampaignOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetCampaignStateOutcome ConnectCampaignsV2Client::GetCampaignState(const GetCampaignStateRequest& request) const +{ + AWS_OPERATION_GUARD(GetCampaignState); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetCampaignState, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetCampaignState", "Required field: Id, is not set"); + return GetCampaignStateOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetCampaignState, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetCampaignState, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetCampaignState", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetCampaignStateOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetCampaignState, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/state"); + return GetCampaignStateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetCampaignStateBatchOutcome ConnectCampaignsV2Client::GetCampaignStateBatch(const GetCampaignStateBatchRequest& request) const +{ + AWS_OPERATION_GUARD(GetCampaignStateBatch); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetCampaignStateBatch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetCampaignStateBatch, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetCampaignStateBatch, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetCampaignStateBatch", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetCampaignStateBatchOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetCampaignStateBatch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns-state"); + return GetCampaignStateBatchOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetConnectInstanceConfigOutcome ConnectCampaignsV2Client::GetConnectInstanceConfig(const GetConnectInstanceConfigRequest& request) const +{ + AWS_OPERATION_GUARD(GetConnectInstanceConfig); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetConnectInstanceConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ConnectInstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetConnectInstanceConfig", "Required field: ConnectInstanceId, is not set"); + return GetConnectInstanceConfigOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ConnectInstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetConnectInstanceConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetConnectInstanceConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetConnectInstanceConfig", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetConnectInstanceConfigOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetConnectInstanceConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/connect-instance/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetConnectInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/config"); + return GetConnectInstanceConfigOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetInstanceOnboardingJobStatusOutcome ConnectCampaignsV2Client::GetInstanceOnboardingJobStatus(const GetInstanceOnboardingJobStatusRequest& request) const +{ + AWS_OPERATION_GUARD(GetInstanceOnboardingJobStatus); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetInstanceOnboardingJobStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ConnectInstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetInstanceOnboardingJobStatus", "Required field: ConnectInstanceId, is not set"); + return GetInstanceOnboardingJobStatusOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ConnectInstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetInstanceOnboardingJobStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetInstanceOnboardingJobStatus, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetInstanceOnboardingJobStatus", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetInstanceOnboardingJobStatusOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetInstanceOnboardingJobStatus, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/connect-instance/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetConnectInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/onboarding"); + return GetInstanceOnboardingJobStatusOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListCampaignsOutcome ConnectCampaignsV2Client::ListCampaigns(const ListCampaignsRequest& request) const +{ + AWS_OPERATION_GUARD(ListCampaigns); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCampaigns, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCampaigns, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListCampaigns, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCampaigns", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListCampaignsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListCampaigns, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns-summary"); + return ListCampaignsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListConnectInstanceIntegrationsOutcome ConnectCampaignsV2Client::ListConnectInstanceIntegrations(const ListConnectInstanceIntegrationsRequest& request) const +{ + AWS_OPERATION_GUARD(ListConnectInstanceIntegrations); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListConnectInstanceIntegrations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ConnectInstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListConnectInstanceIntegrations", "Required field: ConnectInstanceId, is not set"); + return ListConnectInstanceIntegrationsOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ConnectInstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListConnectInstanceIntegrations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListConnectInstanceIntegrations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListConnectInstanceIntegrations", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListConnectInstanceIntegrationsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListConnectInstanceIntegrations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/connect-instance/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetConnectInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/integrations"); + return ListConnectInstanceIntegrationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListTagsForResourceOutcome ConnectCampaignsV2Client::ListTagsForResource(const ListTagsForResourceRequest& request) const +{ + AWS_OPERATION_GUARD(ListTagsForResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTagsForResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListTagsForResource", "Required field: Arn, is not set"); + return ListTagsForResourceOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Arn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTagsForResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListTagsForResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTagsForResource", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListTagsForResourceOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTagsForResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/tags/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetArn()); + return ListTagsForResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +PauseCampaignOutcome ConnectCampaignsV2Client::PauseCampaign(const PauseCampaignRequest& request) const +{ + AWS_OPERATION_GUARD(PauseCampaign); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, PauseCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("PauseCampaign", "Required field: Id, is not set"); + return PauseCampaignOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PauseCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, PauseCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".PauseCampaign", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> PauseCampaignOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, PauseCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/pause"); + return PauseCampaignOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +PutConnectInstanceIntegrationOutcome ConnectCampaignsV2Client::PutConnectInstanceIntegration(const PutConnectInstanceIntegrationRequest& request) const +{ + AWS_OPERATION_GUARD(PutConnectInstanceIntegration); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, PutConnectInstanceIntegration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ConnectInstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("PutConnectInstanceIntegration", "Required field: ConnectInstanceId, is not set"); + return PutConnectInstanceIntegrationOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ConnectInstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PutConnectInstanceIntegration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, PutConnectInstanceIntegration, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".PutConnectInstanceIntegration", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> PutConnectInstanceIntegrationOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, PutConnectInstanceIntegration, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/connect-instance/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetConnectInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/integrations"); + return PutConnectInstanceIntegrationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +PutOutboundRequestBatchOutcome ConnectCampaignsV2Client::PutOutboundRequestBatch(const PutOutboundRequestBatchRequest& request) const +{ + AWS_OPERATION_GUARD(PutOutboundRequestBatch); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, PutOutboundRequestBatch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("PutOutboundRequestBatch", "Required field: Id, is not set"); + return PutOutboundRequestBatchOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PutOutboundRequestBatch, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, PutOutboundRequestBatch, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".PutOutboundRequestBatch", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> PutOutboundRequestBatchOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, PutOutboundRequestBatch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/outbound-requests"); + return PutOutboundRequestBatchOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ResumeCampaignOutcome ConnectCampaignsV2Client::ResumeCampaign(const ResumeCampaignRequest& request) const +{ + AWS_OPERATION_GUARD(ResumeCampaign); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ResumeCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ResumeCampaign", "Required field: Id, is not set"); + return ResumeCampaignOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ResumeCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ResumeCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ResumeCampaign", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ResumeCampaignOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ResumeCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/resume"); + return ResumeCampaignOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +StartCampaignOutcome ConnectCampaignsV2Client::StartCampaign(const StartCampaignRequest& request) const +{ + AWS_OPERATION_GUARD(StartCampaign); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("StartCampaign", "Required field: Id, is not set"); + return StartCampaignOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StartCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartCampaign", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> StartCampaignOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/start"); + return StartCampaignOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +StartInstanceOnboardingJobOutcome ConnectCampaignsV2Client::StartInstanceOnboardingJob(const StartInstanceOnboardingJobRequest& request) const +{ + AWS_OPERATION_GUARD(StartInstanceOnboardingJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartInstanceOnboardingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ConnectInstanceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("StartInstanceOnboardingJob", "Required field: ConnectInstanceId, is not set"); + return StartInstanceOnboardingJobOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ConnectInstanceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartInstanceOnboardingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StartInstanceOnboardingJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartInstanceOnboardingJob", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> StartInstanceOnboardingJobOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartInstanceOnboardingJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/connect-instance/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetConnectInstanceId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/onboarding"); + return StartInstanceOnboardingJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +StopCampaignOutcome ConnectCampaignsV2Client::StopCampaign(const StopCampaignRequest& request) const +{ + AWS_OPERATION_GUARD(StopCampaign); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("StopCampaign", "Required field: Id, is not set"); + return StopCampaignOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StopCampaign, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StopCampaign", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> StopCampaignOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StopCampaign, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/stop"); + return StopCampaignOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +TagResourceOutcome ConnectCampaignsV2Client::TagResource(const TagResourceRequest& request) const +{ + AWS_OPERATION_GUARD(TagResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("TagResource", "Required field: Arn, is not set"); + return TagResourceOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Arn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".TagResource", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> TagResourceOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/tags/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetArn()); + return TagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UntagResourceOutcome ConnectCampaignsV2Client::UntagResource(const UntagResourceRequest& request) const +{ + AWS_OPERATION_GUARD(UntagResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: Arn, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Arn]", false)); + } + if (!request.TagKeysHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: TagKeys, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TagKeys]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UntagResource", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UntagResourceOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/tags/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetArn()); + return UntagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateCampaignChannelSubtypeConfigOutcome ConnectCampaignsV2Client::UpdateCampaignChannelSubtypeConfig(const UpdateCampaignChannelSubtypeConfigRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateCampaignChannelSubtypeConfig); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateCampaignChannelSubtypeConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateCampaignChannelSubtypeConfig", "Required field: Id, is not set"); + return UpdateCampaignChannelSubtypeConfigOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateCampaignChannelSubtypeConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateCampaignChannelSubtypeConfig, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateCampaignChannelSubtypeConfig", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateCampaignChannelSubtypeConfigOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateCampaignChannelSubtypeConfig, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/channel-subtype-config"); + return UpdateCampaignChannelSubtypeConfigOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateCampaignCommunicationLimitsOutcome ConnectCampaignsV2Client::UpdateCampaignCommunicationLimits(const UpdateCampaignCommunicationLimitsRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateCampaignCommunicationLimits); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateCampaignCommunicationLimits, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateCampaignCommunicationLimits", "Required field: Id, is not set"); + return UpdateCampaignCommunicationLimitsOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateCampaignCommunicationLimits, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateCampaignCommunicationLimits, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateCampaignCommunicationLimits", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateCampaignCommunicationLimitsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateCampaignCommunicationLimits, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/communication-limits"); + return UpdateCampaignCommunicationLimitsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateCampaignCommunicationTimeOutcome ConnectCampaignsV2Client::UpdateCampaignCommunicationTime(const UpdateCampaignCommunicationTimeRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateCampaignCommunicationTime); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateCampaignCommunicationTime, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateCampaignCommunicationTime", "Required field: Id, is not set"); + return UpdateCampaignCommunicationTimeOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateCampaignCommunicationTime, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateCampaignCommunicationTime, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateCampaignCommunicationTime", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateCampaignCommunicationTimeOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateCampaignCommunicationTime, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/communication-time"); + return UpdateCampaignCommunicationTimeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateCampaignFlowAssociationOutcome ConnectCampaignsV2Client::UpdateCampaignFlowAssociation(const UpdateCampaignFlowAssociationRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateCampaignFlowAssociation); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateCampaignFlowAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateCampaignFlowAssociation", "Required field: Id, is not set"); + return UpdateCampaignFlowAssociationOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateCampaignFlowAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateCampaignFlowAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateCampaignFlowAssociation", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateCampaignFlowAssociationOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateCampaignFlowAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/flow"); + return UpdateCampaignFlowAssociationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateCampaignNameOutcome ConnectCampaignsV2Client::UpdateCampaignName(const UpdateCampaignNameRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateCampaignName); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateCampaignName, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateCampaignName", "Required field: Id, is not set"); + return UpdateCampaignNameOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateCampaignName, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateCampaignName, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateCampaignName", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateCampaignNameOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateCampaignName, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/name"); + return UpdateCampaignNameOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateCampaignScheduleOutcome ConnectCampaignsV2Client::UpdateCampaignSchedule(const UpdateCampaignScheduleRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateCampaignSchedule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateCampaignSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateCampaignSchedule", "Required field: Id, is not set"); + return UpdateCampaignScheduleOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateCampaignSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateCampaignSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateCampaignSchedule", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateCampaignScheduleOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateCampaignSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/schedule"); + return UpdateCampaignScheduleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateCampaignSourceOutcome ConnectCampaignsV2Client::UpdateCampaignSource(const UpdateCampaignSourceRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateCampaignSource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateCampaignSource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateCampaignSource", "Required field: Id, is not set"); + return UpdateCampaignSourceOutcome(Aws::Client::AWSError(ConnectCampaignsV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateCampaignSource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateCampaignSource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateCampaignSource", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateCampaignSourceOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateCampaignSource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2/campaigns/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/source"); + return UpdateCampaignSourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2EndpointProvider.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2EndpointProvider.cpp new file mode 100644 index 00000000000..e1dc1eb47e2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2EndpointProvider.cpp @@ -0,0 +1,16 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Endpoint +{ +} // namespace Endpoint +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2EndpointRules.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2EndpointRules.cpp new file mode 100644 index 00000000000..70074a043c0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2EndpointRules.cpp @@ -0,0 +1,177 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +const size_t ConnectCampaignsV2EndpointRules::RulesBlobStrLen = 3768; +const size_t ConnectCampaignsV2EndpointRules::RulesBlobSize = 3769; + +using RulesBlobT = Aws::Array; +static constexpr RulesBlobT RulesBlob = {{ +'{','"','v','e','r','s','i','o','n','"',':','"','1','.','0','"',',','"','p','a','r','a','m','e','t', +'e','r','s','"',':','{','"','R','e','g','i','o','n','"',':','{','"','b','u','i','l','t','I','n','"', +':','"','A','W','S',':',':','R','e','g','i','o','n','"',',','"','r','e','q','u','i','r','e','d','"', +':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"',':','"','T', +'h','e',' ','A','W','S',' ','r','e','g','i','o','n',' ','u','s','e','d',' ','t','o',' ','d','i','s', +'p','a','t','c','h',' ','t','h','e',' ','r','e','q','u','e','s','t','.','"',',','"','t','y','p','e', +'"',':','"','S','t','r','i','n','g','"','}',',','"','U','s','e','D','u','a','l','S','t','a','c','k', +'"',':','{','"','b','u','i','l','t','I','n','"',':','"','A','W','S',':',':','U','s','e','D','u','a', +'l','S','t','a','c','k','"',',','"','r','e','q','u','i','r','e','d','"',':','t','r','u','e',',','"', +'d','e','f','a','u','l','t','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a', +'t','i','o','n','"',':','"','W','h','e','n',' ','t','r','u','e',',',' ','u','s','e',' ','t','h','e', +' ','d','u','a','l','-','s','t','a','c','k',' ','e','n','d','p','o','i','n','t','.',' ','I','f',' ', +'t','h','e',' ','c','o','n','f','i','g','u','r','e','d',' ','e','n','d','p','o','i','n','t',' ','d', +'o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','d','u','a','l','-','s','t','a','c', +'k',',',' ','d','i','s','p','a','t','c','h','i','n','g',' ','t','h','e',' ','r','e','q','u','e','s', +'t',' ','M','A','Y',' ','r','e','t','u','r','n',' ','a','n',' ','e','r','r','o','r','.','"',',','"', +'t','y','p','e','"',':','"','B','o','o','l','e','a','n','"','}',',','"','U','s','e','F','I','P','S', +'"',':','{','"','b','u','i','l','t','I','n','"',':','"','A','W','S',':',':','U','s','e','F','I','P', +'S','"',',','"','r','e','q','u','i','r','e','d','"',':','t','r','u','e',',','"','d','e','f','a','u', +'l','t','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"', +':','"','W','h','e','n',' ','t','r','u','e',',',' ','s','e','n','d',' ','t','h','i','s',' ','r','e', +'q','u','e','s','t',' ','t','o',' ','t','h','e',' ','F','I','P','S','-','c','o','m','p','l','i','a', +'n','t',' ','r','e','g','i','o','n','a','l',' ','e','n','d','p','o','i','n','t','.',' ','I','f',' ', +'t','h','e',' ','c','o','n','f','i','g','u','r','e','d',' ','e','n','d','p','o','i','n','t',' ','d', +'o','e','s',' ','n','o','t',' ','h','a','v','e',' ','a',' ','F','I','P','S',' ','c','o','m','p','l', +'i','a','n','t',' ','e','n','d','p','o','i','n','t',',',' ','d','i','s','p','a','t','c','h','i','n', +'g',' ','t','h','e',' ','r','e','q','u','e','s','t',' ','w','i','l','l',' ','r','e','t','u','r','n', +' ','a','n',' ','e','r','r','o','r','.','"',',','"','t','y','p','e','"',':','"','B','o','o','l','e', +'a','n','"','}',',','"','E','n','d','p','o','i','n','t','"',':','{','"','b','u','i','l','t','I','n', +'"',':','"','S','D','K',':',':','E','n','d','p','o','i','n','t','"',',','"','r','e','q','u','i','r', +'e','d','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"', +':','"','O','v','e','r','r','i','d','e',' ','t','h','e',' ','e','n','d','p','o','i','n','t',' ','u', +'s','e','d',' ','t','o',' ','s','e','n','d',' ','t','h','i','s',' ','r','e','q','u','e','s','t','"', +',','"','t','y','p','e','"',':','"','S','t','r','i','n','g','"','}','}',',','"','r','u','l','e','s', +'"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"', +'i','s','S','e','t','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','E','n', +'d','p','o','i','n','t','"','}',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o', +'n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n', +'E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U', +'s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',']',',','"','e','r','r','o','r','"',':', +'"','I','n','v','a','l','i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','F', +'I','P','S',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t',' ','a', +'r','e',' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e','"',':', +'"','e','r','r','o','r','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']', +',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[', +'{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r', +'g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k', +'"','}',',','t','r','u','e',']','}',']',',','"','e','r','r','o','r','"',':','"','I','n','v','a','l', +'i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','D','u','a','l','s','t','a', +'c','k',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t',' ','a','r', +'e',' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e','"',':','"', +'e','r','r','o','r','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',', +'"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','{','"','r','e','f','"',':', +'"','E','n','d','p','o','i','n','t','"','}',',','"','p','r','o','p','e','r','t','i','e','s','"',':', +'{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"', +'e','n','d','p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"', +'}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i', +'t','i','o','n','s','"',':','[',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d', +'i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','i','s','S','e','t','"',',','"','a', +'r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']','}',']', +',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[', +'{','"','f','n','"',':','"','a','w','s','.','p','a','r','t','i','t','i','o','n','"',',','"','a','r', +'g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']',',','"','a', +'s','s','i','g','n','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}', +']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':', +'[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a', +'r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t', +'r','u','e',']','}',',','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l', +'s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a', +'l','S','t','a','c','k','"','}',',','t','r','u','e',']','}',']',',','"','r','u','l','e','s','"',':', +'[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o', +'o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t','r','u','e', +',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[', +'{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}', +',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',']','}',',','{','"','f','n','"', +':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[', +'t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g', +'v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u', +'l','t','"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',']', +'}',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n', +'s','"',':','[',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o', +'n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':', +'"','h','t','t','p','s',':','/','/','c','o','n','n','e','c','t','-','c','a','m','p','a','i','g','n', +'s','-','f','i','p','s','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o', +'n','R','e','s','u','l','t','#','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i', +'x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d', +'e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t', +'"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',']',',','"','t','y','p','e', +'"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[', +']',',','"','e','r','r','o','r','"',':','"','F','I','P','S',' ','a','n','d',' ','D','u','a','l','S', +'t','a','c','k',' ','a','r','e',' ','e','n','a','b','l','e','d',',',' ','b','u','t',' ','t','h','i', +'s',' ','p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p', +'o','r','t',' ','o','n','e',' ','o','r',' ','b','o','t','h','"',',','"','t','y','p','e','"',':','"', +'e','r','r','o','r','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{', +'"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l', +'e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"', +':','"','U','s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',']',',','"','r','u','l','e', +'s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':', +'"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{', +'"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[','{','"', +'r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',',','"', +'s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',',','t','r','u','e',']','}',']',',','"', +'r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',', +'"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']', +',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s', +':','/','/','c','o','n','n','e','c','t','-','c','a','m','p','a','i','g','n','s','-','f','i','p','s', +'.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u','l', +'t','#','d','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s', +'"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"', +':','"','e','n','d','p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e', +'e','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n', +'d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','F','I','P','S', +' ','i','s',' ','e','n','a','b','l','e','d',' ','b','u','t',' ','t','h','i','s',' ','p','a','r','t', +'i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','F','I', +'P','S','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']',',','"','t','y','p', +'e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':', +'[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a', +'r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c', +'k','"','}',',','t','r','u','e',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o', +'n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n', +'E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t','r','u','e',',','{','"','f','n', +'"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f', +'"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',',','"','s','u','p', +'p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',']','}',']','}',']',',','"','r','u','l', +'e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','r','u', +'l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e', +'n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/', +'c','o','n','n','e','c','t','-','c','a','m','p','a','i','g','n','s','.','{','R','e','g','i','o','n', +'}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','u','a','l','S','t', +'a','c','k','D','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e', +'s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e', +'"',':','"','e','n','d','p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r', +'e','e','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o', +'n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','D','u','a', +'l','S','t','a','c','k',' ','i','s',' ','e','n','a','b','l','e','d',' ','b','u','t',' ','t','h','i', +'s',' ','p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p', +'o','r','t',' ','D','u','a','l','S','t','a','c','k','"',',','"','t','y','p','e','"',':','"','e','r', +'r','o','r','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c', +'o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','r','u','l','e','s','"',':','[','{','"', +'c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"', +':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','c','o','n','n','e','c','t','-', +'c','a','m','p','a','i','g','n','s','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i', +'t','i','o','n','R','e','s','u','l','t','#','d','n','s','S','u','f','f','i','x','}','"',',','"','p', +'r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{', +'}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']',',','"','t', +'y','p','e','"',':','"','t','r','e','e','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e', +'e','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n', +'d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','I','n','v','a', +'l','i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','M','i','s','s','i','n', +'g',' ','R','e','g','i','o','n','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}', +']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',']','}','\0' +}}; + +const char* ConnectCampaignsV2EndpointRules::GetRulesBlob() +{ + return RulesBlob.data(); +} + +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2ErrorMarshaller.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2ErrorMarshaller.cpp new file mode 100644 index 00000000000..c0dc4175395 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2ErrorMarshaller.cpp @@ -0,0 +1,22 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::ConnectCampaignsV2; + +AWSError ConnectCampaignsV2ErrorMarshaller::FindErrorByName(const char* errorName) const +{ + AWSError error = ConnectCampaignsV2ErrorMapper::GetErrorForName(errorName); + if(error.GetErrorType() != CoreErrors::UNKNOWN) + { + return error; + } + + return AWSErrorMarshaller::FindErrorByName(errorName); +} \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Errors.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Errors.cpp new file mode 100644 index 00000000000..c352408127a --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Errors.cpp @@ -0,0 +1,121 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::Utils; +using namespace Aws::ConnectCampaignsV2; +using namespace Aws::ConnectCampaignsV2::Model; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +template<> AWS_CONNECTCAMPAIGNSV2_API ConflictException ConnectCampaignsV2Error::GetModeledError() +{ + assert(this->GetErrorType() == ConnectCampaignsV2Errors::CONFLICT); + return ConflictException(this->GetJsonPayload().View()); +} + +template<> AWS_CONNECTCAMPAIGNSV2_API ServiceQuotaExceededException ConnectCampaignsV2Error::GetModeledError() +{ + assert(this->GetErrorType() == ConnectCampaignsV2Errors::SERVICE_QUOTA_EXCEEDED); + return ServiceQuotaExceededException(this->GetJsonPayload().View()); +} + +template<> AWS_CONNECTCAMPAIGNSV2_API ThrottlingException ConnectCampaignsV2Error::GetModeledError() +{ + assert(this->GetErrorType() == ConnectCampaignsV2Errors::THROTTLING); + return ThrottlingException(this->GetJsonPayload().View()); +} + +template<> AWS_CONNECTCAMPAIGNSV2_API InternalServerException ConnectCampaignsV2Error::GetModeledError() +{ + assert(this->GetErrorType() == ConnectCampaignsV2Errors::INTERNAL_SERVER); + return InternalServerException(this->GetJsonPayload().View()); +} + +template<> AWS_CONNECTCAMPAIGNSV2_API ResourceNotFoundException ConnectCampaignsV2Error::GetModeledError() +{ + assert(this->GetErrorType() == ConnectCampaignsV2Errors::RESOURCE_NOT_FOUND); + return ResourceNotFoundException(this->GetJsonPayload().View()); +} + +template<> AWS_CONNECTCAMPAIGNSV2_API ValidationException ConnectCampaignsV2Error::GetModeledError() +{ + assert(this->GetErrorType() == ConnectCampaignsV2Errors::VALIDATION); + return ValidationException(this->GetJsonPayload().View()); +} + +template<> AWS_CONNECTCAMPAIGNSV2_API AccessDeniedException ConnectCampaignsV2Error::GetModeledError() +{ + assert(this->GetErrorType() == ConnectCampaignsV2Errors::ACCESS_DENIED); + return AccessDeniedException(this->GetJsonPayload().View()); +} + +template<> AWS_CONNECTCAMPAIGNSV2_API InvalidCampaignStateException ConnectCampaignsV2Error::GetModeledError() +{ + assert(this->GetErrorType() == ConnectCampaignsV2Errors::INVALID_CAMPAIGN_STATE); + return InvalidCampaignStateException(this->GetJsonPayload().View()); +} + +template<> AWS_CONNECTCAMPAIGNSV2_API InvalidStateException ConnectCampaignsV2Error::GetModeledError() +{ + assert(this->GetErrorType() == ConnectCampaignsV2Errors::INVALID_STATE); + return InvalidStateException(this->GetJsonPayload().View()); +} + +namespace ConnectCampaignsV2ErrorMapper +{ + +static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); +static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); +static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static const int INVALID_CAMPAIGN_STATE_HASH = HashingUtils::HashString("InvalidCampaignStateException"); +static const int INVALID_STATE_HASH = HashingUtils::HashString("InvalidStateException"); + + +AWSError GetErrorForName(const char* errorName) +{ + int hashCode = HashingUtils::HashString(errorName); + + if (hashCode == CONFLICT_HASH) + { + return AWSError(static_cast(ConnectCampaignsV2Errors::CONFLICT), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) + { + return AWSError(static_cast(ConnectCampaignsV2Errors::SERVICE_QUOTA_EXCEEDED), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == INTERNAL_SERVER_HASH) + { + return AWSError(static_cast(ConnectCampaignsV2Errors::INTERNAL_SERVER), RetryableType::RETRYABLE); + } + else if (hashCode == INVALID_CAMPAIGN_STATE_HASH) + { + return AWSError(static_cast(ConnectCampaignsV2Errors::INVALID_CAMPAIGN_STATE), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == INVALID_STATE_HASH) + { + return AWSError(static_cast(ConnectCampaignsV2Errors::INVALID_STATE), RetryableType::NOT_RETRYABLE); + } + return AWSError(CoreErrors::UNKNOWN, false); +} + +} // namespace ConnectCampaignsV2ErrorMapper +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Request.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Request.cpp new file mode 100644 index 00000000000..b35e4db0209 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Request.cpp @@ -0,0 +1,14 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + + +#include + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/AccessDeniedException.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/AccessDeniedException.cpp new file mode 100644 index 00000000000..c381c5e4233 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/AccessDeniedException.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +AccessDeniedException::AccessDeniedException() : + m_messageHasBeenSet(false), + m_xAmzErrorTypeHasBeenSet(false) +{ +} + +AccessDeniedException::AccessDeniedException(JsonView jsonValue) + : AccessDeniedException() +{ + *this = jsonValue; +} + +AccessDeniedException& AccessDeniedException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue AccessDeniedException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/AgentlessConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/AgentlessConfig.cpp new file mode 100644 index 00000000000..df6eafab37b --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/AgentlessConfig.cpp @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +AgentlessConfig::AgentlessConfig() +{ +} + +AgentlessConfig::AgentlessConfig(JsonView jsonValue) +{ + *this = jsonValue; +} + +AgentlessConfig& AgentlessConfig::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue AgentlessConfig::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/AnswerMachineDetectionConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/AnswerMachineDetectionConfig.cpp new file mode 100644 index 00000000000..5adf4363299 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/AnswerMachineDetectionConfig.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +AnswerMachineDetectionConfig::AnswerMachineDetectionConfig() : + m_enableAnswerMachineDetection(false), + m_enableAnswerMachineDetectionHasBeenSet(false), + m_awaitAnswerMachinePrompt(false), + m_awaitAnswerMachinePromptHasBeenSet(false) +{ +} + +AnswerMachineDetectionConfig::AnswerMachineDetectionConfig(JsonView jsonValue) + : AnswerMachineDetectionConfig() +{ + *this = jsonValue; +} + +AnswerMachineDetectionConfig& AnswerMachineDetectionConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("enableAnswerMachineDetection")) + { + m_enableAnswerMachineDetection = jsonValue.GetBool("enableAnswerMachineDetection"); + + m_enableAnswerMachineDetectionHasBeenSet = true; + } + + if(jsonValue.ValueExists("awaitAnswerMachinePrompt")) + { + m_awaitAnswerMachinePrompt = jsonValue.GetBool("awaitAnswerMachinePrompt"); + + m_awaitAnswerMachinePromptHasBeenSet = true; + } + + return *this; +} + +JsonValue AnswerMachineDetectionConfig::Jsonize() const +{ + JsonValue payload; + + if(m_enableAnswerMachineDetectionHasBeenSet) + { + payload.WithBool("enableAnswerMachineDetection", m_enableAnswerMachineDetection); + + } + + if(m_awaitAnswerMachinePromptHasBeenSet) + { + payload.WithBool("awaitAnswerMachinePrompt", m_awaitAnswerMachinePrompt); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/Campaign.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/Campaign.cpp new file mode 100644 index 00000000000..386b82ee152 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/Campaign.cpp @@ -0,0 +1,207 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +Campaign::Campaign() : + m_idHasBeenSet(false), + m_arnHasBeenSet(false), + m_nameHasBeenSet(false), + m_connectInstanceIdHasBeenSet(false), + m_channelSubtypeConfigHasBeenSet(false), + m_sourceHasBeenSet(false), + m_connectCampaignFlowArnHasBeenSet(false), + m_scheduleHasBeenSet(false), + m_communicationTimeConfigHasBeenSet(false), + m_communicationLimitsOverrideHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Campaign::Campaign(JsonView jsonValue) + : Campaign() +{ + *this = jsonValue; +} + +Campaign& Campaign::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("id")) + { + m_id = jsonValue.GetString("id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("connectInstanceId")) + { + m_connectInstanceId = jsonValue.GetString("connectInstanceId"); + + m_connectInstanceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("channelSubtypeConfig")) + { + m_channelSubtypeConfig = jsonValue.GetObject("channelSubtypeConfig"); + + m_channelSubtypeConfigHasBeenSet = true; + } + + if(jsonValue.ValueExists("source")) + { + m_source = jsonValue.GetObject("source"); + + m_sourceHasBeenSet = true; + } + + if(jsonValue.ValueExists("connectCampaignFlowArn")) + { + m_connectCampaignFlowArn = jsonValue.GetString("connectCampaignFlowArn"); + + m_connectCampaignFlowArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("schedule")) + { + m_schedule = jsonValue.GetObject("schedule"); + + m_scheduleHasBeenSet = true; + } + + if(jsonValue.ValueExists("communicationTimeConfig")) + { + m_communicationTimeConfig = jsonValue.GetObject("communicationTimeConfig"); + + m_communicationTimeConfigHasBeenSet = true; + } + + if(jsonValue.ValueExists("communicationLimitsOverride")) + { + m_communicationLimitsOverride = jsonValue.GetObject("communicationLimitsOverride"); + + m_communicationLimitsOverrideHasBeenSet = true; + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + m_tagsHasBeenSet = true; + } + + return *this; +} + +JsonValue Campaign::Jsonize() const +{ + JsonValue payload; + + if(m_idHasBeenSet) + { + payload.WithString("id", m_id); + + } + + if(m_arnHasBeenSet) + { + payload.WithString("arn", m_arn); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_connectInstanceIdHasBeenSet) + { + payload.WithString("connectInstanceId", m_connectInstanceId); + + } + + if(m_channelSubtypeConfigHasBeenSet) + { + payload.WithObject("channelSubtypeConfig", m_channelSubtypeConfig.Jsonize()); + + } + + if(m_sourceHasBeenSet) + { + payload.WithObject("source", m_source.Jsonize()); + + } + + if(m_connectCampaignFlowArnHasBeenSet) + { + payload.WithString("connectCampaignFlowArn", m_connectCampaignFlowArn); + + } + + if(m_scheduleHasBeenSet) + { + payload.WithObject("schedule", m_schedule.Jsonize()); + + } + + if(m_communicationTimeConfigHasBeenSet) + { + payload.WithObject("communicationTimeConfig", m_communicationTimeConfig.Jsonize()); + + } + + if(m_communicationLimitsOverrideHasBeenSet) + { + payload.WithObject("communicationLimitsOverride", m_communicationLimitsOverride.Jsonize()); + + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignDeletionPolicy.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignDeletionPolicy.cpp new file mode 100644 index 00000000000..e649e514ab1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignDeletionPolicy.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace CampaignDeletionPolicyMapper + { + + static const int RETAIN_ALL_HASH = HashingUtils::HashString("RETAIN_ALL"); + static const int DELETE_ALL_HASH = HashingUtils::HashString("DELETE_ALL"); + + + CampaignDeletionPolicy GetCampaignDeletionPolicyForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == RETAIN_ALL_HASH) + { + return CampaignDeletionPolicy::RETAIN_ALL; + } + else if (hashCode == DELETE_ALL_HASH) + { + return CampaignDeletionPolicy::DELETE_ALL; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CampaignDeletionPolicy::NOT_SET; + } + + Aws::String GetNameForCampaignDeletionPolicy(CampaignDeletionPolicy enumValue) + { + switch(enumValue) + { + case CampaignDeletionPolicy::NOT_SET: + return {}; + case CampaignDeletionPolicy::RETAIN_ALL: + return "RETAIN_ALL"; + case CampaignDeletionPolicy::DELETE_ALL: + return "DELETE_ALL"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CampaignDeletionPolicyMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignFilters.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignFilters.cpp new file mode 100644 index 00000000000..12a6a4c5dd2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignFilters.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +CampaignFilters::CampaignFilters() : + m_instanceIdFilterHasBeenSet(false) +{ +} + +CampaignFilters::CampaignFilters(JsonView jsonValue) + : CampaignFilters() +{ + *this = jsonValue; +} + +CampaignFilters& CampaignFilters::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("instanceIdFilter")) + { + m_instanceIdFilter = jsonValue.GetObject("instanceIdFilter"); + + m_instanceIdFilterHasBeenSet = true; + } + + return *this; +} + +JsonValue CampaignFilters::Jsonize() const +{ + JsonValue payload; + + if(m_instanceIdFilterHasBeenSet) + { + payload.WithObject("instanceIdFilter", m_instanceIdFilter.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignState.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignState.cpp new file mode 100644 index 00000000000..a1361388da4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignState.cpp @@ -0,0 +1,100 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace CampaignStateMapper + { + + static const int Initialized_HASH = HashingUtils::HashString("Initialized"); + static const int Running_HASH = HashingUtils::HashString("Running"); + static const int Paused_HASH = HashingUtils::HashString("Paused"); + static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static const int Failed_HASH = HashingUtils::HashString("Failed"); + static const int Completed_HASH = HashingUtils::HashString("Completed"); + + + CampaignState GetCampaignStateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Initialized_HASH) + { + return CampaignState::Initialized; + } + else if (hashCode == Running_HASH) + { + return CampaignState::Running; + } + else if (hashCode == Paused_HASH) + { + return CampaignState::Paused; + } + else if (hashCode == Stopped_HASH) + { + return CampaignState::Stopped; + } + else if (hashCode == Failed_HASH) + { + return CampaignState::Failed; + } + else if (hashCode == Completed_HASH) + { + return CampaignState::Completed; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CampaignState::NOT_SET; + } + + Aws::String GetNameForCampaignState(CampaignState enumValue) + { + switch(enumValue) + { + case CampaignState::NOT_SET: + return {}; + case CampaignState::Initialized: + return "Initialized"; + case CampaignState::Running: + return "Running"; + case CampaignState::Paused: + return "Paused"; + case CampaignState::Stopped: + return "Stopped"; + case CampaignState::Failed: + return "Failed"; + case CampaignState::Completed: + return "Completed"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CampaignStateMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignSummary.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignSummary.cpp new file mode 100644 index 00000000000..60399316231 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CampaignSummary.cpp @@ -0,0 +1,151 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +CampaignSummary::CampaignSummary() : + m_idHasBeenSet(false), + m_arnHasBeenSet(false), + m_nameHasBeenSet(false), + m_connectInstanceIdHasBeenSet(false), + m_channelSubtypesHasBeenSet(false), + m_scheduleHasBeenSet(false), + m_connectCampaignFlowArnHasBeenSet(false) +{ +} + +CampaignSummary::CampaignSummary(JsonView jsonValue) + : CampaignSummary() +{ + *this = jsonValue; +} + +CampaignSummary& CampaignSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("id")) + { + m_id = jsonValue.GetString("id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("connectInstanceId")) + { + m_connectInstanceId = jsonValue.GetString("connectInstanceId"); + + m_connectInstanceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("channelSubtypes")) + { + Aws::Utils::Array channelSubtypesJsonList = jsonValue.GetArray("channelSubtypes"); + for(unsigned channelSubtypesIndex = 0; channelSubtypesIndex < channelSubtypesJsonList.GetLength(); ++channelSubtypesIndex) + { + m_channelSubtypes.push_back(ChannelSubtypeMapper::GetChannelSubtypeForName(channelSubtypesJsonList[channelSubtypesIndex].AsString())); + } + m_channelSubtypesHasBeenSet = true; + } + + if(jsonValue.ValueExists("schedule")) + { + m_schedule = jsonValue.GetObject("schedule"); + + m_scheduleHasBeenSet = true; + } + + if(jsonValue.ValueExists("connectCampaignFlowArn")) + { + m_connectCampaignFlowArn = jsonValue.GetString("connectCampaignFlowArn"); + + m_connectCampaignFlowArnHasBeenSet = true; + } + + return *this; +} + +JsonValue CampaignSummary::Jsonize() const +{ + JsonValue payload; + + if(m_idHasBeenSet) + { + payload.WithString("id", m_id); + + } + + if(m_arnHasBeenSet) + { + payload.WithString("arn", m_arn); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_connectInstanceIdHasBeenSet) + { + payload.WithString("connectInstanceId", m_connectInstanceId); + + } + + if(m_channelSubtypesHasBeenSet) + { + Aws::Utils::Array channelSubtypesJsonList(m_channelSubtypes.size()); + for(unsigned channelSubtypesIndex = 0; channelSubtypesIndex < channelSubtypesJsonList.GetLength(); ++channelSubtypesIndex) + { + channelSubtypesJsonList[channelSubtypesIndex].AsString(ChannelSubtypeMapper::GetNameForChannelSubtype(m_channelSubtypes[channelSubtypesIndex])); + } + payload.WithArray("channelSubtypes", std::move(channelSubtypesJsonList)); + + } + + if(m_scheduleHasBeenSet) + { + payload.WithObject("schedule", m_schedule.Jsonize()); + + } + + if(m_connectCampaignFlowArnHasBeenSet) + { + payload.WithString("connectCampaignFlowArn", m_connectCampaignFlowArn); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ChannelSubtype.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ChannelSubtype.cpp new file mode 100644 index 00000000000..ffa219e62fb --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ChannelSubtype.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace ChannelSubtypeMapper + { + + static const int TELEPHONY_HASH = HashingUtils::HashString("TELEPHONY"); + static const int SMS_HASH = HashingUtils::HashString("SMS"); + static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); + + + ChannelSubtype GetChannelSubtypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == TELEPHONY_HASH) + { + return ChannelSubtype::TELEPHONY; + } + else if (hashCode == SMS_HASH) + { + return ChannelSubtype::SMS; + } + else if (hashCode == EMAIL_HASH) + { + return ChannelSubtype::EMAIL; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ChannelSubtype::NOT_SET; + } + + Aws::String GetNameForChannelSubtype(ChannelSubtype enumValue) + { + switch(enumValue) + { + case ChannelSubtype::NOT_SET: + return {}; + case ChannelSubtype::TELEPHONY: + return "TELEPHONY"; + case ChannelSubtype::SMS: + return "SMS"; + case ChannelSubtype::EMAIL: + return "EMAIL"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ChannelSubtypeMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ChannelSubtypeConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ChannelSubtypeConfig.cpp new file mode 100644 index 00000000000..83e4a4cdcb1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ChannelSubtypeConfig.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +ChannelSubtypeConfig::ChannelSubtypeConfig() : + m_telephonyHasBeenSet(false), + m_smsHasBeenSet(false), + m_emailHasBeenSet(false) +{ +} + +ChannelSubtypeConfig::ChannelSubtypeConfig(JsonView jsonValue) + : ChannelSubtypeConfig() +{ + *this = jsonValue; +} + +ChannelSubtypeConfig& ChannelSubtypeConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("telephony")) + { + m_telephony = jsonValue.GetObject("telephony"); + + m_telephonyHasBeenSet = true; + } + + if(jsonValue.ValueExists("sms")) + { + m_sms = jsonValue.GetObject("sms"); + + m_smsHasBeenSet = true; + } + + if(jsonValue.ValueExists("email")) + { + m_email = jsonValue.GetObject("email"); + + m_emailHasBeenSet = true; + } + + return *this; +} + +JsonValue ChannelSubtypeConfig::Jsonize() const +{ + JsonValue payload; + + if(m_telephonyHasBeenSet) + { + payload.WithObject("telephony", m_telephony.Jsonize()); + + } + + if(m_smsHasBeenSet) + { + payload.WithObject("sms", m_sms.Jsonize()); + + } + + if(m_emailHasBeenSet) + { + payload.WithObject("email", m_email.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ChannelSubtypeParameters.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ChannelSubtypeParameters.cpp new file mode 100644 index 00000000000..c5b67cb99b4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ChannelSubtypeParameters.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +ChannelSubtypeParameters::ChannelSubtypeParameters() : + m_telephonyHasBeenSet(false), + m_smsHasBeenSet(false), + m_emailHasBeenSet(false) +{ +} + +ChannelSubtypeParameters::ChannelSubtypeParameters(JsonView jsonValue) + : ChannelSubtypeParameters() +{ + *this = jsonValue; +} + +ChannelSubtypeParameters& ChannelSubtypeParameters::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("telephony")) + { + m_telephony = jsonValue.GetObject("telephony"); + + m_telephonyHasBeenSet = true; + } + + if(jsonValue.ValueExists("sms")) + { + m_sms = jsonValue.GetObject("sms"); + + m_smsHasBeenSet = true; + } + + if(jsonValue.ValueExists("email")) + { + m_email = jsonValue.GetObject("email"); + + m_emailHasBeenSet = true; + } + + return *this; +} + +JsonValue ChannelSubtypeParameters::Jsonize() const +{ + JsonValue payload; + + if(m_telephonyHasBeenSet) + { + payload.WithObject("telephony", m_telephony.Jsonize()); + + } + + if(m_smsHasBeenSet) + { + payload.WithObject("sms", m_sms.Jsonize()); + + } + + if(m_emailHasBeenSet) + { + payload.WithObject("email", m_email.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimit.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimit.cpp new file mode 100644 index 00000000000..5a1250cafaa --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimit.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +CommunicationLimit::CommunicationLimit() : + m_maxCountPerRecipient(0), + m_maxCountPerRecipientHasBeenSet(false), + m_frequency(0), + m_frequencyHasBeenSet(false), + m_unit(CommunicationLimitTimeUnit::NOT_SET), + m_unitHasBeenSet(false) +{ +} + +CommunicationLimit::CommunicationLimit(JsonView jsonValue) + : CommunicationLimit() +{ + *this = jsonValue; +} + +CommunicationLimit& CommunicationLimit::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("maxCountPerRecipient")) + { + m_maxCountPerRecipient = jsonValue.GetInteger("maxCountPerRecipient"); + + m_maxCountPerRecipientHasBeenSet = true; + } + + if(jsonValue.ValueExists("frequency")) + { + m_frequency = jsonValue.GetInteger("frequency"); + + m_frequencyHasBeenSet = true; + } + + if(jsonValue.ValueExists("unit")) + { + m_unit = CommunicationLimitTimeUnitMapper::GetCommunicationLimitTimeUnitForName(jsonValue.GetString("unit")); + + m_unitHasBeenSet = true; + } + + return *this; +} + +JsonValue CommunicationLimit::Jsonize() const +{ + JsonValue payload; + + if(m_maxCountPerRecipientHasBeenSet) + { + payload.WithInteger("maxCountPerRecipient", m_maxCountPerRecipient); + + } + + if(m_frequencyHasBeenSet) + { + payload.WithInteger("frequency", m_frequency); + + } + + if(m_unitHasBeenSet) + { + payload.WithString("unit", CommunicationLimitTimeUnitMapper::GetNameForCommunicationLimitTimeUnit(m_unit)); + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimitTimeUnit.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimitTimeUnit.cpp new file mode 100644 index 00000000000..d86489e9658 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimitTimeUnit.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace CommunicationLimitTimeUnitMapper + { + + static const int DAY_HASH = HashingUtils::HashString("DAY"); + + + CommunicationLimitTimeUnit GetCommunicationLimitTimeUnitForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == DAY_HASH) + { + return CommunicationLimitTimeUnit::DAY; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CommunicationLimitTimeUnit::NOT_SET; + } + + Aws::String GetNameForCommunicationLimitTimeUnit(CommunicationLimitTimeUnit enumValue) + { + switch(enumValue) + { + case CommunicationLimitTimeUnit::NOT_SET: + return {}; + case CommunicationLimitTimeUnit::DAY: + return "DAY"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CommunicationLimitTimeUnitMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimits.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimits.cpp new file mode 100644 index 00000000000..08219383aa4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimits.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +CommunicationLimits::CommunicationLimits() : + m_communicationLimitsListHasBeenSet(false) +{ +} + +CommunicationLimits::CommunicationLimits(JsonView jsonValue) + : CommunicationLimits() +{ + *this = jsonValue; +} + +CommunicationLimits& CommunicationLimits::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("communicationLimitsList")) + { + Aws::Utils::Array communicationLimitsListJsonList = jsonValue.GetArray("communicationLimitsList"); + for(unsigned communicationLimitsListIndex = 0; communicationLimitsListIndex < communicationLimitsListJsonList.GetLength(); ++communicationLimitsListIndex) + { + m_communicationLimitsList.push_back(communicationLimitsListJsonList[communicationLimitsListIndex].AsObject()); + } + m_communicationLimitsListHasBeenSet = true; + } + + return *this; +} + +JsonValue CommunicationLimits::Jsonize() const +{ + JsonValue payload; + + if(m_communicationLimitsListHasBeenSet) + { + Aws::Utils::Array communicationLimitsListJsonList(m_communicationLimitsList.size()); + for(unsigned communicationLimitsListIndex = 0; communicationLimitsListIndex < communicationLimitsListJsonList.GetLength(); ++communicationLimitsListIndex) + { + communicationLimitsListJsonList[communicationLimitsListIndex].AsObject(m_communicationLimitsList[communicationLimitsListIndex].Jsonize()); + } + payload.WithArray("communicationLimitsList", std::move(communicationLimitsListJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimitsConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimitsConfig.cpp new file mode 100644 index 00000000000..e9a4bf475bf --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimitsConfig.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +CommunicationLimitsConfig::CommunicationLimitsConfig() : + m_allChannelSubtypesHasBeenSet(false) +{ +} + +CommunicationLimitsConfig::CommunicationLimitsConfig(JsonView jsonValue) + : CommunicationLimitsConfig() +{ + *this = jsonValue; +} + +CommunicationLimitsConfig& CommunicationLimitsConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("allChannelSubtypes")) + { + m_allChannelSubtypes = jsonValue.GetObject("allChannelSubtypes"); + + m_allChannelSubtypesHasBeenSet = true; + } + + return *this; +} + +JsonValue CommunicationLimitsConfig::Jsonize() const +{ + JsonValue payload; + + if(m_allChannelSubtypesHasBeenSet) + { + payload.WithObject("allChannelSubtypes", m_allChannelSubtypes.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimitsConfigType.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimitsConfigType.cpp new file mode 100644 index 00000000000..c61107ee5d7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationLimitsConfigType.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace CommunicationLimitsConfigTypeMapper + { + + static const int ALL_CHANNEL_SUBTYPES_HASH = HashingUtils::HashString("ALL_CHANNEL_SUBTYPES"); + + + CommunicationLimitsConfigType GetCommunicationLimitsConfigTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ALL_CHANNEL_SUBTYPES_HASH) + { + return CommunicationLimitsConfigType::ALL_CHANNEL_SUBTYPES; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CommunicationLimitsConfigType::NOT_SET; + } + + Aws::String GetNameForCommunicationLimitsConfigType(CommunicationLimitsConfigType enumValue) + { + switch(enumValue) + { + case CommunicationLimitsConfigType::NOT_SET: + return {}; + case CommunicationLimitsConfigType::ALL_CHANNEL_SUBTYPES: + return "ALL_CHANNEL_SUBTYPES"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CommunicationLimitsConfigTypeMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationTimeConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationTimeConfig.cpp new file mode 100644 index 00000000000..b272a2dfea0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationTimeConfig.cpp @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +CommunicationTimeConfig::CommunicationTimeConfig() : + m_localTimeZoneConfigHasBeenSet(false), + m_telephonyHasBeenSet(false), + m_smsHasBeenSet(false), + m_emailHasBeenSet(false) +{ +} + +CommunicationTimeConfig::CommunicationTimeConfig(JsonView jsonValue) + : CommunicationTimeConfig() +{ + *this = jsonValue; +} + +CommunicationTimeConfig& CommunicationTimeConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("localTimeZoneConfig")) + { + m_localTimeZoneConfig = jsonValue.GetObject("localTimeZoneConfig"); + + m_localTimeZoneConfigHasBeenSet = true; + } + + if(jsonValue.ValueExists("telephony")) + { + m_telephony = jsonValue.GetObject("telephony"); + + m_telephonyHasBeenSet = true; + } + + if(jsonValue.ValueExists("sms")) + { + m_sms = jsonValue.GetObject("sms"); + + m_smsHasBeenSet = true; + } + + if(jsonValue.ValueExists("email")) + { + m_email = jsonValue.GetObject("email"); + + m_emailHasBeenSet = true; + } + + return *this; +} + +JsonValue CommunicationTimeConfig::Jsonize() const +{ + JsonValue payload; + + if(m_localTimeZoneConfigHasBeenSet) + { + payload.WithObject("localTimeZoneConfig", m_localTimeZoneConfig.Jsonize()); + + } + + if(m_telephonyHasBeenSet) + { + payload.WithObject("telephony", m_telephony.Jsonize()); + + } + + if(m_smsHasBeenSet) + { + payload.WithObject("sms", m_sms.Jsonize()); + + } + + if(m_emailHasBeenSet) + { + payload.WithObject("email", m_email.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationTimeConfigType.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationTimeConfigType.cpp new file mode 100644 index 00000000000..df7de93133b --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CommunicationTimeConfigType.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace CommunicationTimeConfigTypeMapper + { + + static const int TELEPHONY_HASH = HashingUtils::HashString("TELEPHONY"); + static const int SMS_HASH = HashingUtils::HashString("SMS"); + static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); + + + CommunicationTimeConfigType GetCommunicationTimeConfigTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == TELEPHONY_HASH) + { + return CommunicationTimeConfigType::TELEPHONY; + } + else if (hashCode == SMS_HASH) + { + return CommunicationTimeConfigType::SMS; + } + else if (hashCode == EMAIL_HASH) + { + return CommunicationTimeConfigType::EMAIL; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CommunicationTimeConfigType::NOT_SET; + } + + Aws::String GetNameForCommunicationTimeConfigType(CommunicationTimeConfigType enumValue) + { + switch(enumValue) + { + case CommunicationTimeConfigType::NOT_SET: + return {}; + case CommunicationTimeConfigType::TELEPHONY: + return "TELEPHONY"; + case CommunicationTimeConfigType::SMS: + return "SMS"; + case CommunicationTimeConfigType::EMAIL: + return "EMAIL"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CommunicationTimeConfigTypeMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ConflictException.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ConflictException.cpp new file mode 100644 index 00000000000..366dec0bcaa --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ConflictException.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +ConflictException::ConflictException() : + m_messageHasBeenSet(false), + m_xAmzErrorTypeHasBeenSet(false) +{ +} + +ConflictException::ConflictException(JsonView jsonValue) + : ConflictException() +{ + *this = jsonValue; +} + +ConflictException& ConflictException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue ConflictException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CreateCampaignRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CreateCampaignRequest.cpp new file mode 100644 index 00000000000..8b1a84d2140 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CreateCampaignRequest.cpp @@ -0,0 +1,96 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateCampaignRequest::CreateCampaignRequest() : + m_nameHasBeenSet(false), + m_connectInstanceIdHasBeenSet(false), + m_channelSubtypeConfigHasBeenSet(false), + m_sourceHasBeenSet(false), + m_connectCampaignFlowArnHasBeenSet(false), + m_scheduleHasBeenSet(false), + m_communicationTimeConfigHasBeenSet(false), + m_communicationLimitsOverrideHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateCampaignRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_connectInstanceIdHasBeenSet) + { + payload.WithString("connectInstanceId", m_connectInstanceId); + + } + + if(m_channelSubtypeConfigHasBeenSet) + { + payload.WithObject("channelSubtypeConfig", m_channelSubtypeConfig.Jsonize()); + + } + + if(m_sourceHasBeenSet) + { + payload.WithObject("source", m_source.Jsonize()); + + } + + if(m_connectCampaignFlowArnHasBeenSet) + { + payload.WithString("connectCampaignFlowArn", m_connectCampaignFlowArn); + + } + + if(m_scheduleHasBeenSet) + { + payload.WithObject("schedule", m_schedule.Jsonize()); + + } + + if(m_communicationTimeConfigHasBeenSet) + { + payload.WithObject("communicationTimeConfig", m_communicationTimeConfig.Jsonize()); + + } + + if(m_communicationLimitsOverrideHasBeenSet) + { + payload.WithObject("communicationLimitsOverride", m_communicationLimitsOverride.Jsonize()); + + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CreateCampaignResult.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CreateCampaignResult.cpp new file mode 100644 index 00000000000..f17800a882d --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CreateCampaignResult.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateCampaignResult::CreateCampaignResult() +{ +} + +CreateCampaignResult::CreateCampaignResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateCampaignResult& CreateCampaignResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("id")) + { + m_id = jsonValue.GetString("id"); + + } + + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CustomerProfilesIntegrationConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CustomerProfilesIntegrationConfig.cpp new file mode 100644 index 00000000000..ab85a3c7245 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CustomerProfilesIntegrationConfig.cpp @@ -0,0 +1,81 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +CustomerProfilesIntegrationConfig::CustomerProfilesIntegrationConfig() : + m_domainArnHasBeenSet(false), + m_objectTypeNamesHasBeenSet(false) +{ +} + +CustomerProfilesIntegrationConfig::CustomerProfilesIntegrationConfig(JsonView jsonValue) + : CustomerProfilesIntegrationConfig() +{ + *this = jsonValue; +} + +CustomerProfilesIntegrationConfig& CustomerProfilesIntegrationConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("domainArn")) + { + m_domainArn = jsonValue.GetString("domainArn"); + + m_domainArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("objectTypeNames")) + { + Aws::Map objectTypeNamesJsonMap = jsonValue.GetObject("objectTypeNames").GetAllObjects(); + for(auto& objectTypeNamesItem : objectTypeNamesJsonMap) + { + m_objectTypeNames[EventTypeMapper::GetEventTypeForName(objectTypeNamesItem.first)] = objectTypeNamesItem.second.AsString(); + } + m_objectTypeNamesHasBeenSet = true; + } + + return *this; +} + +JsonValue CustomerProfilesIntegrationConfig::Jsonize() const +{ + JsonValue payload; + + if(m_domainArnHasBeenSet) + { + payload.WithString("domainArn", m_domainArn); + + } + + if(m_objectTypeNamesHasBeenSet) + { + JsonValue objectTypeNamesJsonMap; + for(auto& objectTypeNamesItem : m_objectTypeNames) + { + objectTypeNamesJsonMap.WithString(EventTypeMapper::GetNameForEventType(objectTypeNamesItem.first), objectTypeNamesItem.second); + } + payload.WithObject("objectTypeNames", std::move(objectTypeNamesJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CustomerProfilesIntegrationIdentifier.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CustomerProfilesIntegrationIdentifier.cpp new file mode 100644 index 00000000000..affea494769 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CustomerProfilesIntegrationIdentifier.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +CustomerProfilesIntegrationIdentifier::CustomerProfilesIntegrationIdentifier() : + m_domainArnHasBeenSet(false) +{ +} + +CustomerProfilesIntegrationIdentifier::CustomerProfilesIntegrationIdentifier(JsonView jsonValue) + : CustomerProfilesIntegrationIdentifier() +{ + *this = jsonValue; +} + +CustomerProfilesIntegrationIdentifier& CustomerProfilesIntegrationIdentifier::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("domainArn")) + { + m_domainArn = jsonValue.GetString("domainArn"); + + m_domainArnHasBeenSet = true; + } + + return *this; +} + +JsonValue CustomerProfilesIntegrationIdentifier::Jsonize() const +{ + JsonValue payload; + + if(m_domainArnHasBeenSet) + { + payload.WithString("domainArn", m_domainArn); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CustomerProfilesIntegrationSummary.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CustomerProfilesIntegrationSummary.cpp new file mode 100644 index 00000000000..74da71eb77f --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/CustomerProfilesIntegrationSummary.cpp @@ -0,0 +1,81 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +CustomerProfilesIntegrationSummary::CustomerProfilesIntegrationSummary() : + m_domainArnHasBeenSet(false), + m_objectTypeNamesHasBeenSet(false) +{ +} + +CustomerProfilesIntegrationSummary::CustomerProfilesIntegrationSummary(JsonView jsonValue) + : CustomerProfilesIntegrationSummary() +{ + *this = jsonValue; +} + +CustomerProfilesIntegrationSummary& CustomerProfilesIntegrationSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("domainArn")) + { + m_domainArn = jsonValue.GetString("domainArn"); + + m_domainArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("objectTypeNames")) + { + Aws::Map objectTypeNamesJsonMap = jsonValue.GetObject("objectTypeNames").GetAllObjects(); + for(auto& objectTypeNamesItem : objectTypeNamesJsonMap) + { + m_objectTypeNames[EventTypeMapper::GetEventTypeForName(objectTypeNamesItem.first)] = objectTypeNamesItem.second.AsString(); + } + m_objectTypeNamesHasBeenSet = true; + } + + return *this; +} + +JsonValue CustomerProfilesIntegrationSummary::Jsonize() const +{ + JsonValue payload; + + if(m_domainArnHasBeenSet) + { + payload.WithString("domainArn", m_domainArn); + + } + + if(m_objectTypeNamesHasBeenSet) + { + JsonValue objectTypeNamesJsonMap; + for(auto& objectTypeNamesItem : m_objectTypeNames) + { + objectTypeNamesJsonMap.WithString(EventTypeMapper::GetNameForEventType(objectTypeNamesItem.first), objectTypeNamesItem.second); + } + payload.WithObject("objectTypeNames", std::move(objectTypeNamesJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DayOfWeek.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DayOfWeek.cpp new file mode 100644 index 00000000000..bbff18f7956 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DayOfWeek.cpp @@ -0,0 +1,107 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace DayOfWeekMapper + { + + static const int MONDAY_HASH = HashingUtils::HashString("MONDAY"); + static const int TUESDAY_HASH = HashingUtils::HashString("TUESDAY"); + static const int WEDNESDAY_HASH = HashingUtils::HashString("WEDNESDAY"); + static const int THURSDAY_HASH = HashingUtils::HashString("THURSDAY"); + static const int FRIDAY_HASH = HashingUtils::HashString("FRIDAY"); + static const int SATURDAY_HASH = HashingUtils::HashString("SATURDAY"); + static const int SUNDAY_HASH = HashingUtils::HashString("SUNDAY"); + + + DayOfWeek GetDayOfWeekForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == MONDAY_HASH) + { + return DayOfWeek::MONDAY; + } + else if (hashCode == TUESDAY_HASH) + { + return DayOfWeek::TUESDAY; + } + else if (hashCode == WEDNESDAY_HASH) + { + return DayOfWeek::WEDNESDAY; + } + else if (hashCode == THURSDAY_HASH) + { + return DayOfWeek::THURSDAY; + } + else if (hashCode == FRIDAY_HASH) + { + return DayOfWeek::FRIDAY; + } + else if (hashCode == SATURDAY_HASH) + { + return DayOfWeek::SATURDAY; + } + else if (hashCode == SUNDAY_HASH) + { + return DayOfWeek::SUNDAY; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return DayOfWeek::NOT_SET; + } + + Aws::String GetNameForDayOfWeek(DayOfWeek enumValue) + { + switch(enumValue) + { + case DayOfWeek::NOT_SET: + return {}; + case DayOfWeek::MONDAY: + return "MONDAY"; + case DayOfWeek::TUESDAY: + return "TUESDAY"; + case DayOfWeek::WEDNESDAY: + return "WEDNESDAY"; + case DayOfWeek::THURSDAY: + return "THURSDAY"; + case DayOfWeek::FRIDAY: + return "FRIDAY"; + case DayOfWeek::SATURDAY: + return "SATURDAY"; + case DayOfWeek::SUNDAY: + return "SUNDAY"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace DayOfWeekMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignChannelSubtypeConfigRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignChannelSubtypeConfigRequest.cpp new file mode 100644 index 00000000000..971ca64fd60 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignChannelSubtypeConfigRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +DeleteCampaignChannelSubtypeConfigRequest::DeleteCampaignChannelSubtypeConfigRequest() : + m_idHasBeenSet(false), + m_channelSubtype(ChannelSubtype::NOT_SET), + m_channelSubtypeHasBeenSet(false) +{ +} + +Aws::String DeleteCampaignChannelSubtypeConfigRequest::SerializePayload() const +{ + return {}; +} + +void DeleteCampaignChannelSubtypeConfigRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_channelSubtypeHasBeenSet) + { + ss << ChannelSubtypeMapper::GetNameForChannelSubtype(m_channelSubtype); + uri.AddQueryStringParameter("channelSubtype", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignCommunicationLimitsRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignCommunicationLimitsRequest.cpp new file mode 100644 index 00000000000..38cb65eae48 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignCommunicationLimitsRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +DeleteCampaignCommunicationLimitsRequest::DeleteCampaignCommunicationLimitsRequest() : + m_idHasBeenSet(false), + m_config(CommunicationLimitsConfigType::NOT_SET), + m_configHasBeenSet(false) +{ +} + +Aws::String DeleteCampaignCommunicationLimitsRequest::SerializePayload() const +{ + return {}; +} + +void DeleteCampaignCommunicationLimitsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_configHasBeenSet) + { + ss << CommunicationLimitsConfigTypeMapper::GetNameForCommunicationLimitsConfigType(m_config); + uri.AddQueryStringParameter("config", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignCommunicationTimeRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignCommunicationTimeRequest.cpp new file mode 100644 index 00000000000..83bd6f393d6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignCommunicationTimeRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +DeleteCampaignCommunicationTimeRequest::DeleteCampaignCommunicationTimeRequest() : + m_idHasBeenSet(false), + m_config(CommunicationTimeConfigType::NOT_SET), + m_configHasBeenSet(false) +{ +} + +Aws::String DeleteCampaignCommunicationTimeRequest::SerializePayload() const +{ + return {}; +} + +void DeleteCampaignCommunicationTimeRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_configHasBeenSet) + { + ss << CommunicationTimeConfigTypeMapper::GetNameForCommunicationTimeConfigType(m_config); + uri.AddQueryStringParameter("config", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignRequest.cpp new file mode 100644 index 00000000000..b6cba719559 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteCampaignRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteCampaignRequest::DeleteCampaignRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String DeleteCampaignRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteConnectInstanceConfigRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteConnectInstanceConfigRequest.cpp new file mode 100644 index 00000000000..dba1e4e134c --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteConnectInstanceConfigRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +DeleteConnectInstanceConfigRequest::DeleteConnectInstanceConfigRequest() : + m_connectInstanceIdHasBeenSet(false), + m_campaignDeletionPolicy(CampaignDeletionPolicy::NOT_SET), + m_campaignDeletionPolicyHasBeenSet(false) +{ +} + +Aws::String DeleteConnectInstanceConfigRequest::SerializePayload() const +{ + return {}; +} + +void DeleteConnectInstanceConfigRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_campaignDeletionPolicyHasBeenSet) + { + ss << CampaignDeletionPolicyMapper::GetNameForCampaignDeletionPolicy(m_campaignDeletionPolicy); + uri.AddQueryStringParameter("campaignDeletionPolicy", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteConnectInstanceIntegrationRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteConnectInstanceIntegrationRequest.cpp new file mode 100644 index 00000000000..05fa81ebd9d --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteConnectInstanceIntegrationRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteConnectInstanceIntegrationRequest::DeleteConnectInstanceIntegrationRequest() : + m_connectInstanceIdHasBeenSet(false), + m_integrationIdentifierHasBeenSet(false) +{ +} + +Aws::String DeleteConnectInstanceIntegrationRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_integrationIdentifierHasBeenSet) + { + payload.WithObject("integrationIdentifier", m_integrationIdentifier.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteInstanceOnboardingJobRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteInstanceOnboardingJobRequest.cpp new file mode 100644 index 00000000000..60b74a00bea --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DeleteInstanceOnboardingJobRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteInstanceOnboardingJobRequest::DeleteInstanceOnboardingJobRequest() : + m_connectInstanceIdHasBeenSet(false) +{ +} + +Aws::String DeleteInstanceOnboardingJobRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DescribeCampaignRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DescribeCampaignRequest.cpp new file mode 100644 index 00000000000..6231892e566 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DescribeCampaignRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeCampaignRequest::DescribeCampaignRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String DescribeCampaignRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DescribeCampaignResult.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DescribeCampaignResult.cpp new file mode 100644 index 00000000000..b381be1ef5e --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/DescribeCampaignResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DescribeCampaignResult::DescribeCampaignResult() +{ +} + +DescribeCampaignResult::DescribeCampaignResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DescribeCampaignResult& DescribeCampaignResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("campaign")) + { + m_campaign = jsonValue.GetObject("campaign"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailChannelSubtypeConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailChannelSubtypeConfig.cpp new file mode 100644 index 00000000000..d073a461bab --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailChannelSubtypeConfig.cpp @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +EmailChannelSubtypeConfig::EmailChannelSubtypeConfig() : + m_capacity(0.0), + m_capacityHasBeenSet(false), + m_outboundModeHasBeenSet(false), + m_defaultOutboundConfigHasBeenSet(false) +{ +} + +EmailChannelSubtypeConfig::EmailChannelSubtypeConfig(JsonView jsonValue) + : EmailChannelSubtypeConfig() +{ + *this = jsonValue; +} + +EmailChannelSubtypeConfig& EmailChannelSubtypeConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("capacity")) + { + m_capacity = jsonValue.GetDouble("capacity"); + + m_capacityHasBeenSet = true; + } + + if(jsonValue.ValueExists("outboundMode")) + { + m_outboundMode = jsonValue.GetObject("outboundMode"); + + m_outboundModeHasBeenSet = true; + } + + if(jsonValue.ValueExists("defaultOutboundConfig")) + { + m_defaultOutboundConfig = jsonValue.GetObject("defaultOutboundConfig"); + + m_defaultOutboundConfigHasBeenSet = true; + } + + return *this; +} + +JsonValue EmailChannelSubtypeConfig::Jsonize() const +{ + JsonValue payload; + + if(m_capacityHasBeenSet) + { + payload.WithDouble("capacity", m_capacity); + + } + + if(m_outboundModeHasBeenSet) + { + payload.WithObject("outboundMode", m_outboundMode.Jsonize()); + + } + + if(m_defaultOutboundConfigHasBeenSet) + { + payload.WithObject("defaultOutboundConfig", m_defaultOutboundConfig.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailChannelSubtypeParameters.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailChannelSubtypeParameters.cpp new file mode 100644 index 00000000000..99f6cc6c232 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailChannelSubtypeParameters.cpp @@ -0,0 +1,109 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +EmailChannelSubtypeParameters::EmailChannelSubtypeParameters() : + m_destinationEmailAddressHasBeenSet(false), + m_connectSourceEmailAddressHasBeenSet(false), + m_templateArnHasBeenSet(false), + m_templateParametersHasBeenSet(false) +{ +} + +EmailChannelSubtypeParameters::EmailChannelSubtypeParameters(JsonView jsonValue) + : EmailChannelSubtypeParameters() +{ + *this = jsonValue; +} + +EmailChannelSubtypeParameters& EmailChannelSubtypeParameters::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("destinationEmailAddress")) + { + m_destinationEmailAddress = jsonValue.GetString("destinationEmailAddress"); + + m_destinationEmailAddressHasBeenSet = true; + } + + if(jsonValue.ValueExists("connectSourceEmailAddress")) + { + m_connectSourceEmailAddress = jsonValue.GetString("connectSourceEmailAddress"); + + m_connectSourceEmailAddressHasBeenSet = true; + } + + if(jsonValue.ValueExists("templateArn")) + { + m_templateArn = jsonValue.GetString("templateArn"); + + m_templateArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("templateParameters")) + { + Aws::Map templateParametersJsonMap = jsonValue.GetObject("templateParameters").GetAllObjects(); + for(auto& templateParametersItem : templateParametersJsonMap) + { + m_templateParameters[templateParametersItem.first] = templateParametersItem.second.AsString(); + } + m_templateParametersHasBeenSet = true; + } + + return *this; +} + +JsonValue EmailChannelSubtypeParameters::Jsonize() const +{ + JsonValue payload; + + if(m_destinationEmailAddressHasBeenSet) + { + payload.WithString("destinationEmailAddress", m_destinationEmailAddress); + + } + + if(m_connectSourceEmailAddressHasBeenSet) + { + payload.WithString("connectSourceEmailAddress", m_connectSourceEmailAddress); + + } + + if(m_templateArnHasBeenSet) + { + payload.WithString("templateArn", m_templateArn); + + } + + if(m_templateParametersHasBeenSet) + { + JsonValue templateParametersJsonMap; + for(auto& templateParametersItem : m_templateParameters) + { + templateParametersJsonMap.WithString(templateParametersItem.first, templateParametersItem.second); + } + payload.WithObject("templateParameters", std::move(templateParametersJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailOutboundConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailOutboundConfig.cpp new file mode 100644 index 00000000000..79169b530ec --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailOutboundConfig.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +EmailOutboundConfig::EmailOutboundConfig() : + m_connectSourceEmailAddressHasBeenSet(false), + m_sourceEmailAddressDisplayNameHasBeenSet(false), + m_wisdomTemplateArnHasBeenSet(false) +{ +} + +EmailOutboundConfig::EmailOutboundConfig(JsonView jsonValue) + : EmailOutboundConfig() +{ + *this = jsonValue; +} + +EmailOutboundConfig& EmailOutboundConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("connectSourceEmailAddress")) + { + m_connectSourceEmailAddress = jsonValue.GetString("connectSourceEmailAddress"); + + m_connectSourceEmailAddressHasBeenSet = true; + } + + if(jsonValue.ValueExists("sourceEmailAddressDisplayName")) + { + m_sourceEmailAddressDisplayName = jsonValue.GetString("sourceEmailAddressDisplayName"); + + m_sourceEmailAddressDisplayNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("wisdomTemplateArn")) + { + m_wisdomTemplateArn = jsonValue.GetString("wisdomTemplateArn"); + + m_wisdomTemplateArnHasBeenSet = true; + } + + return *this; +} + +JsonValue EmailOutboundConfig::Jsonize() const +{ + JsonValue payload; + + if(m_connectSourceEmailAddressHasBeenSet) + { + payload.WithString("connectSourceEmailAddress", m_connectSourceEmailAddress); + + } + + if(m_sourceEmailAddressDisplayNameHasBeenSet) + { + payload.WithString("sourceEmailAddressDisplayName", m_sourceEmailAddressDisplayName); + + } + + if(m_wisdomTemplateArnHasBeenSet) + { + payload.WithString("wisdomTemplateArn", m_wisdomTemplateArn); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailOutboundMode.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailOutboundMode.cpp new file mode 100644 index 00000000000..0fcae793421 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EmailOutboundMode.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +EmailOutboundMode::EmailOutboundMode() : + m_agentlessHasBeenSet(false) +{ +} + +EmailOutboundMode::EmailOutboundMode(JsonView jsonValue) + : EmailOutboundMode() +{ + *this = jsonValue; +} + +EmailOutboundMode& EmailOutboundMode::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("agentless")) + { + m_agentless = jsonValue.GetObject("agentless"); + + m_agentlessHasBeenSet = true; + } + + return *this; +} + +JsonValue EmailOutboundMode::Jsonize() const +{ + JsonValue payload; + + if(m_agentlessHasBeenSet) + { + payload.WithObject("agentless", m_agentless.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EncryptionConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EncryptionConfig.cpp new file mode 100644 index 00000000000..ea00ba9524d --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EncryptionConfig.cpp @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +EncryptionConfig::EncryptionConfig() : + m_enabled(false), + m_enabledHasBeenSet(false), + m_encryptionType(EncryptionType::NOT_SET), + m_encryptionTypeHasBeenSet(false), + m_keyArnHasBeenSet(false) +{ +} + +EncryptionConfig::EncryptionConfig(JsonView jsonValue) + : EncryptionConfig() +{ + *this = jsonValue; +} + +EncryptionConfig& EncryptionConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("enabled")) + { + m_enabled = jsonValue.GetBool("enabled"); + + m_enabledHasBeenSet = true; + } + + if(jsonValue.ValueExists("encryptionType")) + { + m_encryptionType = EncryptionTypeMapper::GetEncryptionTypeForName(jsonValue.GetString("encryptionType")); + + m_encryptionTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("keyArn")) + { + m_keyArn = jsonValue.GetString("keyArn"); + + m_keyArnHasBeenSet = true; + } + + return *this; +} + +JsonValue EncryptionConfig::Jsonize() const +{ + JsonValue payload; + + if(m_enabledHasBeenSet) + { + payload.WithBool("enabled", m_enabled); + + } + + if(m_encryptionTypeHasBeenSet) + { + payload.WithString("encryptionType", EncryptionTypeMapper::GetNameForEncryptionType(m_encryptionType)); + } + + if(m_keyArnHasBeenSet) + { + payload.WithString("keyArn", m_keyArn); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EncryptionType.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EncryptionType.cpp new file mode 100644 index 00000000000..bf45dd19f4f --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EncryptionType.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace EncryptionTypeMapper + { + + static const int KMS_HASH = HashingUtils::HashString("KMS"); + + + EncryptionType GetEncryptionTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == KMS_HASH) + { + return EncryptionType::KMS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return EncryptionType::NOT_SET; + } + + Aws::String GetNameForEncryptionType(EncryptionType enumValue) + { + switch(enumValue) + { + case EncryptionType::NOT_SET: + return {}; + case EncryptionType::KMS: + return "KMS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace EncryptionTypeMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EventType.cpp new file mode 100644 index 00000000000..2a381a29074 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/EventType.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace EventTypeMapper + { + + static const int Campaign_Email_HASH = HashingUtils::HashString("Campaign-Email"); + static const int Campaign_SMS_HASH = HashingUtils::HashString("Campaign-SMS"); + static const int Campaign_Telephony_HASH = HashingUtils::HashString("Campaign-Telephony"); + static const int Campaign_Orchestration_HASH = HashingUtils::HashString("Campaign-Orchestration"); + + + EventType GetEventTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Campaign_Email_HASH) + { + return EventType::Campaign_Email; + } + else if (hashCode == Campaign_SMS_HASH) + { + return EventType::Campaign_SMS; + } + else if (hashCode == Campaign_Telephony_HASH) + { + return EventType::Campaign_Telephony; + } + else if (hashCode == Campaign_Orchestration_HASH) + { + return EventType::Campaign_Orchestration; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return EventType::NOT_SET; + } + + Aws::String GetNameForEventType(EventType enumValue) + { + switch(enumValue) + { + case EventType::NOT_SET: + return {}; + case EventType::Campaign_Email: + return "Campaign-Email"; + case EventType::Campaign_SMS: + return "Campaign-SMS"; + case EventType::Campaign_Telephony: + return "Campaign-Telephony"; + case EventType::Campaign_Orchestration: + return "Campaign-Orchestration"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace EventTypeMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/FailedCampaignStateResponse.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/FailedCampaignStateResponse.cpp new file mode 100644 index 00000000000..1a701564da1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/FailedCampaignStateResponse.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +FailedCampaignStateResponse::FailedCampaignStateResponse() : + m_campaignIdHasBeenSet(false), + m_failureCode(GetCampaignStateBatchFailureCode::NOT_SET), + m_failureCodeHasBeenSet(false) +{ +} + +FailedCampaignStateResponse::FailedCampaignStateResponse(JsonView jsonValue) + : FailedCampaignStateResponse() +{ + *this = jsonValue; +} + +FailedCampaignStateResponse& FailedCampaignStateResponse::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("campaignId")) + { + m_campaignId = jsonValue.GetString("campaignId"); + + m_campaignIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("failureCode")) + { + m_failureCode = GetCampaignStateBatchFailureCodeMapper::GetGetCampaignStateBatchFailureCodeForName(jsonValue.GetString("failureCode")); + + m_failureCodeHasBeenSet = true; + } + + return *this; +} + +JsonValue FailedCampaignStateResponse::Jsonize() const +{ + JsonValue payload; + + if(m_campaignIdHasBeenSet) + { + payload.WithString("campaignId", m_campaignId); + + } + + if(m_failureCodeHasBeenSet) + { + payload.WithString("failureCode", GetCampaignStateBatchFailureCodeMapper::GetNameForGetCampaignStateBatchFailureCode(m_failureCode)); + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/FailedRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/FailedRequest.cpp new file mode 100644 index 00000000000..a6d4d38cd42 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/FailedRequest.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +FailedRequest::FailedRequest() : + m_clientTokenHasBeenSet(false), + m_idHasBeenSet(false), + m_failureCode(FailureCode::NOT_SET), + m_failureCodeHasBeenSet(false) +{ +} + +FailedRequest::FailedRequest(JsonView jsonValue) + : FailedRequest() +{ + *this = jsonValue; +} + +FailedRequest& FailedRequest::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("clientToken")) + { + m_clientToken = jsonValue.GetString("clientToken"); + + m_clientTokenHasBeenSet = true; + } + + if(jsonValue.ValueExists("id")) + { + m_id = jsonValue.GetString("id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("failureCode")) + { + m_failureCode = FailureCodeMapper::GetFailureCodeForName(jsonValue.GetString("failureCode")); + + m_failureCodeHasBeenSet = true; + } + + return *this; +} + +JsonValue FailedRequest::Jsonize() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + if(m_idHasBeenSet) + { + payload.WithString("id", m_id); + + } + + if(m_failureCodeHasBeenSet) + { + payload.WithString("failureCode", FailureCodeMapper::GetNameForFailureCode(m_failureCode)); + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/FailureCode.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/FailureCode.cpp new file mode 100644 index 00000000000..d3fc44e11e6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/FailureCode.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace FailureCodeMapper + { + + static const int InvalidInput_HASH = HashingUtils::HashString("InvalidInput"); + static const int RequestThrottled_HASH = HashingUtils::HashString("RequestThrottled"); + static const int UnknownError_HASH = HashingUtils::HashString("UnknownError"); + static const int BufferLimitExceeded_HASH = HashingUtils::HashString("BufferLimitExceeded"); + + + FailureCode GetFailureCodeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == InvalidInput_HASH) + { + return FailureCode::InvalidInput; + } + else if (hashCode == RequestThrottled_HASH) + { + return FailureCode::RequestThrottled; + } + else if (hashCode == UnknownError_HASH) + { + return FailureCode::UnknownError; + } + else if (hashCode == BufferLimitExceeded_HASH) + { + return FailureCode::BufferLimitExceeded; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return FailureCode::NOT_SET; + } + + Aws::String GetNameForFailureCode(FailureCode enumValue) + { + switch(enumValue) + { + case FailureCode::NOT_SET: + return {}; + case FailureCode::InvalidInput: + return "InvalidInput"; + case FailureCode::RequestThrottled: + return "RequestThrottled"; + case FailureCode::UnknownError: + return "UnknownError"; + case FailureCode::BufferLimitExceeded: + return "BufferLimitExceeded"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace FailureCodeMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateBatchFailureCode.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateBatchFailureCode.cpp new file mode 100644 index 00000000000..862d451f9a3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateBatchFailureCode.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace GetCampaignStateBatchFailureCodeMapper + { + + static const int ResourceNotFound_HASH = HashingUtils::HashString("ResourceNotFound"); + static const int UnknownError_HASH = HashingUtils::HashString("UnknownError"); + + + GetCampaignStateBatchFailureCode GetGetCampaignStateBatchFailureCodeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ResourceNotFound_HASH) + { + return GetCampaignStateBatchFailureCode::ResourceNotFound; + } + else if (hashCode == UnknownError_HASH) + { + return GetCampaignStateBatchFailureCode::UnknownError; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GetCampaignStateBatchFailureCode::NOT_SET; + } + + Aws::String GetNameForGetCampaignStateBatchFailureCode(GetCampaignStateBatchFailureCode enumValue) + { + switch(enumValue) + { + case GetCampaignStateBatchFailureCode::NOT_SET: + return {}; + case GetCampaignStateBatchFailureCode::ResourceNotFound: + return "ResourceNotFound"; + case GetCampaignStateBatchFailureCode::UnknownError: + return "UnknownError"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GetCampaignStateBatchFailureCodeMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateBatchRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateBatchRequest.cpp new file mode 100644 index 00000000000..48491921731 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateBatchRequest.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetCampaignStateBatchRequest::GetCampaignStateBatchRequest() : + m_campaignIdsHasBeenSet(false) +{ +} + +Aws::String GetCampaignStateBatchRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_campaignIdsHasBeenSet) + { + Aws::Utils::Array campaignIdsJsonList(m_campaignIds.size()); + for(unsigned campaignIdsIndex = 0; campaignIdsIndex < campaignIdsJsonList.GetLength(); ++campaignIdsIndex) + { + campaignIdsJsonList[campaignIdsIndex].AsString(m_campaignIds[campaignIdsIndex]); + } + payload.WithArray("campaignIds", std::move(campaignIdsJsonList)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateBatchResult.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateBatchResult.cpp new file mode 100644 index 00000000000..d279a6fd922 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateBatchResult.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetCampaignStateBatchResult::GetCampaignStateBatchResult() +{ +} + +GetCampaignStateBatchResult::GetCampaignStateBatchResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetCampaignStateBatchResult& GetCampaignStateBatchResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("successfulRequests")) + { + Aws::Utils::Array successfulRequestsJsonList = jsonValue.GetArray("successfulRequests"); + for(unsigned successfulRequestsIndex = 0; successfulRequestsIndex < successfulRequestsJsonList.GetLength(); ++successfulRequestsIndex) + { + m_successfulRequests.push_back(successfulRequestsJsonList[successfulRequestsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("failedRequests")) + { + Aws::Utils::Array failedRequestsJsonList = jsonValue.GetArray("failedRequests"); + for(unsigned failedRequestsIndex = 0; failedRequestsIndex < failedRequestsJsonList.GetLength(); ++failedRequestsIndex) + { + m_failedRequests.push_back(failedRequestsJsonList[failedRequestsIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateRequest.cpp new file mode 100644 index 00000000000..7d889143596 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetCampaignStateRequest::GetCampaignStateRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String GetCampaignStateRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateResult.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateResult.cpp new file mode 100644 index 00000000000..00af0147881 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetCampaignStateResult.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetCampaignStateResult::GetCampaignStateResult() : + m_state(CampaignState::NOT_SET) +{ +} + +GetCampaignStateResult::GetCampaignStateResult(const Aws::AmazonWebServiceResult& result) + : GetCampaignStateResult() +{ + *this = result; +} + +GetCampaignStateResult& GetCampaignStateResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("state")) + { + m_state = CampaignStateMapper::GetCampaignStateForName(jsonValue.GetString("state")); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetConnectInstanceConfigRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetConnectInstanceConfigRequest.cpp new file mode 100644 index 00000000000..466f44fa0dc --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetConnectInstanceConfigRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetConnectInstanceConfigRequest::GetConnectInstanceConfigRequest() : + m_connectInstanceIdHasBeenSet(false) +{ +} + +Aws::String GetConnectInstanceConfigRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetConnectInstanceConfigResult.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetConnectInstanceConfigResult.cpp new file mode 100644 index 00000000000..bf499b5ec78 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetConnectInstanceConfigResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetConnectInstanceConfigResult::GetConnectInstanceConfigResult() +{ +} + +GetConnectInstanceConfigResult::GetConnectInstanceConfigResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetConnectInstanceConfigResult& GetConnectInstanceConfigResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("connectInstanceConfig")) + { + m_connectInstanceConfig = jsonValue.GetObject("connectInstanceConfig"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetInstanceOnboardingJobStatusRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetInstanceOnboardingJobStatusRequest.cpp new file mode 100644 index 00000000000..8fc397aa3c1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetInstanceOnboardingJobStatusRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetInstanceOnboardingJobStatusRequest::GetInstanceOnboardingJobStatusRequest() : + m_connectInstanceIdHasBeenSet(false) +{ +} + +Aws::String GetInstanceOnboardingJobStatusRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetInstanceOnboardingJobStatusResult.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetInstanceOnboardingJobStatusResult.cpp new file mode 100644 index 00000000000..e26cecbe78f --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/GetInstanceOnboardingJobStatusResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetInstanceOnboardingJobStatusResult::GetInstanceOnboardingJobStatusResult() +{ +} + +GetInstanceOnboardingJobStatusResult::GetInstanceOnboardingJobStatusResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetInstanceOnboardingJobStatusResult& GetInstanceOnboardingJobStatusResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("connectInstanceOnboardingJobStatus")) + { + m_connectInstanceOnboardingJobStatus = jsonValue.GetObject("connectInstanceOnboardingJobStatus"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceConfig.cpp new file mode 100644 index 00000000000..e8a98691be9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceConfig.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +InstanceConfig::InstanceConfig() : + m_connectInstanceIdHasBeenSet(false), + m_serviceLinkedRoleArnHasBeenSet(false), + m_encryptionConfigHasBeenSet(false) +{ +} + +InstanceConfig::InstanceConfig(JsonView jsonValue) + : InstanceConfig() +{ + *this = jsonValue; +} + +InstanceConfig& InstanceConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("connectInstanceId")) + { + m_connectInstanceId = jsonValue.GetString("connectInstanceId"); + + m_connectInstanceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("serviceLinkedRoleArn")) + { + m_serviceLinkedRoleArn = jsonValue.GetString("serviceLinkedRoleArn"); + + m_serviceLinkedRoleArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("encryptionConfig")) + { + m_encryptionConfig = jsonValue.GetObject("encryptionConfig"); + + m_encryptionConfigHasBeenSet = true; + } + + return *this; +} + +JsonValue InstanceConfig::Jsonize() const +{ + JsonValue payload; + + if(m_connectInstanceIdHasBeenSet) + { + payload.WithString("connectInstanceId", m_connectInstanceId); + + } + + if(m_serviceLinkedRoleArnHasBeenSet) + { + payload.WithString("serviceLinkedRoleArn", m_serviceLinkedRoleArn); + + } + + if(m_encryptionConfigHasBeenSet) + { + payload.WithObject("encryptionConfig", m_encryptionConfig.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceIdFilter.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceIdFilter.cpp new file mode 100644 index 00000000000..6604e35d637 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceIdFilter.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +InstanceIdFilter::InstanceIdFilter() : + m_valueHasBeenSet(false), + m_operator(InstanceIdFilterOperator::NOT_SET), + m_operatorHasBeenSet(false) +{ +} + +InstanceIdFilter::InstanceIdFilter(JsonView jsonValue) + : InstanceIdFilter() +{ + *this = jsonValue; +} + +InstanceIdFilter& InstanceIdFilter::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("value")) + { + m_value = jsonValue.GetString("value"); + + m_valueHasBeenSet = true; + } + + if(jsonValue.ValueExists("operator")) + { + m_operator = InstanceIdFilterOperatorMapper::GetInstanceIdFilterOperatorForName(jsonValue.GetString("operator")); + + m_operatorHasBeenSet = true; + } + + return *this; +} + +JsonValue InstanceIdFilter::Jsonize() const +{ + JsonValue payload; + + if(m_valueHasBeenSet) + { + payload.WithString("value", m_value); + + } + + if(m_operatorHasBeenSet) + { + payload.WithString("operator", InstanceIdFilterOperatorMapper::GetNameForInstanceIdFilterOperator(m_operator)); + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceIdFilterOperator.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceIdFilterOperator.cpp new file mode 100644 index 00000000000..ba3fcb96a30 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceIdFilterOperator.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace InstanceIdFilterOperatorMapper + { + + static const int Eq_HASH = HashingUtils::HashString("Eq"); + + + InstanceIdFilterOperator GetInstanceIdFilterOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Eq_HASH) + { + return InstanceIdFilterOperator::Eq; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return InstanceIdFilterOperator::NOT_SET; + } + + Aws::String GetNameForInstanceIdFilterOperator(InstanceIdFilterOperator enumValue) + { + switch(enumValue) + { + case InstanceIdFilterOperator::NOT_SET: + return {}; + case InstanceIdFilterOperator::Eq: + return "Eq"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace InstanceIdFilterOperatorMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceOnboardingJobFailureCode.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceOnboardingJobFailureCode.cpp new file mode 100644 index 00000000000..ae3b7b63c58 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceOnboardingJobFailureCode.cpp @@ -0,0 +1,100 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace InstanceOnboardingJobFailureCodeMapper + { + + static const int EVENT_BRIDGE_ACCESS_DENIED_HASH = HashingUtils::HashString("EVENT_BRIDGE_ACCESS_DENIED"); + static const int EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED"); + static const int IAM_ACCESS_DENIED_HASH = HashingUtils::HashString("IAM_ACCESS_DENIED"); + static const int KMS_ACCESS_DENIED_HASH = HashingUtils::HashString("KMS_ACCESS_DENIED"); + static const int KMS_KEY_NOT_FOUND_HASH = HashingUtils::HashString("KMS_KEY_NOT_FOUND"); + static const int INTERNAL_FAILURE_HASH = HashingUtils::HashString("INTERNAL_FAILURE"); + + + InstanceOnboardingJobFailureCode GetInstanceOnboardingJobFailureCodeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == EVENT_BRIDGE_ACCESS_DENIED_HASH) + { + return InstanceOnboardingJobFailureCode::EVENT_BRIDGE_ACCESS_DENIED; + } + else if (hashCode == EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED_HASH) + { + return InstanceOnboardingJobFailureCode::EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED; + } + else if (hashCode == IAM_ACCESS_DENIED_HASH) + { + return InstanceOnboardingJobFailureCode::IAM_ACCESS_DENIED; + } + else if (hashCode == KMS_ACCESS_DENIED_HASH) + { + return InstanceOnboardingJobFailureCode::KMS_ACCESS_DENIED; + } + else if (hashCode == KMS_KEY_NOT_FOUND_HASH) + { + return InstanceOnboardingJobFailureCode::KMS_KEY_NOT_FOUND; + } + else if (hashCode == INTERNAL_FAILURE_HASH) + { + return InstanceOnboardingJobFailureCode::INTERNAL_FAILURE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return InstanceOnboardingJobFailureCode::NOT_SET; + } + + Aws::String GetNameForInstanceOnboardingJobFailureCode(InstanceOnboardingJobFailureCode enumValue) + { + switch(enumValue) + { + case InstanceOnboardingJobFailureCode::NOT_SET: + return {}; + case InstanceOnboardingJobFailureCode::EVENT_BRIDGE_ACCESS_DENIED: + return "EVENT_BRIDGE_ACCESS_DENIED"; + case InstanceOnboardingJobFailureCode::EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED: + return "EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED"; + case InstanceOnboardingJobFailureCode::IAM_ACCESS_DENIED: + return "IAM_ACCESS_DENIED"; + case InstanceOnboardingJobFailureCode::KMS_ACCESS_DENIED: + return "KMS_ACCESS_DENIED"; + case InstanceOnboardingJobFailureCode::KMS_KEY_NOT_FOUND: + return "KMS_KEY_NOT_FOUND"; + case InstanceOnboardingJobFailureCode::INTERNAL_FAILURE: + return "INTERNAL_FAILURE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace InstanceOnboardingJobFailureCodeMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceOnboardingJobStatus.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceOnboardingJobStatus.cpp new file mode 100644 index 00000000000..b61885117e5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceOnboardingJobStatus.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +InstanceOnboardingJobStatus::InstanceOnboardingJobStatus() : + m_connectInstanceIdHasBeenSet(false), + m_status(InstanceOnboardingJobStatusCode::NOT_SET), + m_statusHasBeenSet(false), + m_failureCode(InstanceOnboardingJobFailureCode::NOT_SET), + m_failureCodeHasBeenSet(false) +{ +} + +InstanceOnboardingJobStatus::InstanceOnboardingJobStatus(JsonView jsonValue) + : InstanceOnboardingJobStatus() +{ + *this = jsonValue; +} + +InstanceOnboardingJobStatus& InstanceOnboardingJobStatus::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("connectInstanceId")) + { + m_connectInstanceId = jsonValue.GetString("connectInstanceId"); + + m_connectInstanceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = InstanceOnboardingJobStatusCodeMapper::GetInstanceOnboardingJobStatusCodeForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("failureCode")) + { + m_failureCode = InstanceOnboardingJobFailureCodeMapper::GetInstanceOnboardingJobFailureCodeForName(jsonValue.GetString("failureCode")); + + m_failureCodeHasBeenSet = true; + } + + return *this; +} + +JsonValue InstanceOnboardingJobStatus::Jsonize() const +{ + JsonValue payload; + + if(m_connectInstanceIdHasBeenSet) + { + payload.WithString("connectInstanceId", m_connectInstanceId); + + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", InstanceOnboardingJobStatusCodeMapper::GetNameForInstanceOnboardingJobStatusCode(m_status)); + } + + if(m_failureCodeHasBeenSet) + { + payload.WithString("failureCode", InstanceOnboardingJobFailureCodeMapper::GetNameForInstanceOnboardingJobFailureCode(m_failureCode)); + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceOnboardingJobStatusCode.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceOnboardingJobStatusCode.cpp new file mode 100644 index 00000000000..d93b4fc3c20 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InstanceOnboardingJobStatusCode.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace InstanceOnboardingJobStatusCodeMapper + { + + static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + + + InstanceOnboardingJobStatusCode GetInstanceOnboardingJobStatusCodeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == IN_PROGRESS_HASH) + { + return InstanceOnboardingJobStatusCode::IN_PROGRESS; + } + else if (hashCode == SUCCEEDED_HASH) + { + return InstanceOnboardingJobStatusCode::SUCCEEDED; + } + else if (hashCode == FAILED_HASH) + { + return InstanceOnboardingJobStatusCode::FAILED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return InstanceOnboardingJobStatusCode::NOT_SET; + } + + Aws::String GetNameForInstanceOnboardingJobStatusCode(InstanceOnboardingJobStatusCode enumValue) + { + switch(enumValue) + { + case InstanceOnboardingJobStatusCode::NOT_SET: + return {}; + case InstanceOnboardingJobStatusCode::IN_PROGRESS: + return "IN_PROGRESS"; + case InstanceOnboardingJobStatusCode::SUCCEEDED: + return "SUCCEEDED"; + case InstanceOnboardingJobStatusCode::FAILED: + return "FAILED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace InstanceOnboardingJobStatusCodeMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/IntegrationConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/IntegrationConfig.cpp new file mode 100644 index 00000000000..423b5cedf45 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/IntegrationConfig.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +IntegrationConfig::IntegrationConfig() : + m_customerProfilesHasBeenSet(false), + m_qConnectHasBeenSet(false) +{ +} + +IntegrationConfig::IntegrationConfig(JsonView jsonValue) + : IntegrationConfig() +{ + *this = jsonValue; +} + +IntegrationConfig& IntegrationConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("customerProfiles")) + { + m_customerProfiles = jsonValue.GetObject("customerProfiles"); + + m_customerProfilesHasBeenSet = true; + } + + if(jsonValue.ValueExists("qConnect")) + { + m_qConnect = jsonValue.GetObject("qConnect"); + + m_qConnectHasBeenSet = true; + } + + return *this; +} + +JsonValue IntegrationConfig::Jsonize() const +{ + JsonValue payload; + + if(m_customerProfilesHasBeenSet) + { + payload.WithObject("customerProfiles", m_customerProfiles.Jsonize()); + + } + + if(m_qConnectHasBeenSet) + { + payload.WithObject("qConnect", m_qConnect.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/IntegrationIdentifier.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/IntegrationIdentifier.cpp new file mode 100644 index 00000000000..efdc4f52f3d --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/IntegrationIdentifier.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +IntegrationIdentifier::IntegrationIdentifier() : + m_customerProfilesHasBeenSet(false), + m_qConnectHasBeenSet(false) +{ +} + +IntegrationIdentifier::IntegrationIdentifier(JsonView jsonValue) + : IntegrationIdentifier() +{ + *this = jsonValue; +} + +IntegrationIdentifier& IntegrationIdentifier::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("customerProfiles")) + { + m_customerProfiles = jsonValue.GetObject("customerProfiles"); + + m_customerProfilesHasBeenSet = true; + } + + if(jsonValue.ValueExists("qConnect")) + { + m_qConnect = jsonValue.GetObject("qConnect"); + + m_qConnectHasBeenSet = true; + } + + return *this; +} + +JsonValue IntegrationIdentifier::Jsonize() const +{ + JsonValue payload; + + if(m_customerProfilesHasBeenSet) + { + payload.WithObject("customerProfiles", m_customerProfiles.Jsonize()); + + } + + if(m_qConnectHasBeenSet) + { + payload.WithObject("qConnect", m_qConnect.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/IntegrationSummary.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/IntegrationSummary.cpp new file mode 100644 index 00000000000..463b6ef5e71 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/IntegrationSummary.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +IntegrationSummary::IntegrationSummary() : + m_customerProfilesHasBeenSet(false), + m_qConnectHasBeenSet(false) +{ +} + +IntegrationSummary::IntegrationSummary(JsonView jsonValue) + : IntegrationSummary() +{ + *this = jsonValue; +} + +IntegrationSummary& IntegrationSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("customerProfiles")) + { + m_customerProfiles = jsonValue.GetObject("customerProfiles"); + + m_customerProfilesHasBeenSet = true; + } + + if(jsonValue.ValueExists("qConnect")) + { + m_qConnect = jsonValue.GetObject("qConnect"); + + m_qConnectHasBeenSet = true; + } + + return *this; +} + +JsonValue IntegrationSummary::Jsonize() const +{ + JsonValue payload; + + if(m_customerProfilesHasBeenSet) + { + payload.WithObject("customerProfiles", m_customerProfiles.Jsonize()); + + } + + if(m_qConnectHasBeenSet) + { + payload.WithObject("qConnect", m_qConnect.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InternalServerException.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InternalServerException.cpp new file mode 100644 index 00000000000..d880c0bfbc3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InternalServerException.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +InternalServerException::InternalServerException() : + m_messageHasBeenSet(false), + m_xAmzErrorTypeHasBeenSet(false) +{ +} + +InternalServerException::InternalServerException(JsonView jsonValue) + : InternalServerException() +{ + *this = jsonValue; +} + +InternalServerException& InternalServerException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue InternalServerException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InvalidCampaignStateException.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InvalidCampaignStateException.cpp new file mode 100644 index 00000000000..9686e77cf67 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InvalidCampaignStateException.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +InvalidCampaignStateException::InvalidCampaignStateException() : + m_state(CampaignState::NOT_SET), + m_stateHasBeenSet(false), + m_messageHasBeenSet(false), + m_xAmzErrorTypeHasBeenSet(false) +{ +} + +InvalidCampaignStateException::InvalidCampaignStateException(JsonView jsonValue) + : InvalidCampaignStateException() +{ + *this = jsonValue; +} + +InvalidCampaignStateException& InvalidCampaignStateException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("state")) + { + m_state = CampaignStateMapper::GetCampaignStateForName(jsonValue.GetString("state")); + + m_stateHasBeenSet = true; + } + + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue InvalidCampaignStateException::Jsonize() const +{ + JsonValue payload; + + if(m_stateHasBeenSet) + { + payload.WithString("state", CampaignStateMapper::GetNameForCampaignState(m_state)); + } + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InvalidStateException.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InvalidStateException.cpp new file mode 100644 index 00000000000..b95fbe953d6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/InvalidStateException.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +InvalidStateException::InvalidStateException() : + m_messageHasBeenSet(false), + m_xAmzErrorTypeHasBeenSet(false) +{ +} + +InvalidStateException::InvalidStateException(JsonView jsonValue) + : InvalidStateException() +{ + *this = jsonValue; +} + +InvalidStateException& InvalidStateException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue InvalidStateException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListCampaignsRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListCampaignsRequest.cpp new file mode 100644 index 00000000000..771eaafbe55 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListCampaignsRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListCampaignsRequest::ListCampaignsRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_filtersHasBeenSet(false) +{ +} + +Aws::String ListCampaignsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("maxResults", m_maxResults); + + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("nextToken", m_nextToken); + + } + + if(m_filtersHasBeenSet) + { + payload.WithObject("filters", m_filters.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListCampaignsResult.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListCampaignsResult.cpp new file mode 100644 index 00000000000..f1162a024cc --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListCampaignsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListCampaignsResult::ListCampaignsResult() +{ +} + +ListCampaignsResult::ListCampaignsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListCampaignsResult& ListCampaignsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + if(jsonValue.ValueExists("campaignSummaryList")) + { + Aws::Utils::Array campaignSummaryListJsonList = jsonValue.GetArray("campaignSummaryList"); + for(unsigned campaignSummaryListIndex = 0; campaignSummaryListIndex < campaignSummaryListJsonList.GetLength(); ++campaignSummaryListIndex) + { + m_campaignSummaryList.push_back(campaignSummaryListJsonList[campaignSummaryListIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListConnectInstanceIntegrationsRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListConnectInstanceIntegrationsRequest.cpp new file mode 100644 index 00000000000..574d78eeb84 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListConnectInstanceIntegrationsRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListConnectInstanceIntegrationsRequest::ListConnectInstanceIntegrationsRequest() : + m_connectInstanceIdHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListConnectInstanceIntegrationsRequest::SerializePayload() const +{ + return {}; +} + +void ListConnectInstanceIntegrationsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListConnectInstanceIntegrationsResult.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListConnectInstanceIntegrationsResult.cpp new file mode 100644 index 00000000000..966b809a5c9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListConnectInstanceIntegrationsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListConnectInstanceIntegrationsResult::ListConnectInstanceIntegrationsResult() +{ +} + +ListConnectInstanceIntegrationsResult::ListConnectInstanceIntegrationsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListConnectInstanceIntegrationsResult& ListConnectInstanceIntegrationsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + if(jsonValue.ValueExists("integrationSummaryList")) + { + Aws::Utils::Array integrationSummaryListJsonList = jsonValue.GetArray("integrationSummaryList"); + for(unsigned integrationSummaryListIndex = 0; integrationSummaryListIndex < integrationSummaryListJsonList.GetLength(); ++integrationSummaryListIndex) + { + m_integrationSummaryList.push_back(integrationSummaryListJsonList[integrationSummaryListIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListTagsForResourceRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListTagsForResourceRequest.cpp new file mode 100644 index 00000000000..ba532741b34 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListTagsForResourceRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListTagsForResourceRequest::ListTagsForResourceRequest() : + m_arnHasBeenSet(false) +{ +} + +Aws::String ListTagsForResourceRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListTagsForResourceResult.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListTagsForResourceResult.cpp new file mode 100644 index 00000000000..b298c4873b1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ListTagsForResourceResult.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListTagsForResourceResult::ListTagsForResourceResult() +{ +} + +ListTagsForResourceResult::ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListTagsForResourceResult& ListTagsForResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/LocalTimeZoneConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/LocalTimeZoneConfig.cpp new file mode 100644 index 00000000000..6def30cc1aa --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/LocalTimeZoneConfig.cpp @@ -0,0 +1,81 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +LocalTimeZoneConfig::LocalTimeZoneConfig() : + m_defaultTimeZoneHasBeenSet(false), + m_localTimeZoneDetectionHasBeenSet(false) +{ +} + +LocalTimeZoneConfig::LocalTimeZoneConfig(JsonView jsonValue) + : LocalTimeZoneConfig() +{ + *this = jsonValue; +} + +LocalTimeZoneConfig& LocalTimeZoneConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("defaultTimeZone")) + { + m_defaultTimeZone = jsonValue.GetString("defaultTimeZone"); + + m_defaultTimeZoneHasBeenSet = true; + } + + if(jsonValue.ValueExists("localTimeZoneDetection")) + { + Aws::Utils::Array localTimeZoneDetectionJsonList = jsonValue.GetArray("localTimeZoneDetection"); + for(unsigned localTimeZoneDetectionIndex = 0; localTimeZoneDetectionIndex < localTimeZoneDetectionJsonList.GetLength(); ++localTimeZoneDetectionIndex) + { + m_localTimeZoneDetection.push_back(LocalTimeZoneDetectionTypeMapper::GetLocalTimeZoneDetectionTypeForName(localTimeZoneDetectionJsonList[localTimeZoneDetectionIndex].AsString())); + } + m_localTimeZoneDetectionHasBeenSet = true; + } + + return *this; +} + +JsonValue LocalTimeZoneConfig::Jsonize() const +{ + JsonValue payload; + + if(m_defaultTimeZoneHasBeenSet) + { + payload.WithString("defaultTimeZone", m_defaultTimeZone); + + } + + if(m_localTimeZoneDetectionHasBeenSet) + { + Aws::Utils::Array localTimeZoneDetectionJsonList(m_localTimeZoneDetection.size()); + for(unsigned localTimeZoneDetectionIndex = 0; localTimeZoneDetectionIndex < localTimeZoneDetectionJsonList.GetLength(); ++localTimeZoneDetectionIndex) + { + localTimeZoneDetectionJsonList[localTimeZoneDetectionIndex].AsString(LocalTimeZoneDetectionTypeMapper::GetNameForLocalTimeZoneDetectionType(m_localTimeZoneDetection[localTimeZoneDetectionIndex])); + } + payload.WithArray("localTimeZoneDetection", std::move(localTimeZoneDetectionJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/LocalTimeZoneDetectionType.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/LocalTimeZoneDetectionType.cpp new file mode 100644 index 00000000000..88884533150 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/LocalTimeZoneDetectionType.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace ConnectCampaignsV2 + { + namespace Model + { + namespace LocalTimeZoneDetectionTypeMapper + { + + static const int ZIP_CODE_HASH = HashingUtils::HashString("ZIP_CODE"); + static const int AREA_CODE_HASH = HashingUtils::HashString("AREA_CODE"); + + + LocalTimeZoneDetectionType GetLocalTimeZoneDetectionTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ZIP_CODE_HASH) + { + return LocalTimeZoneDetectionType::ZIP_CODE; + } + else if (hashCode == AREA_CODE_HASH) + { + return LocalTimeZoneDetectionType::AREA_CODE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return LocalTimeZoneDetectionType::NOT_SET; + } + + Aws::String GetNameForLocalTimeZoneDetectionType(LocalTimeZoneDetectionType enumValue) + { + switch(enumValue) + { + case LocalTimeZoneDetectionType::NOT_SET: + return {}; + case LocalTimeZoneDetectionType::ZIP_CODE: + return "ZIP_CODE"; + case LocalTimeZoneDetectionType::AREA_CODE: + return "AREA_CODE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace LocalTimeZoneDetectionTypeMapper + } // namespace Model + } // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/OpenHours.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/OpenHours.cpp new file mode 100644 index 00000000000..2192e609da4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/OpenHours.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +OpenHours::OpenHours() : + m_dailyHoursHasBeenSet(false) +{ +} + +OpenHours::OpenHours(JsonView jsonValue) + : OpenHours() +{ + *this = jsonValue; +} + +OpenHours& OpenHours::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("dailyHours")) + { + Aws::Map dailyHoursJsonMap = jsonValue.GetObject("dailyHours").GetAllObjects(); + for(auto& dailyHoursItem : dailyHoursJsonMap) + { + Aws::Utils::Array timeRangeListJsonList = dailyHoursItem.second.AsArray(); + Aws::Vector timeRangeListList; + timeRangeListList.reserve((size_t)timeRangeListJsonList.GetLength()); + for(unsigned timeRangeListIndex = 0; timeRangeListIndex < timeRangeListJsonList.GetLength(); ++timeRangeListIndex) + { + timeRangeListList.push_back(timeRangeListJsonList[timeRangeListIndex].AsObject()); + } + m_dailyHours[DayOfWeekMapper::GetDayOfWeekForName(dailyHoursItem.first)] = std::move(timeRangeListList); + } + m_dailyHoursHasBeenSet = true; + } + + return *this; +} + +JsonValue OpenHours::Jsonize() const +{ + JsonValue payload; + + if(m_dailyHoursHasBeenSet) + { + JsonValue dailyHoursJsonMap; + for(auto& dailyHoursItem : m_dailyHours) + { + Aws::Utils::Array timeRangeListJsonList(dailyHoursItem.second.size()); + for(unsigned timeRangeListIndex = 0; timeRangeListIndex < timeRangeListJsonList.GetLength(); ++timeRangeListIndex) + { + timeRangeListJsonList[timeRangeListIndex].AsObject(dailyHoursItem.second[timeRangeListIndex].Jsonize()); + } + dailyHoursJsonMap.WithArray(DayOfWeekMapper::GetNameForDayOfWeek(dailyHoursItem.first), std::move(timeRangeListJsonList)); + } + payload.WithObject("dailyHours", std::move(dailyHoursJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/OutboundRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/OutboundRequest.cpp new file mode 100644 index 00000000000..f4de88bffab --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/OutboundRequest.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +OutboundRequest::OutboundRequest() : + m_clientTokenHasBeenSet(false), + m_expirationTimeHasBeenSet(false), + m_channelSubtypeParametersHasBeenSet(false) +{ +} + +OutboundRequest::OutboundRequest(JsonView jsonValue) + : OutboundRequest() +{ + *this = jsonValue; +} + +OutboundRequest& OutboundRequest::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("clientToken")) + { + m_clientToken = jsonValue.GetString("clientToken"); + + m_clientTokenHasBeenSet = true; + } + + if(jsonValue.ValueExists("expirationTime")) + { + m_expirationTime = jsonValue.GetString("expirationTime"); + + m_expirationTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("channelSubtypeParameters")) + { + m_channelSubtypeParameters = jsonValue.GetObject("channelSubtypeParameters"); + + m_channelSubtypeParametersHasBeenSet = true; + } + + return *this; +} + +JsonValue OutboundRequest::Jsonize() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + if(m_expirationTimeHasBeenSet) + { + payload.WithString("expirationTime", m_expirationTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_channelSubtypeParametersHasBeenSet) + { + payload.WithObject("channelSubtypeParameters", m_channelSubtypeParameters.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PauseCampaignRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PauseCampaignRequest.cpp new file mode 100644 index 00000000000..6896e168328 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PauseCampaignRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +PauseCampaignRequest::PauseCampaignRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String PauseCampaignRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PredictiveConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PredictiveConfig.cpp new file mode 100644 index 00000000000..cd36177757e --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PredictiveConfig.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +PredictiveConfig::PredictiveConfig() : + m_bandwidthAllocation(0.0), + m_bandwidthAllocationHasBeenSet(false) +{ +} + +PredictiveConfig::PredictiveConfig(JsonView jsonValue) + : PredictiveConfig() +{ + *this = jsonValue; +} + +PredictiveConfig& PredictiveConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("bandwidthAllocation")) + { + m_bandwidthAllocation = jsonValue.GetDouble("bandwidthAllocation"); + + m_bandwidthAllocationHasBeenSet = true; + } + + return *this; +} + +JsonValue PredictiveConfig::Jsonize() const +{ + JsonValue payload; + + if(m_bandwidthAllocationHasBeenSet) + { + payload.WithDouble("bandwidthAllocation", m_bandwidthAllocation); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ProgressiveConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ProgressiveConfig.cpp new file mode 100644 index 00000000000..c476cd42e01 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ProgressiveConfig.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +ProgressiveConfig::ProgressiveConfig() : + m_bandwidthAllocation(0.0), + m_bandwidthAllocationHasBeenSet(false) +{ +} + +ProgressiveConfig::ProgressiveConfig(JsonView jsonValue) + : ProgressiveConfig() +{ + *this = jsonValue; +} + +ProgressiveConfig& ProgressiveConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("bandwidthAllocation")) + { + m_bandwidthAllocation = jsonValue.GetDouble("bandwidthAllocation"); + + m_bandwidthAllocationHasBeenSet = true; + } + + return *this; +} + +JsonValue ProgressiveConfig::Jsonize() const +{ + JsonValue payload; + + if(m_bandwidthAllocationHasBeenSet) + { + payload.WithDouble("bandwidthAllocation", m_bandwidthAllocation); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PutConnectInstanceIntegrationRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PutConnectInstanceIntegrationRequest.cpp new file mode 100644 index 00000000000..5e0c8a68434 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PutConnectInstanceIntegrationRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +PutConnectInstanceIntegrationRequest::PutConnectInstanceIntegrationRequest() : + m_connectInstanceIdHasBeenSet(false), + m_integrationConfigHasBeenSet(false) +{ +} + +Aws::String PutConnectInstanceIntegrationRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_integrationConfigHasBeenSet) + { + payload.WithObject("integrationConfig", m_integrationConfig.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PutOutboundRequestBatchRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PutOutboundRequestBatchRequest.cpp new file mode 100644 index 00000000000..01d43524786 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PutOutboundRequestBatchRequest.cpp @@ -0,0 +1,41 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +PutOutboundRequestBatchRequest::PutOutboundRequestBatchRequest() : + m_idHasBeenSet(false), + m_outboundRequestsHasBeenSet(false) +{ +} + +Aws::String PutOutboundRequestBatchRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_outboundRequestsHasBeenSet) + { + Aws::Utils::Array outboundRequestsJsonList(m_outboundRequests.size()); + for(unsigned outboundRequestsIndex = 0; outboundRequestsIndex < outboundRequestsJsonList.GetLength(); ++outboundRequestsIndex) + { + outboundRequestsJsonList[outboundRequestsIndex].AsObject(m_outboundRequests[outboundRequestsIndex].Jsonize()); + } + payload.WithArray("outboundRequests", std::move(outboundRequestsJsonList)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PutOutboundRequestBatchResult.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PutOutboundRequestBatchResult.cpp new file mode 100644 index 00000000000..eac9dbb078d --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/PutOutboundRequestBatchResult.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +PutOutboundRequestBatchResult::PutOutboundRequestBatchResult() +{ +} + +PutOutboundRequestBatchResult::PutOutboundRequestBatchResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +PutOutboundRequestBatchResult& PutOutboundRequestBatchResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("successfulRequests")) + { + Aws::Utils::Array successfulRequestsJsonList = jsonValue.GetArray("successfulRequests"); + for(unsigned successfulRequestsIndex = 0; successfulRequestsIndex < successfulRequestsJsonList.GetLength(); ++successfulRequestsIndex) + { + m_successfulRequests.push_back(successfulRequestsJsonList[successfulRequestsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("failedRequests")) + { + Aws::Utils::Array failedRequestsJsonList = jsonValue.GetArray("failedRequests"); + for(unsigned failedRequestsIndex = 0; failedRequestsIndex < failedRequestsJsonList.GetLength(); ++failedRequestsIndex) + { + m_failedRequests.push_back(failedRequestsJsonList[failedRequestsIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/QConnectIntegrationConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/QConnectIntegrationConfig.cpp new file mode 100644 index 00000000000..747d308dbd8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/QConnectIntegrationConfig.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +QConnectIntegrationConfig::QConnectIntegrationConfig() : + m_knowledgeBaseArnHasBeenSet(false) +{ +} + +QConnectIntegrationConfig::QConnectIntegrationConfig(JsonView jsonValue) + : QConnectIntegrationConfig() +{ + *this = jsonValue; +} + +QConnectIntegrationConfig& QConnectIntegrationConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("knowledgeBaseArn")) + { + m_knowledgeBaseArn = jsonValue.GetString("knowledgeBaseArn"); + + m_knowledgeBaseArnHasBeenSet = true; + } + + return *this; +} + +JsonValue QConnectIntegrationConfig::Jsonize() const +{ + JsonValue payload; + + if(m_knowledgeBaseArnHasBeenSet) + { + payload.WithString("knowledgeBaseArn", m_knowledgeBaseArn); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/QConnectIntegrationIdentifier.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/QConnectIntegrationIdentifier.cpp new file mode 100644 index 00000000000..b83b4275f9a --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/QConnectIntegrationIdentifier.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +QConnectIntegrationIdentifier::QConnectIntegrationIdentifier() : + m_knowledgeBaseArnHasBeenSet(false) +{ +} + +QConnectIntegrationIdentifier::QConnectIntegrationIdentifier(JsonView jsonValue) + : QConnectIntegrationIdentifier() +{ + *this = jsonValue; +} + +QConnectIntegrationIdentifier& QConnectIntegrationIdentifier::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("knowledgeBaseArn")) + { + m_knowledgeBaseArn = jsonValue.GetString("knowledgeBaseArn"); + + m_knowledgeBaseArnHasBeenSet = true; + } + + return *this; +} + +JsonValue QConnectIntegrationIdentifier::Jsonize() const +{ + JsonValue payload; + + if(m_knowledgeBaseArnHasBeenSet) + { + payload.WithString("knowledgeBaseArn", m_knowledgeBaseArn); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/QConnectIntegrationSummary.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/QConnectIntegrationSummary.cpp new file mode 100644 index 00000000000..89d5baacfd1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/QConnectIntegrationSummary.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +QConnectIntegrationSummary::QConnectIntegrationSummary() : + m_knowledgeBaseArnHasBeenSet(false) +{ +} + +QConnectIntegrationSummary::QConnectIntegrationSummary(JsonView jsonValue) + : QConnectIntegrationSummary() +{ + *this = jsonValue; +} + +QConnectIntegrationSummary& QConnectIntegrationSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("knowledgeBaseArn")) + { + m_knowledgeBaseArn = jsonValue.GetString("knowledgeBaseArn"); + + m_knowledgeBaseArnHasBeenSet = true; + } + + return *this; +} + +JsonValue QConnectIntegrationSummary::Jsonize() const +{ + JsonValue payload; + + if(m_knowledgeBaseArnHasBeenSet) + { + payload.WithString("knowledgeBaseArn", m_knowledgeBaseArn); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ResourceNotFoundException.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ResourceNotFoundException.cpp new file mode 100644 index 00000000000..54f745670c6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ResourceNotFoundException.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +ResourceNotFoundException::ResourceNotFoundException() : + m_messageHasBeenSet(false), + m_xAmzErrorTypeHasBeenSet(false) +{ +} + +ResourceNotFoundException::ResourceNotFoundException(JsonView jsonValue) + : ResourceNotFoundException() +{ + *this = jsonValue; +} + +ResourceNotFoundException& ResourceNotFoundException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue ResourceNotFoundException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/RestrictedPeriod.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/RestrictedPeriod.cpp new file mode 100644 index 00000000000..f811db4f141 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/RestrictedPeriod.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +RestrictedPeriod::RestrictedPeriod() : + m_nameHasBeenSet(false), + m_startDateHasBeenSet(false), + m_endDateHasBeenSet(false) +{ +} + +RestrictedPeriod::RestrictedPeriod(JsonView jsonValue) + : RestrictedPeriod() +{ + *this = jsonValue; +} + +RestrictedPeriod& RestrictedPeriod::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("startDate")) + { + m_startDate = jsonValue.GetString("startDate"); + + m_startDateHasBeenSet = true; + } + + if(jsonValue.ValueExists("endDate")) + { + m_endDate = jsonValue.GetString("endDate"); + + m_endDateHasBeenSet = true; + } + + return *this; +} + +JsonValue RestrictedPeriod::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_startDateHasBeenSet) + { + payload.WithString("startDate", m_startDate); + + } + + if(m_endDateHasBeenSet) + { + payload.WithString("endDate", m_endDate); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/RestrictedPeriods.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/RestrictedPeriods.cpp new file mode 100644 index 00000000000..c40b2b44837 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/RestrictedPeriods.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +RestrictedPeriods::RestrictedPeriods() : + m_restrictedPeriodListHasBeenSet(false) +{ +} + +RestrictedPeriods::RestrictedPeriods(JsonView jsonValue) + : RestrictedPeriods() +{ + *this = jsonValue; +} + +RestrictedPeriods& RestrictedPeriods::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("restrictedPeriodList")) + { + Aws::Utils::Array restrictedPeriodListJsonList = jsonValue.GetArray("restrictedPeriodList"); + for(unsigned restrictedPeriodListIndex = 0; restrictedPeriodListIndex < restrictedPeriodListJsonList.GetLength(); ++restrictedPeriodListIndex) + { + m_restrictedPeriodList.push_back(restrictedPeriodListJsonList[restrictedPeriodListIndex].AsObject()); + } + m_restrictedPeriodListHasBeenSet = true; + } + + return *this; +} + +JsonValue RestrictedPeriods::Jsonize() const +{ + JsonValue payload; + + if(m_restrictedPeriodListHasBeenSet) + { + Aws::Utils::Array restrictedPeriodListJsonList(m_restrictedPeriodList.size()); + for(unsigned restrictedPeriodListIndex = 0; restrictedPeriodListIndex < restrictedPeriodListJsonList.GetLength(); ++restrictedPeriodListIndex) + { + restrictedPeriodListJsonList[restrictedPeriodListIndex].AsObject(m_restrictedPeriodList[restrictedPeriodListIndex].Jsonize()); + } + payload.WithArray("restrictedPeriodList", std::move(restrictedPeriodListJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ResumeCampaignRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ResumeCampaignRequest.cpp new file mode 100644 index 00000000000..26c8c9b6c69 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ResumeCampaignRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ResumeCampaignRequest::ResumeCampaignRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String ResumeCampaignRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/Schedule.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/Schedule.cpp new file mode 100644 index 00000000000..12279ca659f --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/Schedule.cpp @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +Schedule::Schedule() : + m_startTimeHasBeenSet(false), + m_endTimeHasBeenSet(false), + m_refreshFrequencyHasBeenSet(false) +{ +} + +Schedule::Schedule(JsonView jsonValue) + : Schedule() +{ + *this = jsonValue; +} + +Schedule& Schedule::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("startTime")) + { + m_startTime = jsonValue.GetString("startTime"); + + m_startTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("endTime")) + { + m_endTime = jsonValue.GetString("endTime"); + + m_endTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("refreshFrequency")) + { + m_refreshFrequency = jsonValue.GetString("refreshFrequency"); + + m_refreshFrequencyHasBeenSet = true; + } + + return *this; +} + +JsonValue Schedule::Jsonize() const +{ + JsonValue payload; + + if(m_startTimeHasBeenSet) + { + payload.WithString("startTime", m_startTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_endTimeHasBeenSet) + { + payload.WithString("endTime", m_endTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_refreshFrequencyHasBeenSet) + { + payload.WithString("refreshFrequency", m_refreshFrequency); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ServiceQuotaExceededException.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ServiceQuotaExceededException.cpp new file mode 100644 index 00000000000..d716f61f1ec --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ServiceQuotaExceededException.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +ServiceQuotaExceededException::ServiceQuotaExceededException() : + m_messageHasBeenSet(false), + m_xAmzErrorTypeHasBeenSet(false) +{ +} + +ServiceQuotaExceededException::ServiceQuotaExceededException(JsonView jsonValue) + : ServiceQuotaExceededException() +{ + *this = jsonValue; +} + +ServiceQuotaExceededException& ServiceQuotaExceededException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue ServiceQuotaExceededException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsChannelSubtypeConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsChannelSubtypeConfig.cpp new file mode 100644 index 00000000000..62ec09e889e --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsChannelSubtypeConfig.cpp @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +SmsChannelSubtypeConfig::SmsChannelSubtypeConfig() : + m_capacity(0.0), + m_capacityHasBeenSet(false), + m_outboundModeHasBeenSet(false), + m_defaultOutboundConfigHasBeenSet(false) +{ +} + +SmsChannelSubtypeConfig::SmsChannelSubtypeConfig(JsonView jsonValue) + : SmsChannelSubtypeConfig() +{ + *this = jsonValue; +} + +SmsChannelSubtypeConfig& SmsChannelSubtypeConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("capacity")) + { + m_capacity = jsonValue.GetDouble("capacity"); + + m_capacityHasBeenSet = true; + } + + if(jsonValue.ValueExists("outboundMode")) + { + m_outboundMode = jsonValue.GetObject("outboundMode"); + + m_outboundModeHasBeenSet = true; + } + + if(jsonValue.ValueExists("defaultOutboundConfig")) + { + m_defaultOutboundConfig = jsonValue.GetObject("defaultOutboundConfig"); + + m_defaultOutboundConfigHasBeenSet = true; + } + + return *this; +} + +JsonValue SmsChannelSubtypeConfig::Jsonize() const +{ + JsonValue payload; + + if(m_capacityHasBeenSet) + { + payload.WithDouble("capacity", m_capacity); + + } + + if(m_outboundModeHasBeenSet) + { + payload.WithObject("outboundMode", m_outboundMode.Jsonize()); + + } + + if(m_defaultOutboundConfigHasBeenSet) + { + payload.WithObject("defaultOutboundConfig", m_defaultOutboundConfig.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsChannelSubtypeParameters.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsChannelSubtypeParameters.cpp new file mode 100644 index 00000000000..cb4308a4420 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsChannelSubtypeParameters.cpp @@ -0,0 +1,109 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +SmsChannelSubtypeParameters::SmsChannelSubtypeParameters() : + m_destinationPhoneNumberHasBeenSet(false), + m_connectSourcePhoneNumberArnHasBeenSet(false), + m_templateArnHasBeenSet(false), + m_templateParametersHasBeenSet(false) +{ +} + +SmsChannelSubtypeParameters::SmsChannelSubtypeParameters(JsonView jsonValue) + : SmsChannelSubtypeParameters() +{ + *this = jsonValue; +} + +SmsChannelSubtypeParameters& SmsChannelSubtypeParameters::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("destinationPhoneNumber")) + { + m_destinationPhoneNumber = jsonValue.GetString("destinationPhoneNumber"); + + m_destinationPhoneNumberHasBeenSet = true; + } + + if(jsonValue.ValueExists("connectSourcePhoneNumberArn")) + { + m_connectSourcePhoneNumberArn = jsonValue.GetString("connectSourcePhoneNumberArn"); + + m_connectSourcePhoneNumberArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("templateArn")) + { + m_templateArn = jsonValue.GetString("templateArn"); + + m_templateArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("templateParameters")) + { + Aws::Map templateParametersJsonMap = jsonValue.GetObject("templateParameters").GetAllObjects(); + for(auto& templateParametersItem : templateParametersJsonMap) + { + m_templateParameters[templateParametersItem.first] = templateParametersItem.second.AsString(); + } + m_templateParametersHasBeenSet = true; + } + + return *this; +} + +JsonValue SmsChannelSubtypeParameters::Jsonize() const +{ + JsonValue payload; + + if(m_destinationPhoneNumberHasBeenSet) + { + payload.WithString("destinationPhoneNumber", m_destinationPhoneNumber); + + } + + if(m_connectSourcePhoneNumberArnHasBeenSet) + { + payload.WithString("connectSourcePhoneNumberArn", m_connectSourcePhoneNumberArn); + + } + + if(m_templateArnHasBeenSet) + { + payload.WithString("templateArn", m_templateArn); + + } + + if(m_templateParametersHasBeenSet) + { + JsonValue templateParametersJsonMap; + for(auto& templateParametersItem : m_templateParameters) + { + templateParametersJsonMap.WithString(templateParametersItem.first, templateParametersItem.second); + } + payload.WithObject("templateParameters", std::move(templateParametersJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsOutboundConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsOutboundConfig.cpp new file mode 100644 index 00000000000..1082a1254b2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsOutboundConfig.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +SmsOutboundConfig::SmsOutboundConfig() : + m_connectSourcePhoneNumberArnHasBeenSet(false), + m_wisdomTemplateArnHasBeenSet(false) +{ +} + +SmsOutboundConfig::SmsOutboundConfig(JsonView jsonValue) + : SmsOutboundConfig() +{ + *this = jsonValue; +} + +SmsOutboundConfig& SmsOutboundConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("connectSourcePhoneNumberArn")) + { + m_connectSourcePhoneNumberArn = jsonValue.GetString("connectSourcePhoneNumberArn"); + + m_connectSourcePhoneNumberArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("wisdomTemplateArn")) + { + m_wisdomTemplateArn = jsonValue.GetString("wisdomTemplateArn"); + + m_wisdomTemplateArnHasBeenSet = true; + } + + return *this; +} + +JsonValue SmsOutboundConfig::Jsonize() const +{ + JsonValue payload; + + if(m_connectSourcePhoneNumberArnHasBeenSet) + { + payload.WithString("connectSourcePhoneNumberArn", m_connectSourcePhoneNumberArn); + + } + + if(m_wisdomTemplateArnHasBeenSet) + { + payload.WithString("wisdomTemplateArn", m_wisdomTemplateArn); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsOutboundMode.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsOutboundMode.cpp new file mode 100644 index 00000000000..c7651427e39 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SmsOutboundMode.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +SmsOutboundMode::SmsOutboundMode() : + m_agentlessHasBeenSet(false) +{ +} + +SmsOutboundMode::SmsOutboundMode(JsonView jsonValue) + : SmsOutboundMode() +{ + *this = jsonValue; +} + +SmsOutboundMode& SmsOutboundMode::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("agentless")) + { + m_agentless = jsonValue.GetObject("agentless"); + + m_agentlessHasBeenSet = true; + } + + return *this; +} + +JsonValue SmsOutboundMode::Jsonize() const +{ + JsonValue payload; + + if(m_agentlessHasBeenSet) + { + payload.WithObject("agentless", m_agentless.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/Source.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/Source.cpp new file mode 100644 index 00000000000..c3831cd6951 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/Source.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +Source::Source() : + m_customerProfilesSegmentArnHasBeenSet(false) +{ +} + +Source::Source(JsonView jsonValue) + : Source() +{ + *this = jsonValue; +} + +Source& Source::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("customerProfilesSegmentArn")) + { + m_customerProfilesSegmentArn = jsonValue.GetString("customerProfilesSegmentArn"); + + m_customerProfilesSegmentArnHasBeenSet = true; + } + + return *this; +} + +JsonValue Source::Jsonize() const +{ + JsonValue payload; + + if(m_customerProfilesSegmentArnHasBeenSet) + { + payload.WithString("customerProfilesSegmentArn", m_customerProfilesSegmentArn); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StartCampaignRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StartCampaignRequest.cpp new file mode 100644 index 00000000000..5fbd86eb512 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StartCampaignRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StartCampaignRequest::StartCampaignRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String StartCampaignRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StartInstanceOnboardingJobRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StartInstanceOnboardingJobRequest.cpp new file mode 100644 index 00000000000..e418d6bf267 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StartInstanceOnboardingJobRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StartInstanceOnboardingJobRequest::StartInstanceOnboardingJobRequest() : + m_connectInstanceIdHasBeenSet(false), + m_encryptionConfigHasBeenSet(false) +{ +} + +Aws::String StartInstanceOnboardingJobRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_encryptionConfigHasBeenSet) + { + payload.WithObject("encryptionConfig", m_encryptionConfig.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StartInstanceOnboardingJobResult.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StartInstanceOnboardingJobResult.cpp new file mode 100644 index 00000000000..6fc65b87121 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StartInstanceOnboardingJobResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +StartInstanceOnboardingJobResult::StartInstanceOnboardingJobResult() +{ +} + +StartInstanceOnboardingJobResult::StartInstanceOnboardingJobResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +StartInstanceOnboardingJobResult& StartInstanceOnboardingJobResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("connectInstanceOnboardingJobStatus")) + { + m_connectInstanceOnboardingJobStatus = jsonValue.GetObject("connectInstanceOnboardingJobStatus"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StopCampaignRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StopCampaignRequest.cpp new file mode 100644 index 00000000000..d217a6e91d5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/StopCampaignRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StopCampaignRequest::StopCampaignRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String StopCampaignRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SuccessfulCampaignStateResponse.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SuccessfulCampaignStateResponse.cpp new file mode 100644 index 00000000000..84b1d33ec1c --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SuccessfulCampaignStateResponse.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +SuccessfulCampaignStateResponse::SuccessfulCampaignStateResponse() : + m_campaignIdHasBeenSet(false), + m_state(CampaignState::NOT_SET), + m_stateHasBeenSet(false) +{ +} + +SuccessfulCampaignStateResponse::SuccessfulCampaignStateResponse(JsonView jsonValue) + : SuccessfulCampaignStateResponse() +{ + *this = jsonValue; +} + +SuccessfulCampaignStateResponse& SuccessfulCampaignStateResponse::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("campaignId")) + { + m_campaignId = jsonValue.GetString("campaignId"); + + m_campaignIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("state")) + { + m_state = CampaignStateMapper::GetCampaignStateForName(jsonValue.GetString("state")); + + m_stateHasBeenSet = true; + } + + return *this; +} + +JsonValue SuccessfulCampaignStateResponse::Jsonize() const +{ + JsonValue payload; + + if(m_campaignIdHasBeenSet) + { + payload.WithString("campaignId", m_campaignId); + + } + + if(m_stateHasBeenSet) + { + payload.WithString("state", CampaignStateMapper::GetNameForCampaignState(m_state)); + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SuccessfulRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SuccessfulRequest.cpp new file mode 100644 index 00000000000..a6ee78379aa --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/SuccessfulRequest.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +SuccessfulRequest::SuccessfulRequest() : + m_clientTokenHasBeenSet(false), + m_idHasBeenSet(false) +{ +} + +SuccessfulRequest::SuccessfulRequest(JsonView jsonValue) + : SuccessfulRequest() +{ + *this = jsonValue; +} + +SuccessfulRequest& SuccessfulRequest::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("clientToken")) + { + m_clientToken = jsonValue.GetString("clientToken"); + + m_clientTokenHasBeenSet = true; + } + + if(jsonValue.ValueExists("id")) + { + m_id = jsonValue.GetString("id"); + + m_idHasBeenSet = true; + } + + return *this; +} + +JsonValue SuccessfulRequest::Jsonize() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + if(m_idHasBeenSet) + { + payload.WithString("id", m_id); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TagResourceRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TagResourceRequest.cpp new file mode 100644 index 00000000000..204bd92fa04 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TagResourceRequest.cpp @@ -0,0 +1,41 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +TagResourceRequest::TagResourceRequest() : + m_arnHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String TagResourceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyChannelSubtypeConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyChannelSubtypeConfig.cpp new file mode 100644 index 00000000000..7ed9c538464 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyChannelSubtypeConfig.cpp @@ -0,0 +1,102 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +TelephonyChannelSubtypeConfig::TelephonyChannelSubtypeConfig() : + m_capacity(0.0), + m_capacityHasBeenSet(false), + m_connectQueueIdHasBeenSet(false), + m_outboundModeHasBeenSet(false), + m_defaultOutboundConfigHasBeenSet(false) +{ +} + +TelephonyChannelSubtypeConfig::TelephonyChannelSubtypeConfig(JsonView jsonValue) + : TelephonyChannelSubtypeConfig() +{ + *this = jsonValue; +} + +TelephonyChannelSubtypeConfig& TelephonyChannelSubtypeConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("capacity")) + { + m_capacity = jsonValue.GetDouble("capacity"); + + m_capacityHasBeenSet = true; + } + + if(jsonValue.ValueExists("connectQueueId")) + { + m_connectQueueId = jsonValue.GetString("connectQueueId"); + + m_connectQueueIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("outboundMode")) + { + m_outboundMode = jsonValue.GetObject("outboundMode"); + + m_outboundModeHasBeenSet = true; + } + + if(jsonValue.ValueExists("defaultOutboundConfig")) + { + m_defaultOutboundConfig = jsonValue.GetObject("defaultOutboundConfig"); + + m_defaultOutboundConfigHasBeenSet = true; + } + + return *this; +} + +JsonValue TelephonyChannelSubtypeConfig::Jsonize() const +{ + JsonValue payload; + + if(m_capacityHasBeenSet) + { + payload.WithDouble("capacity", m_capacity); + + } + + if(m_connectQueueIdHasBeenSet) + { + payload.WithString("connectQueueId", m_connectQueueId); + + } + + if(m_outboundModeHasBeenSet) + { + payload.WithObject("outboundMode", m_outboundMode.Jsonize()); + + } + + if(m_defaultOutboundConfigHasBeenSet) + { + payload.WithObject("defaultOutboundConfig", m_defaultOutboundConfig.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyChannelSubtypeParameters.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyChannelSubtypeParameters.cpp new file mode 100644 index 00000000000..3dcc2e8681e --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyChannelSubtypeParameters.cpp @@ -0,0 +1,109 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +TelephonyChannelSubtypeParameters::TelephonyChannelSubtypeParameters() : + m_destinationPhoneNumberHasBeenSet(false), + m_attributesHasBeenSet(false), + m_connectSourcePhoneNumberHasBeenSet(false), + m_answerMachineDetectionConfigHasBeenSet(false) +{ +} + +TelephonyChannelSubtypeParameters::TelephonyChannelSubtypeParameters(JsonView jsonValue) + : TelephonyChannelSubtypeParameters() +{ + *this = jsonValue; +} + +TelephonyChannelSubtypeParameters& TelephonyChannelSubtypeParameters::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("destinationPhoneNumber")) + { + m_destinationPhoneNumber = jsonValue.GetString("destinationPhoneNumber"); + + m_destinationPhoneNumberHasBeenSet = true; + } + + if(jsonValue.ValueExists("attributes")) + { + Aws::Map attributesJsonMap = jsonValue.GetObject("attributes").GetAllObjects(); + for(auto& attributesItem : attributesJsonMap) + { + m_attributes[attributesItem.first] = attributesItem.second.AsString(); + } + m_attributesHasBeenSet = true; + } + + if(jsonValue.ValueExists("connectSourcePhoneNumber")) + { + m_connectSourcePhoneNumber = jsonValue.GetString("connectSourcePhoneNumber"); + + m_connectSourcePhoneNumberHasBeenSet = true; + } + + if(jsonValue.ValueExists("answerMachineDetectionConfig")) + { + m_answerMachineDetectionConfig = jsonValue.GetObject("answerMachineDetectionConfig"); + + m_answerMachineDetectionConfigHasBeenSet = true; + } + + return *this; +} + +JsonValue TelephonyChannelSubtypeParameters::Jsonize() const +{ + JsonValue payload; + + if(m_destinationPhoneNumberHasBeenSet) + { + payload.WithString("destinationPhoneNumber", m_destinationPhoneNumber); + + } + + if(m_attributesHasBeenSet) + { + JsonValue attributesJsonMap; + for(auto& attributesItem : m_attributes) + { + attributesJsonMap.WithString(attributesItem.first, attributesItem.second); + } + payload.WithObject("attributes", std::move(attributesJsonMap)); + + } + + if(m_connectSourcePhoneNumberHasBeenSet) + { + payload.WithString("connectSourcePhoneNumber", m_connectSourcePhoneNumber); + + } + + if(m_answerMachineDetectionConfigHasBeenSet) + { + payload.WithObject("answerMachineDetectionConfig", m_answerMachineDetectionConfig.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyOutboundConfig.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyOutboundConfig.cpp new file mode 100644 index 00000000000..313934a6553 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyOutboundConfig.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +TelephonyOutboundConfig::TelephonyOutboundConfig() : + m_connectContactFlowIdHasBeenSet(false), + m_connectSourcePhoneNumberHasBeenSet(false), + m_answerMachineDetectionConfigHasBeenSet(false) +{ +} + +TelephonyOutboundConfig::TelephonyOutboundConfig(JsonView jsonValue) + : TelephonyOutboundConfig() +{ + *this = jsonValue; +} + +TelephonyOutboundConfig& TelephonyOutboundConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("connectContactFlowId")) + { + m_connectContactFlowId = jsonValue.GetString("connectContactFlowId"); + + m_connectContactFlowIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("connectSourcePhoneNumber")) + { + m_connectSourcePhoneNumber = jsonValue.GetString("connectSourcePhoneNumber"); + + m_connectSourcePhoneNumberHasBeenSet = true; + } + + if(jsonValue.ValueExists("answerMachineDetectionConfig")) + { + m_answerMachineDetectionConfig = jsonValue.GetObject("answerMachineDetectionConfig"); + + m_answerMachineDetectionConfigHasBeenSet = true; + } + + return *this; +} + +JsonValue TelephonyOutboundConfig::Jsonize() const +{ + JsonValue payload; + + if(m_connectContactFlowIdHasBeenSet) + { + payload.WithString("connectContactFlowId", m_connectContactFlowId); + + } + + if(m_connectSourcePhoneNumberHasBeenSet) + { + payload.WithString("connectSourcePhoneNumber", m_connectSourcePhoneNumber); + + } + + if(m_answerMachineDetectionConfigHasBeenSet) + { + payload.WithObject("answerMachineDetectionConfig", m_answerMachineDetectionConfig.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyOutboundMode.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyOutboundMode.cpp new file mode 100644 index 00000000000..7c4620c57ff --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TelephonyOutboundMode.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +TelephonyOutboundMode::TelephonyOutboundMode() : + m_progressiveHasBeenSet(false), + m_predictiveHasBeenSet(false), + m_agentlessHasBeenSet(false) +{ +} + +TelephonyOutboundMode::TelephonyOutboundMode(JsonView jsonValue) + : TelephonyOutboundMode() +{ + *this = jsonValue; +} + +TelephonyOutboundMode& TelephonyOutboundMode::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("progressive")) + { + m_progressive = jsonValue.GetObject("progressive"); + + m_progressiveHasBeenSet = true; + } + + if(jsonValue.ValueExists("predictive")) + { + m_predictive = jsonValue.GetObject("predictive"); + + m_predictiveHasBeenSet = true; + } + + if(jsonValue.ValueExists("agentless")) + { + m_agentless = jsonValue.GetObject("agentless"); + + m_agentlessHasBeenSet = true; + } + + return *this; +} + +JsonValue TelephonyOutboundMode::Jsonize() const +{ + JsonValue payload; + + if(m_progressiveHasBeenSet) + { + payload.WithObject("progressive", m_progressive.Jsonize()); + + } + + if(m_predictiveHasBeenSet) + { + payload.WithObject("predictive", m_predictive.Jsonize()); + + } + + if(m_agentlessHasBeenSet) + { + payload.WithObject("agentless", m_agentless.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ThrottlingException.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ThrottlingException.cpp new file mode 100644 index 00000000000..341a1899f12 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ThrottlingException.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +ThrottlingException::ThrottlingException() : + m_messageHasBeenSet(false), + m_xAmzErrorTypeHasBeenSet(false) +{ +} + +ThrottlingException::ThrottlingException(JsonView jsonValue) + : ThrottlingException() +{ + *this = jsonValue; +} + +ThrottlingException& ThrottlingException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue ThrottlingException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TimeRange.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TimeRange.cpp new file mode 100644 index 00000000000..8f2412010c1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TimeRange.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +TimeRange::TimeRange() : + m_startTimeHasBeenSet(false), + m_endTimeHasBeenSet(false) +{ +} + +TimeRange::TimeRange(JsonView jsonValue) + : TimeRange() +{ + *this = jsonValue; +} + +TimeRange& TimeRange::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("startTime")) + { + m_startTime = jsonValue.GetString("startTime"); + + m_startTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("endTime")) + { + m_endTime = jsonValue.GetString("endTime"); + + m_endTimeHasBeenSet = true; + } + + return *this; +} + +JsonValue TimeRange::Jsonize() const +{ + JsonValue payload; + + if(m_startTimeHasBeenSet) + { + payload.WithString("startTime", m_startTime); + + } + + if(m_endTimeHasBeenSet) + { + payload.WithString("endTime", m_endTime); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TimeWindow.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TimeWindow.cpp new file mode 100644 index 00000000000..f1f9466b529 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/TimeWindow.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +TimeWindow::TimeWindow() : + m_openHoursHasBeenSet(false), + m_restrictedPeriodsHasBeenSet(false) +{ +} + +TimeWindow::TimeWindow(JsonView jsonValue) + : TimeWindow() +{ + *this = jsonValue; +} + +TimeWindow& TimeWindow::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("openHours")) + { + m_openHours = jsonValue.GetObject("openHours"); + + m_openHoursHasBeenSet = true; + } + + if(jsonValue.ValueExists("restrictedPeriods")) + { + m_restrictedPeriods = jsonValue.GetObject("restrictedPeriods"); + + m_restrictedPeriodsHasBeenSet = true; + } + + return *this; +} + +JsonValue TimeWindow::Jsonize() const +{ + JsonValue payload; + + if(m_openHoursHasBeenSet) + { + payload.WithObject("openHours", m_openHours.Jsonize()); + + } + + if(m_restrictedPeriodsHasBeenSet) + { + payload.WithObject("restrictedPeriods", m_restrictedPeriods.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UntagResourceRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UntagResourceRequest.cpp new file mode 100644 index 00000000000..0c619161872 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UntagResourceRequest.cpp @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +UntagResourceRequest::UntagResourceRequest() : + m_arnHasBeenSet(false), + m_tagKeysHasBeenSet(false) +{ +} + +Aws::String UntagResourceRequest::SerializePayload() const +{ + return {}; +} + +void UntagResourceRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_tagKeysHasBeenSet) + { + for(const auto& item : m_tagKeys) + { + ss << item; + uri.AddQueryStringParameter("tagKeys", ss.str()); + ss.str(""); + } + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignChannelSubtypeConfigRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignChannelSubtypeConfigRequest.cpp new file mode 100644 index 00000000000..f55031e0bd6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignChannelSubtypeConfigRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateCampaignChannelSubtypeConfigRequest::UpdateCampaignChannelSubtypeConfigRequest() : + m_idHasBeenSet(false), + m_channelSubtypeConfigHasBeenSet(false) +{ +} + +Aws::String UpdateCampaignChannelSubtypeConfigRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_channelSubtypeConfigHasBeenSet) + { + payload.WithObject("channelSubtypeConfig", m_channelSubtypeConfig.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignCommunicationLimitsRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignCommunicationLimitsRequest.cpp new file mode 100644 index 00000000000..56672cd0120 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignCommunicationLimitsRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateCampaignCommunicationLimitsRequest::UpdateCampaignCommunicationLimitsRequest() : + m_idHasBeenSet(false), + m_communicationLimitsOverrideHasBeenSet(false) +{ +} + +Aws::String UpdateCampaignCommunicationLimitsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_communicationLimitsOverrideHasBeenSet) + { + payload.WithObject("communicationLimitsOverride", m_communicationLimitsOverride.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignCommunicationTimeRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignCommunicationTimeRequest.cpp new file mode 100644 index 00000000000..fc253016d5b --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignCommunicationTimeRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateCampaignCommunicationTimeRequest::UpdateCampaignCommunicationTimeRequest() : + m_idHasBeenSet(false), + m_communicationTimeConfigHasBeenSet(false) +{ +} + +Aws::String UpdateCampaignCommunicationTimeRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_communicationTimeConfigHasBeenSet) + { + payload.WithObject("communicationTimeConfig", m_communicationTimeConfig.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignFlowAssociationRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignFlowAssociationRequest.cpp new file mode 100644 index 00000000000..31ad7da261b --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignFlowAssociationRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateCampaignFlowAssociationRequest::UpdateCampaignFlowAssociationRequest() : + m_idHasBeenSet(false), + m_connectCampaignFlowArnHasBeenSet(false) +{ +} + +Aws::String UpdateCampaignFlowAssociationRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_connectCampaignFlowArnHasBeenSet) + { + payload.WithString("connectCampaignFlowArn", m_connectCampaignFlowArn); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignNameRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignNameRequest.cpp new file mode 100644 index 00000000000..0a50bef3702 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignNameRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateCampaignNameRequest::UpdateCampaignNameRequest() : + m_idHasBeenSet(false), + m_nameHasBeenSet(false) +{ +} + +Aws::String UpdateCampaignNameRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignScheduleRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignScheduleRequest.cpp new file mode 100644 index 00000000000..c62601f4c28 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignScheduleRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateCampaignScheduleRequest::UpdateCampaignScheduleRequest() : + m_idHasBeenSet(false), + m_scheduleHasBeenSet(false) +{ +} + +Aws::String UpdateCampaignScheduleRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_scheduleHasBeenSet) + { + payload.WithObject("schedule", m_schedule.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignSourceRequest.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignSourceRequest.cpp new file mode 100644 index 00000000000..89ad7845f03 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/UpdateCampaignSourceRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ConnectCampaignsV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateCampaignSourceRequest::UpdateCampaignSourceRequest() : + m_idHasBeenSet(false), + m_sourceHasBeenSet(false) +{ +} + +Aws::String UpdateCampaignSourceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_sourceHasBeenSet) + { + payload.WithObject("source", m_source.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ValidationException.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ValidationException.cpp new file mode 100644 index 00000000000..31fed144053 --- /dev/null +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/model/ValidationException.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace ConnectCampaignsV2 +{ +namespace Model +{ + +ValidationException::ValidationException() : + m_messageHasBeenSet(false), + m_xAmzErrorTypeHasBeenSet(false) +{ +} + +ValidationException::ValidationException(JsonView jsonValue) + : ValidationException() +{ + *this = jsonValue; +} + +ValidationException& ValidationException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue ValidationException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace ConnectCampaignsV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/DataSyncClient.h b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/DataSyncClient.h index a36c4461f20..422f93b6553 100644 --- a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/DataSyncClient.h +++ b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/DataSyncClient.h @@ -1084,8 +1084,8 @@ namespace DataSync * specific task mode. For information, see Understanding * task mode differences and Understanding - * data transfer performance metrics.

See Also:

Understanding + * data transfer performance counters.

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/CreateTaskRequest.h b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/CreateTaskRequest.h index c9fb8339daf..940ad4cbdd9 100644 --- a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/CreateTaskRequest.h +++ b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/CreateTaskRequest.h @@ -226,15 +226,20 @@ namespace Model /** *

Specifies one of the following task modes for your data transfer:

    *
  • ENHANCED - Transfer virtually unlimited numbers of objects - * with enhanced metrics, more detailed logs, and higher performance than Basic - * mode. Currently available for transfers between Amazon S3 locations.

    - *

    To create an Enhanced mode task, the IAM role that you use to call the - * CreateTask operation must have the + * with higher performance than Basic mode. Enhanced mode tasks optimize the data + * transfer process by listing, preparing, transferring, and verifying data in + * parallel. Enhanced mode is currently available for transfers between Amazon S3 + * locations.

    To create an Enhanced mode task, the IAM role that you + * use to call the CreateTask operation must have the * iam:CreateServiceLinkedRole permission.

  • * BASIC (default) - Transfer files or objects between Amazon Web - * Services storage and on-premises, edge, or other cloud storage. DataSync quotas - * apply.

For more information, see

For more information, see + * Understanding * task mode differences.

*/ diff --git a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/DescribeTaskExecutionResult.h b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/DescribeTaskExecutionResult.h index 49e589bf3b5..2b6e5189edf 100644 --- a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/DescribeTaskExecutionResult.h +++ b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/DescribeTaskExecutionResult.h @@ -149,11 +149,10 @@ namespace Model ///@{ /** *

The number of files, objects, and directories that DataSync expects to - * transfer over the network. This value is calculated during the task execution's - * PREPARING step - * before the TRANSFERRING step.

How this gets calculated - * depends primarily on your task’s prepares + * the transfer.

How this gets calculated depends primarily on your task’s + * transfer * mode configuration:

  • If TranserMode is set to * CHANGED - The calculation is based on comparing the content of the @@ -187,11 +186,9 @@ namespace Model ///@{ /** *

    The number of files, objects, and directories that DataSync actually - * transfers over the network. This value is updated periodically during the task - * execution's TRANSFERRING step - * when something is read from the source and sent over the network.

    If - * DataSync fails to transfer something, this value can be less than + * transfers over the network. This value is updated periodically during your task + * execution when something is read from the source and sent over the network.

    + *

    If DataSync fails to transfer something, this value can be less than * EstimatedFilesToTransfer. In some cases, this value can also be * greater than EstimatedFilesToTransfer. This element is * implementation-specific for some location types, so don't use it as an exact @@ -230,10 +227,7 @@ namespace Model *

    The number of physical bytes that DataSync transfers over the network after * compression (if compression is possible). This number is typically less than BytesTransferred - * unless the data isn't compressible.

    Not currently supported with - * Enhanced - * mode tasks.

    + * unless the data isn't compressible.

    */ inline long long GetBytesCompressed() const{ return m_bytesCompressed; } inline void SetBytesCompressed(long long value) { m_bytesCompressed = value; } @@ -268,10 +262,10 @@ namespace Model ///@{ /** *

    The number of files, objects, and directories that DataSync actually deletes - * in your destination location. If you don't configure - * your task to delete data in the destination that isn't in the source, the - * value is always 0.

    + * in your destination location. If you don't configure your task to delete + * data in the destination that isn't in the source, the value is always + * 0.

    */ inline long long GetFilesDeleted() const{ return m_filesDeleted; } inline void SetFilesDeleted(long long value) { m_filesDeleted = value; } @@ -317,10 +311,10 @@ namespace Model ///@{ /** *

    The number of files, objects, and directories that DataSync expects to delete - * in your destination location. If you don't configure - * your task to delete data in the destination that isn't in the source, the - * value is always 0.

    + * in your destination location. If you don't configure your task to delete + * data in the destination that isn't in the source, the value is always + * 0.

    */ inline long long GetEstimatedFilesToDelete() const{ return m_estimatedFilesToDelete; } inline void SetEstimatedFilesToDelete(long long value) { m_estimatedFilesToDelete = value; } @@ -345,7 +339,7 @@ namespace Model *

    The number of objects that DataSync will attempt to transfer after comparing * your source and destination locations.

    Applies only to Enhanced - * mode tasks.

    This metric isn't applicable if you configure + * mode tasks.

    This counter isn't applicable if you configure * your task to transfer * all data. In that scenario, DataSync copies everything from the source to diff --git a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/TaskExecutionFilesListedDetail.h b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/TaskExecutionFilesListedDetail.h index 36abd757116..97afde27db9 100644 --- a/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/TaskExecutionFilesListedDetail.h +++ b/generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/TaskExecutionFilesListedDetail.h @@ -59,7 +59,7 @@ namespace Model ///@{ /** *

    The number of objects that DataSync finds at your destination location. This - * metric is only applicable if you configure * your task to delete data in the destination that isn't in the source.

    */ diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/FleetCapacityReservationUsageStrategy.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/FleetCapacityReservationUsageStrategy.h index 2aec4f5e997..436895e2e6f 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/FleetCapacityReservationUsageStrategy.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/FleetCapacityReservationUsageStrategy.h @@ -16,9 +16,7 @@ namespace Model enum class FleetCapacityReservationUsageStrategy { NOT_SET, - use_capacity_reservations_first, - use_capacity_reservations_only, - none + use_capacity_reservations_first }; namespace FleetCapacityReservationUsageStrategyMapper diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/FleetCapacityReservationUsageStrategy.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/FleetCapacityReservationUsageStrategy.cpp index 67420e81701..9b4093c1565 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/FleetCapacityReservationUsageStrategy.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/FleetCapacityReservationUsageStrategy.cpp @@ -21,8 +21,6 @@ namespace Aws { static const int use_capacity_reservations_first_HASH = HashingUtils::HashString("use-capacity-reservations-first"); - static const int use_capacity_reservations_only_HASH = HashingUtils::HashString("use-capacity-reservations-only"); - static const int none_HASH = HashingUtils::HashString("none"); FleetCapacityReservationUsageStrategy GetFleetCapacityReservationUsageStrategyForName(const Aws::String& name) @@ -32,14 +30,6 @@ namespace Aws { return FleetCapacityReservationUsageStrategy::use_capacity_reservations_first; } - else if (hashCode == use_capacity_reservations_only_HASH) - { - return FleetCapacityReservationUsageStrategy::use_capacity_reservations_only; - } - else if (hashCode == none_HASH) - { - return FleetCapacityReservationUsageStrategy::none; - } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -58,10 +48,6 @@ namespace Aws return {}; case FleetCapacityReservationUsageStrategy::use_capacity_reservations_first: return "use-capacity-reservations-first"; - case FleetCapacityReservationUsageStrategy::use_capacity_reservations_only: - return "use-capacity-reservations-only"; - case FleetCapacityReservationUsageStrategy::none: - return "none"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/IoTClient.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/IoTClient.h index e088857e94d..46968320d88 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/IoTClient.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/IoTClient.h @@ -5107,6 +5107,35 @@ namespace IoT return SubmitAsync(&IoTClient::ListPrincipalThings, request, handler, context); } + /** + *

    Lists the things associated with the specified principal. A principal can be + * an X.509 certificate or an Amazon Cognito ID.

    Requires permission to + * access the ListPrincipalThings + * action.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListPrincipalThingsV2Outcome ListPrincipalThingsV2(const Model::ListPrincipalThingsV2Request& request) const; + + /** + * A Callable wrapper for ListPrincipalThingsV2 that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListPrincipalThingsV2OutcomeCallable ListPrincipalThingsV2Callable(const ListPrincipalThingsV2RequestT& request) const + { + return SubmitCallable(&IoTClient::ListPrincipalThingsV2, request); + } + + /** + * An Async wrapper for ListPrincipalThingsV2 that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListPrincipalThingsV2Async(const ListPrincipalThingsV2RequestT& request, const ListPrincipalThingsV2ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&IoTClient::ListPrincipalThingsV2, request, handler, context); + } + /** *

    A list of provisioning template versions.

    Requires permission to * access the Lists the principals associated with the specified thing. A principal can be + * an X.509 certificate or an Amazon Cognito ID.

    Requires permission to + * access the ListThingPrincipals + * action.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListThingPrincipalsV2Outcome ListThingPrincipalsV2(const Model::ListThingPrincipalsV2Request& request) const; + + /** + * A Callable wrapper for ListThingPrincipalsV2 that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListThingPrincipalsV2OutcomeCallable ListThingPrincipalsV2Callable(const ListThingPrincipalsV2RequestT& request) const + { + return SubmitCallable(&IoTClient::ListThingPrincipalsV2, request); + } + + /** + * An Async wrapper for ListThingPrincipalsV2 that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListThingPrincipalsV2Async(const ListThingPrincipalsV2RequestT& request, const ListThingPrincipalsV2ResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&IoTClient::ListThingPrincipalsV2, request, handler, context); + } + /** *

    Information about the thing registration tasks.

    See Also:

    AWS @@ -7325,6 +7383,31 @@ namespace IoT return SubmitAsync(&IoTClient::UpdateThingGroupsForThing, request, handler, context); } + /** + *

    Updates a thing type.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateThingTypeOutcome UpdateThingType(const Model::UpdateThingTypeRequest& request) const; + + /** + * A Callable wrapper for UpdateThingType that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateThingTypeOutcomeCallable UpdateThingTypeCallable(const UpdateThingTypeRequestT& request) const + { + return SubmitCallable(&IoTClient::UpdateThingType, request); + } + + /** + * An Async wrapper for UpdateThingType that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateThingTypeAsync(const UpdateThingTypeRequestT& request, const UpdateThingTypeResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&IoTClient::UpdateThingType, request, handler, context); + } + /** *

    Updates a topic rule destination. You use this to change the status, endpoint * URL, or confirmation URL of the destination.

    Requires permission to diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/IoTServiceClientModel.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/IoTServiceClientModel.h index 3cecaa41289..9828720ccf8 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/IoTServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/IoTServiceClientModel.h @@ -176,6 +176,7 @@ #include #include #include +#include #include #include #include @@ -191,6 +192,7 @@ #include #include #include +#include #include #include #include @@ -243,6 +245,7 @@ #include #include #include +#include #include #include #include @@ -520,6 +523,7 @@ namespace Aws class ListPoliciesRequest; class ListPolicyVersionsRequest; class ListPrincipalThingsRequest; + class ListPrincipalThingsV2Request; class ListProvisioningTemplateVersionsRequest; class ListProvisioningTemplatesRequest; class ListRelatedResourcesForAuditFindingRequest; @@ -535,6 +539,7 @@ namespace Aws class ListThingGroupsRequest; class ListThingGroupsForThingRequest; class ListThingPrincipalsRequest; + class ListThingPrincipalsV2Request; class ListThingRegistrationTaskReportsRequest; class ListThingRegistrationTasksRequest; class ListThingTypesRequest; @@ -597,6 +602,7 @@ namespace Aws class UpdateThingRequest; class UpdateThingGroupRequest; class UpdateThingGroupsForThingRequest; + class UpdateThingTypeRequest; class UpdateTopicRuleDestinationRequest; class ValidateSecurityProfileBehaviorsRequest; /* End of service model forward declarations required in IoTClient header */ @@ -777,6 +783,7 @@ namespace Aws typedef Aws::Utils::Outcome ListPoliciesOutcome; typedef Aws::Utils::Outcome ListPolicyVersionsOutcome; typedef Aws::Utils::Outcome ListPrincipalThingsOutcome; + typedef Aws::Utils::Outcome ListPrincipalThingsV2Outcome; typedef Aws::Utils::Outcome ListProvisioningTemplateVersionsOutcome; typedef Aws::Utils::Outcome ListProvisioningTemplatesOutcome; typedef Aws::Utils::Outcome ListRelatedResourcesForAuditFindingOutcome; @@ -792,6 +799,7 @@ namespace Aws typedef Aws::Utils::Outcome ListThingGroupsOutcome; typedef Aws::Utils::Outcome ListThingGroupsForThingOutcome; typedef Aws::Utils::Outcome ListThingPrincipalsOutcome; + typedef Aws::Utils::Outcome ListThingPrincipalsV2Outcome; typedef Aws::Utils::Outcome ListThingRegistrationTaskReportsOutcome; typedef Aws::Utils::Outcome ListThingRegistrationTasksOutcome; typedef Aws::Utils::Outcome ListThingTypesOutcome; @@ -854,6 +862,7 @@ namespace Aws typedef Aws::Utils::Outcome UpdateThingOutcome; typedef Aws::Utils::Outcome UpdateThingGroupOutcome; typedef Aws::Utils::Outcome UpdateThingGroupsForThingOutcome; + typedef Aws::Utils::Outcome UpdateThingTypeOutcome; typedef Aws::Utils::Outcome UpdateTopicRuleDestinationOutcome; typedef Aws::Utils::Outcome ValidateSecurityProfileBehaviorsOutcome; /* End of service model Outcome class definitions */ @@ -1034,6 +1043,7 @@ namespace Aws typedef std::future ListPoliciesOutcomeCallable; typedef std::future ListPolicyVersionsOutcomeCallable; typedef std::future ListPrincipalThingsOutcomeCallable; + typedef std::future ListPrincipalThingsV2OutcomeCallable; typedef std::future ListProvisioningTemplateVersionsOutcomeCallable; typedef std::future ListProvisioningTemplatesOutcomeCallable; typedef std::future ListRelatedResourcesForAuditFindingOutcomeCallable; @@ -1049,6 +1059,7 @@ namespace Aws typedef std::future ListThingGroupsOutcomeCallable; typedef std::future ListThingGroupsForThingOutcomeCallable; typedef std::future ListThingPrincipalsOutcomeCallable; + typedef std::future ListThingPrincipalsV2OutcomeCallable; typedef std::future ListThingRegistrationTaskReportsOutcomeCallable; typedef std::future ListThingRegistrationTasksOutcomeCallable; typedef std::future ListThingTypesOutcomeCallable; @@ -1111,6 +1122,7 @@ namespace Aws typedef std::future UpdateThingOutcomeCallable; typedef std::future UpdateThingGroupOutcomeCallable; typedef std::future UpdateThingGroupsForThingOutcomeCallable; + typedef std::future UpdateThingTypeOutcomeCallable; typedef std::future UpdateTopicRuleDestinationOutcomeCallable; typedef std::future ValidateSecurityProfileBehaviorsOutcomeCallable; /* End of service model Outcome callable definitions */ @@ -1294,6 +1306,7 @@ namespace Aws typedef std::function&) > ListPoliciesResponseReceivedHandler; typedef std::function&) > ListPolicyVersionsResponseReceivedHandler; typedef std::function&) > ListPrincipalThingsResponseReceivedHandler; + typedef std::function&) > ListPrincipalThingsV2ResponseReceivedHandler; typedef std::function&) > ListProvisioningTemplateVersionsResponseReceivedHandler; typedef std::function&) > ListProvisioningTemplatesResponseReceivedHandler; typedef std::function&) > ListRelatedResourcesForAuditFindingResponseReceivedHandler; @@ -1309,6 +1322,7 @@ namespace Aws typedef std::function&) > ListThingGroupsResponseReceivedHandler; typedef std::function&) > ListThingGroupsForThingResponseReceivedHandler; typedef std::function&) > ListThingPrincipalsResponseReceivedHandler; + typedef std::function&) > ListThingPrincipalsV2ResponseReceivedHandler; typedef std::function&) > ListThingRegistrationTaskReportsResponseReceivedHandler; typedef std::function&) > ListThingRegistrationTasksResponseReceivedHandler; typedef std::function&) > ListThingTypesResponseReceivedHandler; @@ -1371,6 +1385,7 @@ namespace Aws typedef std::function&) > UpdateThingResponseReceivedHandler; typedef std::function&) > UpdateThingGroupResponseReceivedHandler; typedef std::function&) > UpdateThingGroupsForThingResponseReceivedHandler; + typedef std::function&) > UpdateThingTypeResponseReceivedHandler; typedef std::function&) > UpdateTopicRuleDestinationResponseReceivedHandler; typedef std::function&) > ValidateSecurityProfileBehaviorsResponseReceivedHandler; /* End of service model async handlers definitions */ diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/AttachThingPrincipalRequest.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/AttachThingPrincipalRequest.h index e2a9299bea1..c632a10a634 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/AttachThingPrincipalRequest.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/AttachThingPrincipalRequest.h @@ -7,10 +7,15 @@ #include #include #include +#include #include namespace Aws { +namespace Http +{ + class URI; +} //namespace Http namespace IoT { namespace Model @@ -35,6 +40,8 @@ namespace Model AWS_IOT_API Aws::String SerializePayload() const override; + AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + AWS_IOT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; @@ -66,6 +73,24 @@ namespace Model inline AttachThingPrincipalRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;} inline AttachThingPrincipalRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;} ///@} + + ///@{ + /** + *

    The type of the relation you want to specify when you attach a principal to a + * thing.

    • EXCLUSIVE_THING - Attaches the specified + * principal to the specified thing, exclusively. The thing will be the only thing + * that’s attached to the principal.

    • + * NON_EXCLUSIVE_THING - Attaches the specified principal to the + * specified thing. Multiple things can be attached to the principal.

    • + *
    + */ + inline const ThingPrincipalType& GetThingPrincipalType() const{ return m_thingPrincipalType; } + inline bool ThingPrincipalTypeHasBeenSet() const { return m_thingPrincipalTypeHasBeenSet; } + inline void SetThingPrincipalType(const ThingPrincipalType& value) { m_thingPrincipalTypeHasBeenSet = true; m_thingPrincipalType = value; } + inline void SetThingPrincipalType(ThingPrincipalType&& value) { m_thingPrincipalTypeHasBeenSet = true; m_thingPrincipalType = std::move(value); } + inline AttachThingPrincipalRequest& WithThingPrincipalType(const ThingPrincipalType& value) { SetThingPrincipalType(value); return *this;} + inline AttachThingPrincipalRequest& WithThingPrincipalType(ThingPrincipalType&& value) { SetThingPrincipalType(std::move(value)); return *this;} + ///@} private: Aws::String m_thingName; @@ -73,6 +98,9 @@ namespace Model Aws::String m_principal; bool m_principalHasBeenSet = false; + + ThingPrincipalType m_thingPrincipalType; + bool m_thingPrincipalTypeHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/DescribeThingTypeResult.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/DescribeThingTypeResult.h index 1defe03ec23..6b7245edac6 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/DescribeThingTypeResult.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/DescribeThingTypeResult.h @@ -81,7 +81,8 @@ namespace Model ///@{ /** *

    The ThingTypeProperties contains information about the thing type including - * description, and a list of searchable thing attribute names.

    + * description, a list of searchable thing attribute names, and MQTT5 + * configuration.

    */ inline const ThingTypeProperties& GetThingTypeProperties() const{ return m_thingTypeProperties; } inline void SetThingTypeProperties(const ThingTypeProperties& value) { m_thingTypeProperties = value; } diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListPrincipalThingsV2Request.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListPrincipalThingsV2Request.h new file mode 100644 index 00000000000..16c21442156 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListPrincipalThingsV2Request.h @@ -0,0 +1,121 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoT +{ +namespace Model +{ + + /** + */ + class ListPrincipalThingsV2Request : public IoTRequest + { + public: + AWS_IOT_API ListPrincipalThingsV2Request(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListPrincipalThingsV2"; } + + AWS_IOT_API Aws::String SerializePayload() const override; + + AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + AWS_IOT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListPrincipalThingsV2Request& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListPrincipalThingsV2Request& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListPrincipalThingsV2Request& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of results to return in this operation.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListPrincipalThingsV2Request& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

    The principal. A principal can be an X.509 certificate or an Amazon Cognito + * ID.

    + */ + inline const Aws::String& GetPrincipal() const{ return m_principal; } + inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; } + inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; } + inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); } + inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); } + inline ListPrincipalThingsV2Request& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;} + inline ListPrincipalThingsV2Request& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;} + inline ListPrincipalThingsV2Request& WithPrincipal(const char* value) { SetPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

    The type of the relation you want to filter in the response. If no value is + * provided in this field, the response will list all things, including both the + * EXCLUSIVE_THING and NON_EXCLUSIVE_THING attachment + * types.

    • EXCLUSIVE_THING - Attaches the specified + * principal to the specified thing, exclusively. The thing will be the only thing + * that’s attached to the principal.

    • + * NON_EXCLUSIVE_THING - Attaches the specified principal to the + * specified thing. Multiple things can be attached to the principal.

    • + *
    + */ + inline const ThingPrincipalType& GetThingPrincipalType() const{ return m_thingPrincipalType; } + inline bool ThingPrincipalTypeHasBeenSet() const { return m_thingPrincipalTypeHasBeenSet; } + inline void SetThingPrincipalType(const ThingPrincipalType& value) { m_thingPrincipalTypeHasBeenSet = true; m_thingPrincipalType = value; } + inline void SetThingPrincipalType(ThingPrincipalType&& value) { m_thingPrincipalTypeHasBeenSet = true; m_thingPrincipalType = std::move(value); } + inline ListPrincipalThingsV2Request& WithThingPrincipalType(const ThingPrincipalType& value) { SetThingPrincipalType(value); return *this;} + inline ListPrincipalThingsV2Request& WithThingPrincipalType(ThingPrincipalType&& value) { SetThingPrincipalType(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_principal; + bool m_principalHasBeenSet = false; + + ThingPrincipalType m_thingPrincipalType; + bool m_thingPrincipalTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListPrincipalThingsV2Result.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListPrincipalThingsV2Result.h new file mode 100644 index 00000000000..3f4e4540849 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListPrincipalThingsV2Result.h @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class ListPrincipalThingsV2Result + { + public: + AWS_IOT_API ListPrincipalThingsV2Result(); + AWS_IOT_API ListPrincipalThingsV2Result(const Aws::AmazonWebServiceResult& result); + AWS_IOT_API ListPrincipalThingsV2Result& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    A list of thingPrincipalObject that represents the principal and + * the type of relation it has with the thing.

    + */ + inline const Aws::Vector& GetPrincipalThingObjects() const{ return m_principalThingObjects; } + inline void SetPrincipalThingObjects(const Aws::Vector& value) { m_principalThingObjects = value; } + inline void SetPrincipalThingObjects(Aws::Vector&& value) { m_principalThingObjects = std::move(value); } + inline ListPrincipalThingsV2Result& WithPrincipalThingObjects(const Aws::Vector& value) { SetPrincipalThingObjects(value); return *this;} + inline ListPrincipalThingsV2Result& WithPrincipalThingObjects(Aws::Vector&& value) { SetPrincipalThingObjects(std::move(value)); return *this;} + inline ListPrincipalThingsV2Result& AddPrincipalThingObjects(const PrincipalThingObject& value) { m_principalThingObjects.push_back(value); return *this; } + inline ListPrincipalThingsV2Result& AddPrincipalThingObjects(PrincipalThingObject&& value) { m_principalThingObjects.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The token to use to get the next set of results, or null if there are + * no additional results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListPrincipalThingsV2Result& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListPrincipalThingsV2Result& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListPrincipalThingsV2Result& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListPrincipalThingsV2Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListPrincipalThingsV2Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListPrincipalThingsV2Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_principalThingObjects; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListThingPrincipalsV2Request.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListThingPrincipalsV2Request.h new file mode 100644 index 00000000000..ea57e3b2a17 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListThingPrincipalsV2Request.h @@ -0,0 +1,118 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoT +{ +namespace Model +{ + + /** + */ + class ListThingPrincipalsV2Request : public IoTRequest + { + public: + AWS_IOT_API ListThingPrincipalsV2Request(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListThingPrincipalsV2"; } + + AWS_IOT_API Aws::String SerializePayload() const override; + + AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListThingPrincipalsV2Request& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListThingPrincipalsV2Request& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListThingPrincipalsV2Request& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of results to return in this operation.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListThingPrincipalsV2Request& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

    The name of the thing.

    + */ + inline const Aws::String& GetThingName() const{ return m_thingName; } + inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; } + inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; } + inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); } + inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); } + inline ListThingPrincipalsV2Request& WithThingName(const Aws::String& value) { SetThingName(value); return *this;} + inline ListThingPrincipalsV2Request& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;} + inline ListThingPrincipalsV2Request& WithThingName(const char* value) { SetThingName(value); return *this;} + ///@} + + ///@{ + /** + *

    The type of the relation you want to filter in the response. If no value is + * provided in this field, the response will list all principals, including both + * the EXCLUSIVE_THING and NON_EXCLUSIVE_THING attachment + * types.

    • EXCLUSIVE_THING - Attaches the specified + * principal to the specified thing, exclusively. The thing will be the only thing + * that’s attached to the principal.

    • + * NON_EXCLUSIVE_THING - Attaches the specified principal to the + * specified thing. Multiple things can be attached to the principal.

    • + *
    + */ + inline const ThingPrincipalType& GetThingPrincipalType() const{ return m_thingPrincipalType; } + inline bool ThingPrincipalTypeHasBeenSet() const { return m_thingPrincipalTypeHasBeenSet; } + inline void SetThingPrincipalType(const ThingPrincipalType& value) { m_thingPrincipalTypeHasBeenSet = true; m_thingPrincipalType = value; } + inline void SetThingPrincipalType(ThingPrincipalType&& value) { m_thingPrincipalTypeHasBeenSet = true; m_thingPrincipalType = std::move(value); } + inline ListThingPrincipalsV2Request& WithThingPrincipalType(const ThingPrincipalType& value) { SetThingPrincipalType(value); return *this;} + inline ListThingPrincipalsV2Request& WithThingPrincipalType(ThingPrincipalType&& value) { SetThingPrincipalType(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_thingName; + bool m_thingNameHasBeenSet = false; + + ThingPrincipalType m_thingPrincipalType; + bool m_thingPrincipalTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListThingPrincipalsV2Result.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListThingPrincipalsV2Result.h new file mode 100644 index 00000000000..54f599317a6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ListThingPrincipalsV2Result.h @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class ListThingPrincipalsV2Result + { + public: + AWS_IOT_API ListThingPrincipalsV2Result(); + AWS_IOT_API ListThingPrincipalsV2Result(const Aws::AmazonWebServiceResult& result); + AWS_IOT_API ListThingPrincipalsV2Result& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    A list of thingPrincipalObject that represents the principal and + * the type of relation it has with the thing.

    + */ + inline const Aws::Vector& GetThingPrincipalObjects() const{ return m_thingPrincipalObjects; } + inline void SetThingPrincipalObjects(const Aws::Vector& value) { m_thingPrincipalObjects = value; } + inline void SetThingPrincipalObjects(Aws::Vector&& value) { m_thingPrincipalObjects = std::move(value); } + inline ListThingPrincipalsV2Result& WithThingPrincipalObjects(const Aws::Vector& value) { SetThingPrincipalObjects(value); return *this;} + inline ListThingPrincipalsV2Result& WithThingPrincipalObjects(Aws::Vector&& value) { SetThingPrincipalObjects(std::move(value)); return *this;} + inline ListThingPrincipalsV2Result& AddThingPrincipalObjects(const ThingPrincipalObject& value) { m_thingPrincipalObjects.push_back(value); return *this; } + inline ListThingPrincipalsV2Result& AddThingPrincipalObjects(ThingPrincipalObject&& value) { m_thingPrincipalObjects.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The token to use to get the next set of results, or null if there are + * no additional results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListThingPrincipalsV2Result& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListThingPrincipalsV2Result& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListThingPrincipalsV2Result& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListThingPrincipalsV2Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListThingPrincipalsV2Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListThingPrincipalsV2Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_thingPrincipalObjects; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/Mqtt5Configuration.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/Mqtt5Configuration.h new file mode 100644 index 00000000000..0bd95c04718 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/Mqtt5Configuration.h @@ -0,0 +1,64 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

    The configuration to add user-defined properties to enrich MQTT 5 + * messages.

    See Also:

    AWS + * API Reference

    + */ + class Mqtt5Configuration + { + public: + AWS_IOT_API Mqtt5Configuration(); + AWS_IOT_API Mqtt5Configuration(Aws::Utils::Json::JsonView jsonValue); + AWS_IOT_API Mqtt5Configuration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    An object that represents the propagating thing attributes and the connection + * attributes.

    + */ + inline const Aws::Vector& GetPropagatingAttributes() const{ return m_propagatingAttributes; } + inline bool PropagatingAttributesHasBeenSet() const { return m_propagatingAttributesHasBeenSet; } + inline void SetPropagatingAttributes(const Aws::Vector& value) { m_propagatingAttributesHasBeenSet = true; m_propagatingAttributes = value; } + inline void SetPropagatingAttributes(Aws::Vector&& value) { m_propagatingAttributesHasBeenSet = true; m_propagatingAttributes = std::move(value); } + inline Mqtt5Configuration& WithPropagatingAttributes(const Aws::Vector& value) { SetPropagatingAttributes(value); return *this;} + inline Mqtt5Configuration& WithPropagatingAttributes(Aws::Vector&& value) { SetPropagatingAttributes(std::move(value)); return *this;} + inline Mqtt5Configuration& AddPropagatingAttributes(const PropagatingAttribute& value) { m_propagatingAttributesHasBeenSet = true; m_propagatingAttributes.push_back(value); return *this; } + inline Mqtt5Configuration& AddPropagatingAttributes(PropagatingAttribute&& value) { m_propagatingAttributesHasBeenSet = true; m_propagatingAttributes.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::Vector m_propagatingAttributes; + bool m_propagatingAttributesHasBeenSet = false; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/PrincipalThingObject.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/PrincipalThingObject.h new file mode 100644 index 00000000000..3b4b0fa85e2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/PrincipalThingObject.h @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

    An object that represents the thing and the type of relation it has with the + * principal.

    See Also:

    AWS + * API Reference

    + */ + class PrincipalThingObject + { + public: + AWS_IOT_API PrincipalThingObject(); + AWS_IOT_API PrincipalThingObject(Aws::Utils::Json::JsonView jsonValue); + AWS_IOT_API PrincipalThingObject& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The name of the thing.

    + */ + inline const Aws::String& GetThingName() const{ return m_thingName; } + inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; } + inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; } + inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); } + inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); } + inline PrincipalThingObject& WithThingName(const Aws::String& value) { SetThingName(value); return *this;} + inline PrincipalThingObject& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;} + inline PrincipalThingObject& WithThingName(const char* value) { SetThingName(value); return *this;} + ///@} + + ///@{ + /** + *

    The type of the relation you want to specify when you attach a principal to a + * thing. The value defaults to NON_EXCLUSIVE_THING.

    • + * EXCLUSIVE_THING - Attaches the specified principal to the specified + * thing, exclusively. The thing will be the only thing that’s attached to the + * principal.

    • NON_EXCLUSIVE_THING - + * Attaches the specified principal to the specified thing. Multiple things can be + * attached to the principal.

    + */ + inline const ThingPrincipalType& GetThingPrincipalType() const{ return m_thingPrincipalType; } + inline bool ThingPrincipalTypeHasBeenSet() const { return m_thingPrincipalTypeHasBeenSet; } + inline void SetThingPrincipalType(const ThingPrincipalType& value) { m_thingPrincipalTypeHasBeenSet = true; m_thingPrincipalType = value; } + inline void SetThingPrincipalType(ThingPrincipalType&& value) { m_thingPrincipalTypeHasBeenSet = true; m_thingPrincipalType = std::move(value); } + inline PrincipalThingObject& WithThingPrincipalType(const ThingPrincipalType& value) { SetThingPrincipalType(value); return *this;} + inline PrincipalThingObject& WithThingPrincipalType(ThingPrincipalType&& value) { SetThingPrincipalType(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_thingName; + bool m_thingNameHasBeenSet = false; + + ThingPrincipalType m_thingPrincipalType; + bool m_thingPrincipalTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/PropagatingAttribute.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/PropagatingAttribute.h new file mode 100644 index 00000000000..fa6948b40f4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/PropagatingAttribute.h @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

    An object that represents the connection attribute, thing attribute, and the + * user property key.

    See Also:

    AWS + * API Reference

    + */ + class PropagatingAttribute + { + public: + AWS_IOT_API PropagatingAttribute(); + AWS_IOT_API PropagatingAttribute(Aws::Utils::Json::JsonView jsonValue); + AWS_IOT_API PropagatingAttribute& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The key of the user property key-value pair.

    + */ + inline const Aws::String& GetUserPropertyKey() const{ return m_userPropertyKey; } + inline bool UserPropertyKeyHasBeenSet() const { return m_userPropertyKeyHasBeenSet; } + inline void SetUserPropertyKey(const Aws::String& value) { m_userPropertyKeyHasBeenSet = true; m_userPropertyKey = value; } + inline void SetUserPropertyKey(Aws::String&& value) { m_userPropertyKeyHasBeenSet = true; m_userPropertyKey = std::move(value); } + inline void SetUserPropertyKey(const char* value) { m_userPropertyKeyHasBeenSet = true; m_userPropertyKey.assign(value); } + inline PropagatingAttribute& WithUserPropertyKey(const Aws::String& value) { SetUserPropertyKey(value); return *this;} + inline PropagatingAttribute& WithUserPropertyKey(Aws::String&& value) { SetUserPropertyKey(std::move(value)); return *this;} + inline PropagatingAttribute& WithUserPropertyKey(const char* value) { SetUserPropertyKey(value); return *this;} + ///@} + + ///@{ + /** + *

    The user-defined thing attribute that is propagating for MQTT 5 message + * enrichment.

    + */ + inline const Aws::String& GetThingAttribute() const{ return m_thingAttribute; } + inline bool ThingAttributeHasBeenSet() const { return m_thingAttributeHasBeenSet; } + inline void SetThingAttribute(const Aws::String& value) { m_thingAttributeHasBeenSet = true; m_thingAttribute = value; } + inline void SetThingAttribute(Aws::String&& value) { m_thingAttributeHasBeenSet = true; m_thingAttribute = std::move(value); } + inline void SetThingAttribute(const char* value) { m_thingAttributeHasBeenSet = true; m_thingAttribute.assign(value); } + inline PropagatingAttribute& WithThingAttribute(const Aws::String& value) { SetThingAttribute(value); return *this;} + inline PropagatingAttribute& WithThingAttribute(Aws::String&& value) { SetThingAttribute(std::move(value)); return *this;} + inline PropagatingAttribute& WithThingAttribute(const char* value) { SetThingAttribute(value); return *this;} + ///@} + + ///@{ + /** + *

    The attribute associated with the connection between a device and Amazon Web + * Services IoT Core.

    + */ + inline const Aws::String& GetConnectionAttribute() const{ return m_connectionAttribute; } + inline bool ConnectionAttributeHasBeenSet() const { return m_connectionAttributeHasBeenSet; } + inline void SetConnectionAttribute(const Aws::String& value) { m_connectionAttributeHasBeenSet = true; m_connectionAttribute = value; } + inline void SetConnectionAttribute(Aws::String&& value) { m_connectionAttributeHasBeenSet = true; m_connectionAttribute = std::move(value); } + inline void SetConnectionAttribute(const char* value) { m_connectionAttributeHasBeenSet = true; m_connectionAttribute.assign(value); } + inline PropagatingAttribute& WithConnectionAttribute(const Aws::String& value) { SetConnectionAttribute(value); return *this;} + inline PropagatingAttribute& WithConnectionAttribute(Aws::String&& value) { SetConnectionAttribute(std::move(value)); return *this;} + inline PropagatingAttribute& WithConnectionAttribute(const char* value) { SetConnectionAttribute(value); return *this;} + ///@} + private: + + Aws::String m_userPropertyKey; + bool m_userPropertyKeyHasBeenSet = false; + + Aws::String m_thingAttribute; + bool m_thingAttributeHasBeenSet = false; + + Aws::String m_connectionAttribute; + bool m_connectionAttributeHasBeenSet = false; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ServerCertificateConfig.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ServerCertificateConfig.h index 6a3465ccd33..c4aa87a4aa4 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ServerCertificateConfig.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ServerCertificateConfig.h @@ -5,6 +5,8 @@ #pragma once #include +#include +#include namespace Aws { @@ -40,19 +42,67 @@ namespace Model *

    A Boolean value that indicates whether Online Certificate Status Protocol * (OCSP) server certificate check is enabled or not.

    For more information, * see Configuring - * OCSP server-certificate stapling in domain configuration from Amazon Web - * Services IoT Core Developer Guide.

    + * href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-custom-endpoints-cert-config.html"> + * Server certificate configuration for OCSP stapling from Amazon Web Services + * IoT Core Developer Guide.

    */ inline bool GetEnableOCSPCheck() const{ return m_enableOCSPCheck; } inline bool EnableOCSPCheckHasBeenSet() const { return m_enableOCSPCheckHasBeenSet; } inline void SetEnableOCSPCheck(bool value) { m_enableOCSPCheckHasBeenSet = true; m_enableOCSPCheck = value; } inline ServerCertificateConfig& WithEnableOCSPCheck(bool value) { SetEnableOCSPCheck(value); return *this;} ///@} + + ///@{ + /** + *

    The Amazon Resource Name (ARN) for a Lambda function that acts as a Request + * for Comments (RFC) 6960-compliant Online Certificate Status Protocol (OCSP) + * responder, supporting basic OCSP responses. The Lambda function accepts a JSON + * string that's Base64-encoded. Therefore, you must convert your OCSP response, + * which is typically in the Distinguished Encoding Rules (DER) format, into a JSON + * string that's Base64-encoded. The Lambda function's response is also a + * Base64-encoded JSON string and the response payload must not exceed 8 kilobytes + * (KiB) in size. The Lambda function must be in the same Amazon Web Services + * region and account as the domain configuration.

    + */ + inline const Aws::String& GetOcspLambdaArn() const{ return m_ocspLambdaArn; } + inline bool OcspLambdaArnHasBeenSet() const { return m_ocspLambdaArnHasBeenSet; } + inline void SetOcspLambdaArn(const Aws::String& value) { m_ocspLambdaArnHasBeenSet = true; m_ocspLambdaArn = value; } + inline void SetOcspLambdaArn(Aws::String&& value) { m_ocspLambdaArnHasBeenSet = true; m_ocspLambdaArn = std::move(value); } + inline void SetOcspLambdaArn(const char* value) { m_ocspLambdaArnHasBeenSet = true; m_ocspLambdaArn.assign(value); } + inline ServerCertificateConfig& WithOcspLambdaArn(const Aws::String& value) { SetOcspLambdaArn(value); return *this;} + inline ServerCertificateConfig& WithOcspLambdaArn(Aws::String&& value) { SetOcspLambdaArn(std::move(value)); return *this;} + inline ServerCertificateConfig& WithOcspLambdaArn(const char* value) { SetOcspLambdaArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The Amazon Resource Name (ARN) for an X.509 certificate stored in Amazon Web + * Services Certificate Manager (ACM). If provided, Amazon Web Services IoT Core + * will use this certificate to validate the signature of the received OCSP + * response. The OCSP responder must sign responses using either this authorized + * responder certificate or the issuing certificate, depending on whether the ARN + * is provided or not. The certificate must be in the same Amazon Web Services + * region and account as the domain configuration.

    + */ + inline const Aws::String& GetOcspAuthorizedResponderArn() const{ return m_ocspAuthorizedResponderArn; } + inline bool OcspAuthorizedResponderArnHasBeenSet() const { return m_ocspAuthorizedResponderArnHasBeenSet; } + inline void SetOcspAuthorizedResponderArn(const Aws::String& value) { m_ocspAuthorizedResponderArnHasBeenSet = true; m_ocspAuthorizedResponderArn = value; } + inline void SetOcspAuthorizedResponderArn(Aws::String&& value) { m_ocspAuthorizedResponderArnHasBeenSet = true; m_ocspAuthorizedResponderArn = std::move(value); } + inline void SetOcspAuthorizedResponderArn(const char* value) { m_ocspAuthorizedResponderArnHasBeenSet = true; m_ocspAuthorizedResponderArn.assign(value); } + inline ServerCertificateConfig& WithOcspAuthorizedResponderArn(const Aws::String& value) { SetOcspAuthorizedResponderArn(value); return *this;} + inline ServerCertificateConfig& WithOcspAuthorizedResponderArn(Aws::String&& value) { SetOcspAuthorizedResponderArn(std::move(value)); return *this;} + inline ServerCertificateConfig& WithOcspAuthorizedResponderArn(const char* value) { SetOcspAuthorizedResponderArn(value); return *this;} + ///@} private: bool m_enableOCSPCheck; bool m_enableOCSPCheckHasBeenSet = false; + + Aws::String m_ocspLambdaArn; + bool m_ocspLambdaArnHasBeenSet = false; + + Aws::String m_ocspAuthorizedResponderArn; + bool m_ocspAuthorizedResponderArnHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingPrincipalObject.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingPrincipalObject.h new file mode 100644 index 00000000000..8d12153f1a2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingPrincipalObject.h @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

    An object that represents the principal and the type of relation it has with + * the thing.

    See Also:

    AWS + * API Reference

    + */ + class ThingPrincipalObject + { + public: + AWS_IOT_API ThingPrincipalObject(); + AWS_IOT_API ThingPrincipalObject(Aws::Utils::Json::JsonView jsonValue); + AWS_IOT_API ThingPrincipalObject& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The principal of the thing principal object.

    + */ + inline const Aws::String& GetPrincipal() const{ return m_principal; } + inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; } + inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; } + inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); } + inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); } + inline ThingPrincipalObject& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;} + inline ThingPrincipalObject& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;} + inline ThingPrincipalObject& WithPrincipal(const char* value) { SetPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

    The type of the relation you want to specify when you attach a principal to a + * thing. The value defaults to NON_EXCLUSIVE_THING.

    • + * EXCLUSIVE_THING - Attaches the specified principal to the specified + * thing, exclusively. The thing will be the only thing that’s attached to the + * principal.

    • NON_EXCLUSIVE_THING - + * Attaches the specified principal to the specified thing. Multiple things can be + * attached to the principal.

    + */ + inline const ThingPrincipalType& GetThingPrincipalType() const{ return m_thingPrincipalType; } + inline bool ThingPrincipalTypeHasBeenSet() const { return m_thingPrincipalTypeHasBeenSet; } + inline void SetThingPrincipalType(const ThingPrincipalType& value) { m_thingPrincipalTypeHasBeenSet = true; m_thingPrincipalType = value; } + inline void SetThingPrincipalType(ThingPrincipalType&& value) { m_thingPrincipalTypeHasBeenSet = true; m_thingPrincipalType = std::move(value); } + inline ThingPrincipalObject& WithThingPrincipalType(const ThingPrincipalType& value) { SetThingPrincipalType(value); return *this;} + inline ThingPrincipalObject& WithThingPrincipalType(ThingPrincipalType&& value) { SetThingPrincipalType(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_principal; + bool m_principalHasBeenSet = false; + + ThingPrincipalType m_thingPrincipalType; + bool m_thingPrincipalTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingPrincipalType.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingPrincipalType.h new file mode 100644 index 00000000000..5bdb5b01532 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingPrincipalType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + enum class ThingPrincipalType + { + NOT_SET, + EXCLUSIVE_THING, + NON_EXCLUSIVE_THING + }; + +namespace ThingPrincipalTypeMapper +{ +AWS_IOT_API ThingPrincipalType GetThingPrincipalTypeForName(const Aws::String& name); + +AWS_IOT_API Aws::String GetNameForThingPrincipalType(ThingPrincipalType value); +} // namespace ThingPrincipalTypeMapper +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingTypeProperties.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingTypeProperties.h index b45ae398271..ad67d11ad6f 100644 --- a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingTypeProperties.h +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingTypeProperties.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -68,6 +69,19 @@ namespace Model inline ThingTypeProperties& AddSearchableAttributes(Aws::String&& value) { m_searchableAttributesHasBeenSet = true; m_searchableAttributes.push_back(std::move(value)); return *this; } inline ThingTypeProperties& AddSearchableAttributes(const char* value) { m_searchableAttributesHasBeenSet = true; m_searchableAttributes.push_back(value); return *this; } ///@} + + ///@{ + /** + *

    The configuration to add user-defined properties to enrich MQTT 5 + * messages.

    + */ + inline const Mqtt5Configuration& GetMqtt5Configuration() const{ return m_mqtt5Configuration; } + inline bool Mqtt5ConfigurationHasBeenSet() const { return m_mqtt5ConfigurationHasBeenSet; } + inline void SetMqtt5Configuration(const Mqtt5Configuration& value) { m_mqtt5ConfigurationHasBeenSet = true; m_mqtt5Configuration = value; } + inline void SetMqtt5Configuration(Mqtt5Configuration&& value) { m_mqtt5ConfigurationHasBeenSet = true; m_mqtt5Configuration = std::move(value); } + inline ThingTypeProperties& WithMqtt5Configuration(const Mqtt5Configuration& value) { SetMqtt5Configuration(value); return *this;} + inline ThingTypeProperties& WithMqtt5Configuration(Mqtt5Configuration&& value) { SetMqtt5Configuration(std::move(value)); return *this;} + ///@} private: Aws::String m_thingTypeDescription; @@ -75,6 +89,9 @@ namespace Model Aws::Vector m_searchableAttributes; bool m_searchableAttributesHasBeenSet = false; + + Mqtt5Configuration m_mqtt5Configuration; + bool m_mqtt5ConfigurationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdateThingTypeRequest.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdateThingTypeRequest.h new file mode 100644 index 00000000000..cb7692e9016 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdateThingTypeRequest.h @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + + /** + */ + class UpdateThingTypeRequest : public IoTRequest + { + public: + AWS_IOT_API UpdateThingTypeRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateThingType"; } + + AWS_IOT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The name of a thing type.

    + */ + inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; } + inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; } + inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; } + inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::move(value); } + inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); } + inline UpdateThingTypeRequest& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;} + inline UpdateThingTypeRequest& WithThingTypeName(Aws::String&& value) { SetThingTypeName(std::move(value)); return *this;} + inline UpdateThingTypeRequest& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;} + ///@} + + ///@{ + + inline const ThingTypeProperties& GetThingTypeProperties() const{ return m_thingTypeProperties; } + inline bool ThingTypePropertiesHasBeenSet() const { return m_thingTypePropertiesHasBeenSet; } + inline void SetThingTypeProperties(const ThingTypeProperties& value) { m_thingTypePropertiesHasBeenSet = true; m_thingTypeProperties = value; } + inline void SetThingTypeProperties(ThingTypeProperties&& value) { m_thingTypePropertiesHasBeenSet = true; m_thingTypeProperties = std::move(value); } + inline UpdateThingTypeRequest& WithThingTypeProperties(const ThingTypeProperties& value) { SetThingTypeProperties(value); return *this;} + inline UpdateThingTypeRequest& WithThingTypeProperties(ThingTypeProperties&& value) { SetThingTypeProperties(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_thingTypeName; + bool m_thingTypeNameHasBeenSet = false; + + ThingTypeProperties m_thingTypeProperties; + bool m_thingTypePropertiesHasBeenSet = false; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdateThingTypeResult.h b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdateThingTypeResult.h new file mode 100644 index 00000000000..eb8b6c8815b --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/include/aws/iot/model/UpdateThingTypeResult.h @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class UpdateThingTypeResult + { + public: + AWS_IOT_API UpdateThingTypeResult(); + AWS_IOT_API UpdateThingTypeResult(const Aws::AmazonWebServiceResult& result); + AWS_IOT_API UpdateThingTypeResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline UpdateThingTypeResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline UpdateThingTypeResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline UpdateThingTypeResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/source/IoTClient1.cpp b/generated/src/aws-cpp-sdk-iot/source/IoTClient1.cpp index b11fce3bbd1..56327ef1d4f 100644 --- a/generated/src/aws-cpp-sdk-iot/source/IoTClient1.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/IoTClient1.cpp @@ -96,6 +96,7 @@ #include #include #include +#include #include #include #include @@ -111,6 +112,7 @@ #include #include #include +#include #include #include #include @@ -119,8 +121,6 @@ #include #include #include -#include -#include #include @@ -2497,6 +2497,38 @@ ListPrincipalThingsOutcome IoTClient::ListPrincipalThings(const ListPrincipalThi {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListPrincipalThingsV2Outcome IoTClient::ListPrincipalThingsV2(const ListPrincipalThingsV2Request& request) const +{ + AWS_OPERATION_GUARD(ListPrincipalThingsV2); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListPrincipalThingsV2, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.PrincipalHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListPrincipalThingsV2", "Required field: Principal, is not set"); + return ListPrincipalThingsV2Outcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Principal]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListPrincipalThingsV2, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListPrincipalThingsV2, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListPrincipalThingsV2", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListPrincipalThingsV2Outcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListPrincipalThingsV2, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/principals/things-v2"); + return ListPrincipalThingsV2Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListProvisioningTemplateVersionsOutcome IoTClient::ListProvisioningTemplateVersions(const ListProvisioningTemplateVersionsRequest& request) const { AWS_OPERATION_GUARD(ListProvisioningTemplateVersions); @@ -2965,6 +2997,40 @@ ListThingPrincipalsOutcome IoTClient::ListThingPrincipals(const ListThingPrincip {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListThingPrincipalsV2Outcome IoTClient::ListThingPrincipalsV2(const ListThingPrincipalsV2Request& request) const +{ + AWS_OPERATION_GUARD(ListThingPrincipalsV2); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListThingPrincipalsV2, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ThingNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListThingPrincipalsV2", "Required field: ThingName, is not set"); + return ListThingPrincipalsV2Outcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingName]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListThingPrincipalsV2, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListThingPrincipalsV2, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListThingPrincipalsV2", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListThingPrincipalsV2Outcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListThingPrincipalsV2, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/things/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingName()); + endpointResolutionOutcome.GetResult().AddPathSegments("/principals-v2"); + return ListThingPrincipalsV2Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListThingRegistrationTaskReportsOutcome IoTClient::ListThingRegistrationTaskReports(const ListThingRegistrationTaskReportsRequest& request) const { AWS_OPERATION_GUARD(ListThingRegistrationTaskReports); @@ -3207,67 +3273,3 @@ ListTopicRulesOutcome IoTClient::ListTopicRules(const ListTopicRulesRequest& req {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListV2LoggingLevelsOutcome IoTClient::ListV2LoggingLevels(const ListV2LoggingLevelsRequest& request) const -{ - AWS_OPERATION_GUARD(ListV2LoggingLevels); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListV2LoggingLevels, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListV2LoggingLevels, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListV2LoggingLevels, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListV2LoggingLevels", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListV2LoggingLevelsOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListV2LoggingLevels, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/v2LoggingLevel"); - return ListV2LoggingLevelsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -ListViolationEventsOutcome IoTClient::ListViolationEvents(const ListViolationEventsRequest& request) const -{ - AWS_OPERATION_GUARD(ListViolationEvents); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListViolationEvents, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.StartTimeHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ListViolationEvents", "Required field: StartTime, is not set"); - return ListViolationEventsOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [StartTime]", false)); - } - if (!request.EndTimeHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ListViolationEvents", "Required field: EndTime, is not set"); - return ListViolationEventsOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [EndTime]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListViolationEvents, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListViolationEvents, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListViolationEvents", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListViolationEventsOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListViolationEvents, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/violation-events"); - return ListViolationEventsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - diff --git a/generated/src/aws-cpp-sdk-iot/source/IoTClient2.cpp b/generated/src/aws-cpp-sdk-iot/source/IoTClient2.cpp index b653ed1c72f..0e34392d9d1 100644 --- a/generated/src/aws-cpp-sdk-iot/source/IoTClient2.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/IoTClient2.cpp @@ -21,6 +21,8 @@ #include #include #include +#include +#include #include #include #include @@ -73,6 +75,7 @@ #include #include #include +#include #include #include @@ -90,6 +93,70 @@ using namespace smithy::components::tracing; using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; +ListV2LoggingLevelsOutcome IoTClient::ListV2LoggingLevels(const ListV2LoggingLevelsRequest& request) const +{ + AWS_OPERATION_GUARD(ListV2LoggingLevels); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListV2LoggingLevels, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListV2LoggingLevels, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListV2LoggingLevels, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListV2LoggingLevels", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListV2LoggingLevelsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListV2LoggingLevels, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v2LoggingLevel"); + return ListV2LoggingLevelsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListViolationEventsOutcome IoTClient::ListViolationEvents(const ListViolationEventsRequest& request) const +{ + AWS_OPERATION_GUARD(ListViolationEvents); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListViolationEvents, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.StartTimeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListViolationEvents", "Required field: StartTime, is not set"); + return ListViolationEventsOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [StartTime]", false)); + } + if (!request.EndTimeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListViolationEvents", "Required field: EndTime, is not set"); + return ListViolationEventsOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [EndTime]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListViolationEvents, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListViolationEvents, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListViolationEvents", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListViolationEventsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListViolationEvents, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/violation-events"); + return ListViolationEventsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + PutVerificationStateOnViolationOutcome IoTClient::PutVerificationStateOnViolation(const PutVerificationStateOnViolationRequest& request) const { AWS_OPERATION_GUARD(PutVerificationStateOnViolation); @@ -1700,6 +1767,39 @@ UpdateThingGroupsForThingOutcome IoTClient::UpdateThingGroupsForThing(const Upda {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateThingTypeOutcome IoTClient::UpdateThingType(const UpdateThingTypeRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateThingType); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateThingType, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ThingTypeNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateThingType", "Required field: ThingTypeName, is not set"); + return UpdateThingTypeOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ThingTypeName]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateThingType, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateThingType, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateThingType", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateThingTypeOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateThingType, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/thing-types/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetThingTypeName()); + return UpdateThingTypeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateTopicRuleDestinationOutcome IoTClient::UpdateTopicRuleDestination(const UpdateTopicRuleDestinationRequest& request) const { AWS_OPERATION_GUARD(UpdateTopicRuleDestination); diff --git a/generated/src/aws-cpp-sdk-iot/source/model/AttachThingPrincipalRequest.cpp b/generated/src/aws-cpp-sdk-iot/source/model/AttachThingPrincipalRequest.cpp index f335ef61a24..83bd5d51f2a 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/AttachThingPrincipalRequest.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/AttachThingPrincipalRequest.cpp @@ -5,6 +5,7 @@ #include #include +#include #include #include @@ -12,10 +13,13 @@ using namespace Aws::IoT::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; +using namespace Aws::Http; AttachThingPrincipalRequest::AttachThingPrincipalRequest() : m_thingNameHasBeenSet(false), - m_principalHasBeenSet(false) + m_principalHasBeenSet(false), + m_thingPrincipalType(ThingPrincipalType::NOT_SET), + m_thingPrincipalTypeHasBeenSet(false) { } @@ -39,6 +43,17 @@ Aws::Http::HeaderValueCollection AttachThingPrincipalRequest::GetRequestSpecific } +void AttachThingPrincipalRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_thingPrincipalTypeHasBeenSet) + { + ss << ThingPrincipalTypeMapper::GetNameForThingPrincipalType(m_thingPrincipalType); + uri.AddQueryStringParameter("thingPrincipalType", ss.str()); + ss.str(""); + } + +} diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ListPrincipalThingsV2Request.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ListPrincipalThingsV2Request.cpp new file mode 100644 index 00000000000..55aee582639 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/ListPrincipalThingsV2Request.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListPrincipalThingsV2Request::ListPrincipalThingsV2Request() : + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_principalHasBeenSet(false), + m_thingPrincipalType(ThingPrincipalType::NOT_SET), + m_thingPrincipalTypeHasBeenSet(false) +{ +} + +Aws::String ListPrincipalThingsV2Request::SerializePayload() const +{ + return {}; +} + +Aws::Http::HeaderValueCollection ListPrincipalThingsV2Request::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + Aws::StringStream ss; + if(m_principalHasBeenSet) + { + ss << m_principal; + headers.emplace("x-amzn-principal", ss.str()); + ss.str(""); + } + + return headers; + +} + +void ListPrincipalThingsV2Request::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_thingPrincipalTypeHasBeenSet) + { + ss << ThingPrincipalTypeMapper::GetNameForThingPrincipalType(m_thingPrincipalType); + uri.AddQueryStringParameter("thingPrincipalType", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ListPrincipalThingsV2Result.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ListPrincipalThingsV2Result.cpp new file mode 100644 index 00000000000..cf5458299e3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/ListPrincipalThingsV2Result.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListPrincipalThingsV2Result::ListPrincipalThingsV2Result() +{ +} + +ListPrincipalThingsV2Result::ListPrincipalThingsV2Result(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListPrincipalThingsV2Result& ListPrincipalThingsV2Result::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("principalThingObjects")) + { + Aws::Utils::Array principalThingObjectsJsonList = jsonValue.GetArray("principalThingObjects"); + for(unsigned principalThingObjectsIndex = 0; principalThingObjectsIndex < principalThingObjectsJsonList.GetLength(); ++principalThingObjectsIndex) + { + m_principalThingObjects.push_back(principalThingObjectsJsonList[principalThingObjectsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ListThingPrincipalsV2Request.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ListThingPrincipalsV2Request.cpp new file mode 100644 index 00000000000..055f59d6be0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/ListThingPrincipalsV2Request.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListThingPrincipalsV2Request::ListThingPrincipalsV2Request() : + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_thingNameHasBeenSet(false), + m_thingPrincipalType(ThingPrincipalType::NOT_SET), + m_thingPrincipalTypeHasBeenSet(false) +{ +} + +Aws::String ListThingPrincipalsV2Request::SerializePayload() const +{ + return {}; +} + +void ListThingPrincipalsV2Request::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_thingPrincipalTypeHasBeenSet) + { + ss << ThingPrincipalTypeMapper::GetNameForThingPrincipalType(m_thingPrincipalType); + uri.AddQueryStringParameter("thingPrincipalType", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ListThingPrincipalsV2Result.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ListThingPrincipalsV2Result.cpp new file mode 100644 index 00000000000..521e6573907 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/ListThingPrincipalsV2Result.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListThingPrincipalsV2Result::ListThingPrincipalsV2Result() +{ +} + +ListThingPrincipalsV2Result::ListThingPrincipalsV2Result(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListThingPrincipalsV2Result& ListThingPrincipalsV2Result::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("thingPrincipalObjects")) + { + Aws::Utils::Array thingPrincipalObjectsJsonList = jsonValue.GetArray("thingPrincipalObjects"); + for(unsigned thingPrincipalObjectsIndex = 0; thingPrincipalObjectsIndex < thingPrincipalObjectsJsonList.GetLength(); ++thingPrincipalObjectsIndex) + { + m_thingPrincipalObjects.push_back(thingPrincipalObjectsJsonList[thingPrincipalObjectsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-iot/source/model/Mqtt5Configuration.cpp b/generated/src/aws-cpp-sdk-iot/source/model/Mqtt5Configuration.cpp new file mode 100644 index 00000000000..a0aaa13833d --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/Mqtt5Configuration.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +Mqtt5Configuration::Mqtt5Configuration() : + m_propagatingAttributesHasBeenSet(false) +{ +} + +Mqtt5Configuration::Mqtt5Configuration(JsonView jsonValue) + : Mqtt5Configuration() +{ + *this = jsonValue; +} + +Mqtt5Configuration& Mqtt5Configuration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("propagatingAttributes")) + { + Aws::Utils::Array propagatingAttributesJsonList = jsonValue.GetArray("propagatingAttributes"); + for(unsigned propagatingAttributesIndex = 0; propagatingAttributesIndex < propagatingAttributesJsonList.GetLength(); ++propagatingAttributesIndex) + { + m_propagatingAttributes.push_back(propagatingAttributesJsonList[propagatingAttributesIndex].AsObject()); + } + m_propagatingAttributesHasBeenSet = true; + } + + return *this; +} + +JsonValue Mqtt5Configuration::Jsonize() const +{ + JsonValue payload; + + if(m_propagatingAttributesHasBeenSet) + { + Aws::Utils::Array propagatingAttributesJsonList(m_propagatingAttributes.size()); + for(unsigned propagatingAttributesIndex = 0; propagatingAttributesIndex < propagatingAttributesJsonList.GetLength(); ++propagatingAttributesIndex) + { + propagatingAttributesJsonList[propagatingAttributesIndex].AsObject(m_propagatingAttributes[propagatingAttributesIndex].Jsonize()); + } + payload.WithArray("propagatingAttributes", std::move(propagatingAttributesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/source/model/PrincipalThingObject.cpp b/generated/src/aws-cpp-sdk-iot/source/model/PrincipalThingObject.cpp new file mode 100644 index 00000000000..34411d53347 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/PrincipalThingObject.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +PrincipalThingObject::PrincipalThingObject() : + m_thingNameHasBeenSet(false), + m_thingPrincipalType(ThingPrincipalType::NOT_SET), + m_thingPrincipalTypeHasBeenSet(false) +{ +} + +PrincipalThingObject::PrincipalThingObject(JsonView jsonValue) + : PrincipalThingObject() +{ + *this = jsonValue; +} + +PrincipalThingObject& PrincipalThingObject::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("thingName")) + { + m_thingName = jsonValue.GetString("thingName"); + + m_thingNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("thingPrincipalType")) + { + m_thingPrincipalType = ThingPrincipalTypeMapper::GetThingPrincipalTypeForName(jsonValue.GetString("thingPrincipalType")); + + m_thingPrincipalTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue PrincipalThingObject::Jsonize() const +{ + JsonValue payload; + + if(m_thingNameHasBeenSet) + { + payload.WithString("thingName", m_thingName); + + } + + if(m_thingPrincipalTypeHasBeenSet) + { + payload.WithString("thingPrincipalType", ThingPrincipalTypeMapper::GetNameForThingPrincipalType(m_thingPrincipalType)); + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/source/model/PropagatingAttribute.cpp b/generated/src/aws-cpp-sdk-iot/source/model/PropagatingAttribute.cpp new file mode 100644 index 00000000000..a5a5c3aa6d8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/PropagatingAttribute.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +PropagatingAttribute::PropagatingAttribute() : + m_userPropertyKeyHasBeenSet(false), + m_thingAttributeHasBeenSet(false), + m_connectionAttributeHasBeenSet(false) +{ +} + +PropagatingAttribute::PropagatingAttribute(JsonView jsonValue) + : PropagatingAttribute() +{ + *this = jsonValue; +} + +PropagatingAttribute& PropagatingAttribute::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("userPropertyKey")) + { + m_userPropertyKey = jsonValue.GetString("userPropertyKey"); + + m_userPropertyKeyHasBeenSet = true; + } + + if(jsonValue.ValueExists("thingAttribute")) + { + m_thingAttribute = jsonValue.GetString("thingAttribute"); + + m_thingAttributeHasBeenSet = true; + } + + if(jsonValue.ValueExists("connectionAttribute")) + { + m_connectionAttribute = jsonValue.GetString("connectionAttribute"); + + m_connectionAttributeHasBeenSet = true; + } + + return *this; +} + +JsonValue PropagatingAttribute::Jsonize() const +{ + JsonValue payload; + + if(m_userPropertyKeyHasBeenSet) + { + payload.WithString("userPropertyKey", m_userPropertyKey); + + } + + if(m_thingAttributeHasBeenSet) + { + payload.WithString("thingAttribute", m_thingAttribute); + + } + + if(m_connectionAttributeHasBeenSet) + { + payload.WithString("connectionAttribute", m_connectionAttribute); + + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ServerCertificateConfig.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ServerCertificateConfig.cpp index 7e4af38a2b3..95cb5c24089 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ServerCertificateConfig.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ServerCertificateConfig.cpp @@ -20,7 +20,9 @@ namespace Model ServerCertificateConfig::ServerCertificateConfig() : m_enableOCSPCheck(false), - m_enableOCSPCheckHasBeenSet(false) + m_enableOCSPCheckHasBeenSet(false), + m_ocspLambdaArnHasBeenSet(false), + m_ocspAuthorizedResponderArnHasBeenSet(false) { } @@ -39,6 +41,20 @@ ServerCertificateConfig& ServerCertificateConfig::operator =(JsonView jsonValue) m_enableOCSPCheckHasBeenSet = true; } + if(jsonValue.ValueExists("ocspLambdaArn")) + { + m_ocspLambdaArn = jsonValue.GetString("ocspLambdaArn"); + + m_ocspLambdaArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("ocspAuthorizedResponderArn")) + { + m_ocspAuthorizedResponderArn = jsonValue.GetString("ocspAuthorizedResponderArn"); + + m_ocspAuthorizedResponderArnHasBeenSet = true; + } + return *this; } @@ -52,6 +68,18 @@ JsonValue ServerCertificateConfig::Jsonize() const } + if(m_ocspLambdaArnHasBeenSet) + { + payload.WithString("ocspLambdaArn", m_ocspLambdaArn); + + } + + if(m_ocspAuthorizedResponderArnHasBeenSet) + { + payload.WithString("ocspAuthorizedResponderArn", m_ocspAuthorizedResponderArn); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ThingPrincipalObject.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ThingPrincipalObject.cpp new file mode 100644 index 00000000000..2b50169c9bb --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/ThingPrincipalObject.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +ThingPrincipalObject::ThingPrincipalObject() : + m_principalHasBeenSet(false), + m_thingPrincipalType(ThingPrincipalType::NOT_SET), + m_thingPrincipalTypeHasBeenSet(false) +{ +} + +ThingPrincipalObject::ThingPrincipalObject(JsonView jsonValue) + : ThingPrincipalObject() +{ + *this = jsonValue; +} + +ThingPrincipalObject& ThingPrincipalObject::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("principal")) + { + m_principal = jsonValue.GetString("principal"); + + m_principalHasBeenSet = true; + } + + if(jsonValue.ValueExists("thingPrincipalType")) + { + m_thingPrincipalType = ThingPrincipalTypeMapper::GetThingPrincipalTypeForName(jsonValue.GetString("thingPrincipalType")); + + m_thingPrincipalTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue ThingPrincipalObject::Jsonize() const +{ + JsonValue payload; + + if(m_principalHasBeenSet) + { + payload.WithString("principal", m_principal); + + } + + if(m_thingPrincipalTypeHasBeenSet) + { + payload.WithString("thingPrincipalType", ThingPrincipalTypeMapper::GetNameForThingPrincipalType(m_thingPrincipalType)); + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ThingPrincipalType.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ThingPrincipalType.cpp new file mode 100644 index 00000000000..d4657f76c58 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/ThingPrincipalType.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoT + { + namespace Model + { + namespace ThingPrincipalTypeMapper + { + + static const int EXCLUSIVE_THING_HASH = HashingUtils::HashString("EXCLUSIVE_THING"); + static const int NON_EXCLUSIVE_THING_HASH = HashingUtils::HashString("NON_EXCLUSIVE_THING"); + + + ThingPrincipalType GetThingPrincipalTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == EXCLUSIVE_THING_HASH) + { + return ThingPrincipalType::EXCLUSIVE_THING; + } + else if (hashCode == NON_EXCLUSIVE_THING_HASH) + { + return ThingPrincipalType::NON_EXCLUSIVE_THING; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ThingPrincipalType::NOT_SET; + } + + Aws::String GetNameForThingPrincipalType(ThingPrincipalType enumValue) + { + switch(enumValue) + { + case ThingPrincipalType::NOT_SET: + return {}; + case ThingPrincipalType::EXCLUSIVE_THING: + return "EXCLUSIVE_THING"; + case ThingPrincipalType::NON_EXCLUSIVE_THING: + return "NON_EXCLUSIVE_THING"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ThingPrincipalTypeMapper + } // namespace Model + } // namespace IoT +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-iot/source/model/ThingTypeProperties.cpp b/generated/src/aws-cpp-sdk-iot/source/model/ThingTypeProperties.cpp index 3778c5e752f..aef9c83febf 100644 --- a/generated/src/aws-cpp-sdk-iot/source/model/ThingTypeProperties.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/model/ThingTypeProperties.cpp @@ -20,7 +20,8 @@ namespace Model ThingTypeProperties::ThingTypeProperties() : m_thingTypeDescriptionHasBeenSet(false), - m_searchableAttributesHasBeenSet(false) + m_searchableAttributesHasBeenSet(false), + m_mqtt5ConfigurationHasBeenSet(false) { } @@ -49,6 +50,13 @@ ThingTypeProperties& ThingTypeProperties::operator =(JsonView jsonValue) m_searchableAttributesHasBeenSet = true; } + if(jsonValue.ValueExists("mqtt5Configuration")) + { + m_mqtt5Configuration = jsonValue.GetObject("mqtt5Configuration"); + + m_mqtt5ConfigurationHasBeenSet = true; + } + return *this; } @@ -73,6 +81,12 @@ JsonValue ThingTypeProperties::Jsonize() const } + if(m_mqtt5ConfigurationHasBeenSet) + { + payload.WithObject("mqtt5Configuration", m_mqtt5Configuration.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-iot/source/model/UpdateThingTypeRequest.cpp b/generated/src/aws-cpp-sdk-iot/source/model/UpdateThingTypeRequest.cpp new file mode 100644 index 00000000000..15930786711 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/UpdateThingTypeRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateThingTypeRequest::UpdateThingTypeRequest() : + m_thingTypeNameHasBeenSet(false), + m_thingTypePropertiesHasBeenSet(false) +{ +} + +Aws::String UpdateThingTypeRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_thingTypePropertiesHasBeenSet) + { + payload.WithObject("thingTypeProperties", m_thingTypeProperties.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-iot/source/model/UpdateThingTypeResult.cpp b/generated/src/aws-cpp-sdk-iot/source/model/UpdateThingTypeResult.cpp new file mode 100644 index 00000000000..0e7b4c91b40 --- /dev/null +++ b/generated/src/aws-cpp-sdk-iot/source/model/UpdateThingTypeResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateThingTypeResult::UpdateThingTypeResult() +{ +} + +UpdateThingTypeResult::UpdateThingTypeResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateThingTypeResult& UpdateThingTypeResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/CloudWatchClient.h b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/CloudWatchClient.h index a111d300667..61e32eafc71 100644 --- a/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/CloudWatchClient.h +++ b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/CloudWatchClient.h @@ -1204,27 +1204,35 @@ namespace CloudWatch } /** - *

    Publishes metric data points to Amazon CloudWatch. CloudWatch associates the - * data points with the specified metric. If the specified metric does not exist, - * CloudWatch creates the metric. When CloudWatch creates a metric, it can take up - * to fifteen minutes for the metric to appear in calls to Publishes metric data to Amazon CloudWatch. CloudWatch associates the data + * with the specified metric. If the specified metric does not exist, CloudWatch + * creates the metric. When CloudWatch creates a metric, it can take up to fifteen + * minutes for the metric to appear in calls to ListMetrics.

    - *

    You can publish either individual data points in the Value - * field, or arrays of values and the number of times each value occurred during - * the period by using the Values and Counts fields in - * the MetricData structure. Using the Values and + *

    You can publish metrics with associated entity data (so that related + * telemetry can be found and viewed together), or publish metric data by itself. + * To send entity data with your metrics, use the EntityMetricData + * parameter. To send metrics without entity data, use the MetricData + * parameter. The EntityMetricData structure includes + * MetricData structures for the metric data.

    You can publish + * either individual values in the Value field, or arrays of values + * and the number of times each value occurred during the period by using the + * Values and Counts fields in the + * MetricData structure. Using the Values and * Counts method enables you to publish up to 150 values per metric * with one PutMetricData request, and supports retrieving percentile * statistics on this data.

    Each PutMetricData request is * limited to 1 MB in size for HTTP POST requests. You can send a payload * compressed by gzip. Each request is also limited to no more than 1000 different - * metrics.

    Although the Value parameter accepts numbers of - * type Double, CloudWatch rejects values that are either too small or - * too large. Values must be in the range of -2^360 to 2^360. In addition, special - * values (for example, NaN, +Infinity, -Infinity) are not supported.

    You - * can use up to 30 dimensions per metric to further clarify what data the metric - * collects. Each dimension consists of a Name and Value pair. For more information - * about specifying dimensions, see MetricData and + * EntityMetricData properties).

    Although the + * Value parameter accepts numbers of type Double, + * CloudWatch rejects values that are either too small or too large. Values must be + * in the range of -2^360 to 2^360. In addition, special values (for example, NaN, + * +Infinity, -Infinity) are not supported.

    You can use up to 30 dimensions + * per metric to further clarify what data the metric collects. Each dimension + * consists of a Name and Value pair. For more information about specifying + * dimensions, see Publishing * Metrics in the Amazon CloudWatch User Guide.

    You specify the * time stamp to be associated with each data point. You can specify time stamps @@ -1235,7 +1243,7 @@ namespace CloudWatch * or GetMetricStatistics * from the time they are submitted. Data points with time stamps between 3 and 24 - * hours ago can take as much as 2 hours to become available for for GetMetricData * or GetMetricStatistics.

    diff --git a/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/Entity.h b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/Entity.h new file mode 100644 index 00000000000..9dc287069bb --- /dev/null +++ b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/Entity.h @@ -0,0 +1,110 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudWatch +{ +namespace Model +{ + + /** + *

    An entity associated with metrics, to allow for finding related telemetry. An + * entity is typically a resource or service within your system. For example, + * metrics from an Amazon EC2 instance could be associated with that instance as + * the entity. Similarly, metrics from a service that you own could be associated + * with that service as the entity.

    See Also:

    AWS + * API Reference

    + */ + class Entity + { + public: + AWS_CLOUDWATCH_API Entity(); + AWS_CLOUDWATCH_API Entity(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_CLOUDWATCH_API Entity& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

    The attributes of the entity which identify the specific entity, as a list of + * key-value pairs. Entities with the same KeyAttributes are + * considered to be the same entity. For an entity to be valid, the + * KeyAttributes must exist and be formatted correctly.

    There + * are five allowed attributes (key names): Type, + * ResourceType, Identifier, Name, and + * Environment.

    For details about how to use the key attributes + * to specify an entity, see How to + * add related information to telemetry in the CloudWatch User + * Guide.

    + */ + inline const Aws::Map& GetKeyAttributes() const{ return m_keyAttributes; } + inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; } + inline void SetKeyAttributes(const Aws::Map& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = value; } + inline void SetKeyAttributes(Aws::Map&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::move(value); } + inline Entity& WithKeyAttributes(const Aws::Map& value) { SetKeyAttributes(value); return *this;} + inline Entity& WithKeyAttributes(Aws::Map&& value) { SetKeyAttributes(std::move(value)); return *this;} + inline Entity& AddKeyAttributes(const Aws::String& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; } + inline Entity& AddKeyAttributes(Aws::String&& key, const Aws::String& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; } + inline Entity& AddKeyAttributes(const Aws::String& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; } + inline Entity& AddKeyAttributes(Aws::String&& key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), std::move(value)); return *this; } + inline Entity& AddKeyAttributes(const char* key, Aws::String&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, std::move(value)); return *this; } + inline Entity& AddKeyAttributes(Aws::String&& key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(std::move(key), value); return *this; } + inline Entity& AddKeyAttributes(const char* key, const char* value) { m_keyAttributesHasBeenSet = true; m_keyAttributes.emplace(key, value); return *this; } + ///@} + + ///@{ + /** + *

    Additional attributes of the entity that are not used to specify the identity + * of the entity. A list of key-value pairs.

    For details about how to use + * the attributes, see How to + * add related information to telemetry in the CloudWatch User + * Guide.

    + */ + inline const Aws::Map& GetAttributes() const{ return m_attributes; } + inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } + inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } + inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } + inline Entity& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} + inline Entity& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} + inline Entity& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } + inline Entity& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } + inline Entity& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } + inline Entity& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } + inline Entity& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } + inline Entity& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } + inline Entity& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } + ///@} + private: + + Aws::Map m_keyAttributes; + bool m_keyAttributesHasBeenSet = false; + + Aws::Map m_attributes; + bool m_attributesHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudWatch +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/EntityMetricData.h b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/EntityMetricData.h new file mode 100644 index 00000000000..9ce21534291 --- /dev/null +++ b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/EntityMetricData.h @@ -0,0 +1,82 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Xml +{ + class XmlNode; +} // namespace Xml +} // namespace Utils +namespace CloudWatch +{ +namespace Model +{ + + /** + *

    A set of metrics that are associated with an entity, such as a specific + * service or resource. Contains the entity and the list of metric data associated + * with it.

    See Also:

    AWS + * API Reference

    + */ + class EntityMetricData + { + public: + AWS_CLOUDWATCH_API EntityMetricData(); + AWS_CLOUDWATCH_API EntityMetricData(const Aws::Utils::Xml::XmlNode& xmlNode); + AWS_CLOUDWATCH_API EntityMetricData& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); + + AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; + AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const; + + + ///@{ + /** + *

    The entity associated with the metrics.

    + */ + inline const Entity& GetEntity() const{ return m_entity; } + inline bool EntityHasBeenSet() const { return m_entityHasBeenSet; } + inline void SetEntity(const Entity& value) { m_entityHasBeenSet = true; m_entity = value; } + inline void SetEntity(Entity&& value) { m_entityHasBeenSet = true; m_entity = std::move(value); } + inline EntityMetricData& WithEntity(const Entity& value) { SetEntity(value); return *this;} + inline EntityMetricData& WithEntity(Entity&& value) { SetEntity(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The metric data.

    + */ + inline const Aws::Vector& GetMetricData() const{ return m_metricData; } + inline bool MetricDataHasBeenSet() const { return m_metricDataHasBeenSet; } + inline void SetMetricData(const Aws::Vector& value) { m_metricDataHasBeenSet = true; m_metricData = value; } + inline void SetMetricData(Aws::Vector&& value) { m_metricDataHasBeenSet = true; m_metricData = std::move(value); } + inline EntityMetricData& WithMetricData(const Aws::Vector& value) { SetMetricData(value); return *this;} + inline EntityMetricData& WithMetricData(Aws::Vector&& value) { SetMetricData(std::move(value)); return *this;} + inline EntityMetricData& AddMetricData(const MetricDatum& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(value); return *this; } + inline EntityMetricData& AddMetricData(MetricDatum&& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(std::move(value)); return *this; } + ///@} + private: + + Entity m_entity; + bool m_entityHasBeenSet = false; + + Aws::Vector m_metricData; + bool m_metricDataHasBeenSet = false; + }; + +} // namespace Model +} // namespace CloudWatch +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/GetMetricWidgetImageRequest.h b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/GetMetricWidgetImageRequest.h index 1366cd9528a..dee708c46fb 100644 --- a/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/GetMetricWidgetImageRequest.h +++ b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/GetMetricWidgetImageRequest.h @@ -78,7 +78,7 @@ namespace Model * most use cases, and all actions using an Amazon Web Services SDK, you should use * png. If you specify image/png, the HTTP response has a * content-type set to image/png, and the body of the response is a - * PNG image.

    + * PNG image.

    */ inline const Aws::String& GetOutputFormat() const{ return m_outputFormat; } inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/ListMetricsRequest.h b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/ListMetricsRequest.h index 444de5b8159..139dccb09cd 100644 --- a/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/ListMetricsRequest.h +++ b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/ListMetricsRequest.h @@ -106,7 +106,7 @@ namespace Model * PT3H. This is the only valid value for this parameter.

    The * results that are returned are an approximation of the value you specify. There * is a low probability that the returned results include metrics with last - * published data as much as 40 minutes more than the specified time interval.

    + * published data as much as 50 minutes more than the specified time interval.

    */ inline const RecentlyActive& GetRecentlyActive() const{ return m_recentlyActive; } inline bool RecentlyActiveHasBeenSet() const { return m_recentlyActiveHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/PutMetricAlarmRequest.h b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/PutMetricAlarmRequest.h index fa860399339..ce562a962d9 100644 --- a/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/PutMetricAlarmRequest.h +++ b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/PutMetricAlarmRequest.h @@ -512,6 +512,9 @@ namespace Model * href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html">TagResource * or UntagResource.

    + *

    To use this field to set tags for an alarm when you create it, you must be + * signed on with both the cloudwatch:PutMetricAlarm and + * cloudwatch:TagResource permissions.

    */ inline const Aws::Vector& GetTags() const{ return m_tags; } inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/PutMetricDataRequest.h b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/PutMetricDataRequest.h index 793b0b5afb3..64a1a656762 100644 --- a/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/PutMetricDataRequest.h +++ b/generated/src/aws-cpp-sdk-monitoring/include/aws/monitoring/model/PutMetricDataRequest.h @@ -9,6 +9,7 @@ #include #include #include +#include #include namespace Aws @@ -62,8 +63,10 @@ namespace Model ///@{ /** - *

    The data for the metric. The array can include no more than 1000 metrics per - * call.

    + *

    The data for the metrics. Use this parameter if your metrics do not contain + * associated entities. The array can include no more than 1000 metrics per + * call.

    The limit of metrics allowed, 1000, is the sum of both + * EntityMetricData and MetricData metrics.

    */ inline const Aws::Vector& GetMetricData() const{ return m_metricData; } inline bool MetricDataHasBeenSet() const { return m_metricDataHasBeenSet; } @@ -74,6 +77,59 @@ namespace Model inline PutMetricDataRequest& AddMetricData(const MetricDatum& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(value); return *this; } inline PutMetricDataRequest& AddMetricData(MetricDatum&& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

    Data for metrics that contain associated entity information. You can include + * up to two EntityMetricData objects, each of which can contain a + * single Entity and associated metrics.

    The limit of metrics + * allowed, 1000, is the sum of both EntityMetricData and + * MetricData metrics.

    + */ + inline const Aws::Vector& GetEntityMetricData() const{ return m_entityMetricData; } + inline bool EntityMetricDataHasBeenSet() const { return m_entityMetricDataHasBeenSet; } + inline void SetEntityMetricData(const Aws::Vector& value) { m_entityMetricDataHasBeenSet = true; m_entityMetricData = value; } + inline void SetEntityMetricData(Aws::Vector&& value) { m_entityMetricDataHasBeenSet = true; m_entityMetricData = std::move(value); } + inline PutMetricDataRequest& WithEntityMetricData(const Aws::Vector& value) { SetEntityMetricData(value); return *this;} + inline PutMetricDataRequest& WithEntityMetricData(Aws::Vector&& value) { SetEntityMetricData(std::move(value)); return *this;} + inline PutMetricDataRequest& AddEntityMetricData(const EntityMetricData& value) { m_entityMetricDataHasBeenSet = true; m_entityMetricData.push_back(value); return *this; } + inline PutMetricDataRequest& AddEntityMetricData(EntityMetricData&& value) { m_entityMetricDataHasBeenSet = true; m_entityMetricData.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    Whether to accept valid metric data when an invalid entity is sent.

      + *
    • When set to true: Any validation error (for entity or + * metric data) will fail the entire request, and no data will be ingested. The + * failed operation will return a 400 result with the error.

    • When + * set to false: Validation errors in the entity will not associate + * the metric with the entity, but the metric data will still be accepted and + * ingested. Validation errors in the metric data will fail the entire request, and + * no data will be ingested.

      In the case of an invalid entity, the operation + * will return a 200 status, but an additional response header will + * contain information about the validation errors. The new header, + * X-Amzn-Failure-Message is an enumeration of the following + * values:

      • InvalidEntity - The provided entity is + * invalid.

      • InvalidKeyAttributes - The provided + * KeyAttributes of an entity is invalid.

      • + * InvalidAttributes - The provided Attributes of an + * entity is invalid.

      • InvalidTypeValue - The + * provided Type in the KeyAttributes of an entity is + * invalid.

      • EntitySizeTooLarge - The number of + * EntityMetricData objects allowed is 2.

      • + * MissingRequiredFields - There are missing required fields in the + * KeyAttributes for the provided Type.

      + *

      For details of the requirements for specifying an entity, see How to + * add related information to telemetry in the CloudWatch User + * Guide.

    This parameter is required when + * EntityMetricData is included.

    + */ + inline bool GetStrictEntityValidation() const{ return m_strictEntityValidation; } + inline bool StrictEntityValidationHasBeenSet() const { return m_strictEntityValidationHasBeenSet; } + inline void SetStrictEntityValidation(bool value) { m_strictEntityValidationHasBeenSet = true; m_strictEntityValidation = value; } + inline PutMetricDataRequest& WithStrictEntityValidation(bool value) { SetStrictEntityValidation(value); return *this;} + ///@} private: Aws::String m_namespace; @@ -81,6 +137,12 @@ namespace Model Aws::Vector m_metricData; bool m_metricDataHasBeenSet = false; + + Aws::Vector m_entityMetricData; + bool m_entityMetricDataHasBeenSet = false; + + bool m_strictEntityValidation; + bool m_strictEntityValidationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/Entity.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/Entity.cpp new file mode 100644 index 00000000000..f454c7d6457 --- /dev/null +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/Entity.cpp @@ -0,0 +1,140 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudWatch +{ +namespace Model +{ + +Entity::Entity() : + m_keyAttributesHasBeenSet(false), + m_attributesHasBeenSet(false) +{ +} + +Entity::Entity(const XmlNode& xmlNode) + : Entity() +{ + *this = xmlNode; +} + +Entity& Entity::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode keyAttributesNode = resultNode.FirstChild("KeyAttributes"); + + if(!keyAttributesNode.IsNull()) + { + XmlNode keyAttributesEntry = keyAttributesNode.FirstChild("entry"); + while(!keyAttributesEntry.IsNull()) + { + XmlNode keyNode = keyAttributesEntry.FirstChild("key"); + XmlNode valueNode = keyAttributesEntry.FirstChild("value"); + m_keyAttributes[keyNode.GetText()] = + valueNode.GetText(); + keyAttributesEntry = keyAttributesEntry.NextNode("entry"); + } + + m_keyAttributesHasBeenSet = true; + } + XmlNode attributesNode = resultNode.FirstChild("Attributes"); + + if(!attributesNode.IsNull()) + { + XmlNode attributesEntry = attributesNode.FirstChild("entry"); + while(!attributesEntry.IsNull()) + { + XmlNode keyNode = attributesEntry.FirstChild("key"); + XmlNode valueNode = attributesEntry.FirstChild("value"); + m_attributes[keyNode.GetText()] = + valueNode.GetText(); + attributesEntry = attributesEntry.NextNode("entry"); + } + + m_attributesHasBeenSet = true; + } + } + + return *this; +} + +void Entity::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_keyAttributesHasBeenSet) + { + unsigned keyAttributesIdx = 1; + for(auto& item : m_keyAttributes) + { + oStream << location << index << locationValue << ".KeyAttributes.entry." << keyAttributesIdx << ".key=" + << StringUtils::URLEncode(item.first.c_str()) << "&"; + oStream << location << index << locationValue << ".KeyAttributes.entry." << keyAttributesIdx << ".value=" + << StringUtils::URLEncode(item.second.c_str()) << "&"; + keyAttributesIdx++; + } + } + + if(m_attributesHasBeenSet) + { + unsigned attributesIdx = 1; + for(auto& item : m_attributes) + { + oStream << location << index << locationValue << ".Attributes.entry." << attributesIdx << ".key=" + << StringUtils::URLEncode(item.first.c_str()) << "&"; + oStream << location << index << locationValue << ".Attributes.entry." << attributesIdx << ".value=" + << StringUtils::URLEncode(item.second.c_str()) << "&"; + attributesIdx++; + } + } + +} + +void Entity::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_keyAttributesHasBeenSet) + { + unsigned keyAttributesIdx = 1; + for(auto& item : m_keyAttributes) + { + oStream << location << ".KeyAttributes.entry." << keyAttributesIdx << ".key=" + << StringUtils::URLEncode(item.first.c_str()) << "&"; + oStream << location << ".KeyAttributes.entry." << keyAttributesIdx << ".value=" + << StringUtils::URLEncode(item.second.c_str()) << "&"; + keyAttributesIdx++; + } + + } + if(m_attributesHasBeenSet) + { + unsigned attributesIdx = 1; + for(auto& item : m_attributes) + { + oStream << location << ".Attributes.entry." << attributesIdx << ".key=" + << StringUtils::URLEncode(item.first.c_str()) << "&"; + oStream << location << ".Attributes.entry." << attributesIdx << ".value=" + << StringUtils::URLEncode(item.second.c_str()) << "&"; + attributesIdx++; + } + + } +} + +} // namespace Model +} // namespace CloudWatch +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/EntityMetricData.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/EntityMetricData.cpp new file mode 100644 index 00000000000..ea6ecfbc5dd --- /dev/null +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/EntityMetricData.cpp @@ -0,0 +1,108 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; + +namespace Aws +{ +namespace CloudWatch +{ +namespace Model +{ + +EntityMetricData::EntityMetricData() : + m_entityHasBeenSet(false), + m_metricDataHasBeenSet(false) +{ +} + +EntityMetricData::EntityMetricData(const XmlNode& xmlNode) + : EntityMetricData() +{ + *this = xmlNode; +} + +EntityMetricData& EntityMetricData::operator =(const XmlNode& xmlNode) +{ + XmlNode resultNode = xmlNode; + + if(!resultNode.IsNull()) + { + XmlNode entityNode = resultNode.FirstChild("Entity"); + if(!entityNode.IsNull()) + { + m_entity = entityNode; + m_entityHasBeenSet = true; + } + XmlNode metricDataNode = resultNode.FirstChild("MetricData"); + if(!metricDataNode.IsNull()) + { + XmlNode metricDataMember = metricDataNode.FirstChild("member"); + while(!metricDataMember.IsNull()) + { + m_metricData.push_back(metricDataMember); + metricDataMember = metricDataMember.NextNode("member"); + } + + m_metricDataHasBeenSet = true; + } + } + + return *this; +} + +void EntityMetricData::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const +{ + if(m_entityHasBeenSet) + { + Aws::StringStream entityLocationAndMemberSs; + entityLocationAndMemberSs << location << index << locationValue << ".Entity"; + m_entity.OutputToStream(oStream, entityLocationAndMemberSs.str().c_str()); + } + + if(m_metricDataHasBeenSet) + { + unsigned metricDataIdx = 1; + for(auto& item : m_metricData) + { + Aws::StringStream metricDataSs; + metricDataSs << location << index << locationValue << ".MetricData.member." << metricDataIdx++; + item.OutputToStream(oStream, metricDataSs.str().c_str()); + } + } + +} + +void EntityMetricData::OutputToStream(Aws::OStream& oStream, const char* location) const +{ + if(m_entityHasBeenSet) + { + Aws::String entityLocationAndMember(location); + entityLocationAndMember += ".Entity"; + m_entity.OutputToStream(oStream, entityLocationAndMember.c_str()); + } + if(m_metricDataHasBeenSet) + { + unsigned metricDataIdx = 1; + for(auto& item : m_metricData) + { + Aws::StringStream metricDataSs; + metricDataSs << location << ".MetricData.member." << metricDataIdx++; + item.OutputToStream(oStream, metricDataSs.str().c_str()); + } + } +} + +} // namespace Model +} // namespace CloudWatch +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-monitoring/source/model/PutMetricDataRequest.cpp b/generated/src/aws-cpp-sdk-monitoring/source/model/PutMetricDataRequest.cpp index 0ea0b5cce44..903796f973b 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/model/PutMetricDataRequest.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/model/PutMetricDataRequest.cpp @@ -12,7 +12,10 @@ using namespace Aws::Utils; PutMetricDataRequest::PutMetricDataRequest() : m_namespaceHasBeenSet(false), - m_metricDataHasBeenSet(false) + m_metricDataHasBeenSet(false), + m_entityMetricDataHasBeenSet(false), + m_strictEntityValidation(false), + m_strictEntityValidationHasBeenSet(false) { } @@ -42,6 +45,28 @@ Aws::String PutMetricDataRequest::SerializePayload() const } } + if(m_entityMetricDataHasBeenSet) + { + if (m_entityMetricData.empty()) + { + ss << "EntityMetricData=&"; + } + else + { + unsigned entityMetricDataCount = 1; + for(auto& item : m_entityMetricData) + { + item.OutputToStream(ss, "EntityMetricData.member.", entityMetricDataCount, ""); + entityMetricDataCount++; + } + } + } + + if(m_strictEntityValidationHasBeenSet) + { + ss << "StrictEntityValidation=" << std::boolalpha << m_strictEntityValidation << "&"; + } + ss << "Version=2010-08-01"; return ss.str(); } diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/PaymentTerm.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/PaymentTerm.h index 6984437d5e1..bff64eff3d4 100644 --- a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/PaymentTerm.h +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/PaymentTerm.h @@ -17,7 +17,8 @@ namespace Model { NOT_SET, THREE_YEARS, - ONE_YEAR + ONE_YEAR, + FIVE_YEARS }; namespace PaymentTermMapper diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/PaymentTerm.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/PaymentTerm.cpp index 5c7f17bde4e..6d3c86b10e9 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/PaymentTerm.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/PaymentTerm.cpp @@ -22,6 +22,7 @@ namespace Aws static const int THREE_YEARS_HASH = HashingUtils::HashString("THREE_YEARS"); static const int ONE_YEAR_HASH = HashingUtils::HashString("ONE_YEAR"); + static const int FIVE_YEARS_HASH = HashingUtils::HashString("FIVE_YEARS"); PaymentTerm GetPaymentTermForName(const Aws::String& name) @@ -35,6 +36,10 @@ namespace Aws { return PaymentTerm::ONE_YEAR; } + else if (hashCode == FIVE_YEARS_HASH) + { + return PaymentTerm::FIVE_YEARS; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -55,6 +60,8 @@ namespace Aws return "THREE_YEARS"; case PaymentTerm::ONE_YEAR: return "ONE_YEAR"; + case PaymentTerm::FIVE_YEARS: + return "FIVE_YEARS"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2Client.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2Client.h index cfa24ec3af5..6d7d80a70ed 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2Client.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2Client.h @@ -789,6 +789,32 @@ namespace PinpointSMSVoiceV2 return SubmitAsync(&PinpointSMSVoiceV2Client::DeleteProtectConfiguration, request, handler, context); } + /** + *

    Permanently delete the protect configuration rule set number + * override.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteProtectConfigurationRuleSetNumberOverrideOutcome DeleteProtectConfigurationRuleSetNumberOverride(const Model::DeleteProtectConfigurationRuleSetNumberOverrideRequest& request) const; + + /** + * A Callable wrapper for DeleteProtectConfigurationRuleSetNumberOverride that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteProtectConfigurationRuleSetNumberOverrideOutcomeCallable DeleteProtectConfigurationRuleSetNumberOverrideCallable(const DeleteProtectConfigurationRuleSetNumberOverrideRequestT& request) const + { + return SubmitCallable(&PinpointSMSVoiceV2Client::DeleteProtectConfigurationRuleSetNumberOverride, request); + } + + /** + * An Async wrapper for DeleteProtectConfigurationRuleSetNumberOverride that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteProtectConfigurationRuleSetNumberOverrideAsync(const DeleteProtectConfigurationRuleSetNumberOverrideRequestT& request, const DeleteProtectConfigurationRuleSetNumberOverrideResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&PinpointSMSVoiceV2Client::DeleteProtectConfigurationRuleSetNumberOverride, request, handler, context); + } + /** *

    Permanently delete an existing registration from your account.

    See * Also:

    Retrieves the specified verified destiona numbers.

    See Also:

    - *
    Retrieves the specified verified destination numbers.

    See + * Also:

    AWS * API Reference

    */ @@ -1698,7 +1724,33 @@ namespace PinpointSMSVoiceV2 } /** - *

    Retreive all of the origination identies that are associated with a + *

    Retrieve all of the protect configuration rule set number overrides that + * match the filters.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListProtectConfigurationRuleSetNumberOverridesOutcome ListProtectConfigurationRuleSetNumberOverrides(const Model::ListProtectConfigurationRuleSetNumberOverridesRequest& request) const; + + /** + * A Callable wrapper for ListProtectConfigurationRuleSetNumberOverrides that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListProtectConfigurationRuleSetNumberOverridesOutcomeCallable ListProtectConfigurationRuleSetNumberOverridesCallable(const ListProtectConfigurationRuleSetNumberOverridesRequestT& request) const + { + return SubmitCallable(&PinpointSMSVoiceV2Client::ListProtectConfigurationRuleSetNumberOverrides, request); + } + + /** + * An Async wrapper for ListProtectConfigurationRuleSetNumberOverrides that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListProtectConfigurationRuleSetNumberOverridesAsync(const ListProtectConfigurationRuleSetNumberOverridesRequestT& request, const ListProtectConfigurationRuleSetNumberOverridesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&PinpointSMSVoiceV2Client::ListProtectConfigurationRuleSetNumberOverrides, request, handler, context); + } + + /** + *

    Retrieve all of the origination identities that are associated with a * registration.

    See Also:

    AWS * API Reference

    @@ -1780,6 +1832,37 @@ namespace PinpointSMSVoiceV2 return SubmitAsync(&PinpointSMSVoiceV2Client::PutKeyword, request, handler, context); } + /** + *

    Set the MessageFeedbackStatus as RECEIVED or FAILED + * for the passed in MessageId.

    If you use message feedback then you must + * update message feedback record. When you receive a signal that a user has + * received the message you must use PutMessageFeedback to set the + * message feedback record as RECEIVED; Otherwise, an hour after the + * message feedback record is set to FAILED.

    See Also:

    + * AWS + * API Reference

    + */ + virtual Model::PutMessageFeedbackOutcome PutMessageFeedback(const Model::PutMessageFeedbackRequest& request) const; + + /** + * A Callable wrapper for PutMessageFeedback that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::PutMessageFeedbackOutcomeCallable PutMessageFeedbackCallable(const PutMessageFeedbackRequestT& request) const + { + return SubmitCallable(&PinpointSMSVoiceV2Client::PutMessageFeedback, request); + } + + /** + * An Async wrapper for PutMessageFeedback that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void PutMessageFeedbackAsync(const PutMessageFeedbackRequestT& request, const PutMessageFeedbackResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&PinpointSMSVoiceV2Client::PutMessageFeedback, request, handler, context); + } + /** *

    Creates an opted out destination phone number in the opt-out list.

    If * the destination phone number isn't valid or if the specified opt-out list @@ -1807,6 +1890,32 @@ namespace PinpointSMSVoiceV2 return SubmitAsync(&PinpointSMSVoiceV2Client::PutOptedOutNumber, request, handler, context); } + /** + *

    Create or update a RuleSetNumberOverride and associate it with a protect + * configuration.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::PutProtectConfigurationRuleSetNumberOverrideOutcome PutProtectConfigurationRuleSetNumberOverride(const Model::PutProtectConfigurationRuleSetNumberOverrideRequest& request) const; + + /** + * A Callable wrapper for PutProtectConfigurationRuleSetNumberOverride that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::PutProtectConfigurationRuleSetNumberOverrideOutcomeCallable PutProtectConfigurationRuleSetNumberOverrideCallable(const PutProtectConfigurationRuleSetNumberOverrideRequestT& request) const + { + return SubmitCallable(&PinpointSMSVoiceV2Client::PutProtectConfigurationRuleSetNumberOverride, request); + } + + /** + * An Async wrapper for PutProtectConfigurationRuleSetNumberOverride that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void PutProtectConfigurationRuleSetNumberOverrideAsync(const PutProtectConfigurationRuleSetNumberOverrideRequestT& request, const PutProtectConfigurationRuleSetNumberOverrideResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&PinpointSMSVoiceV2Client::PutProtectConfigurationRuleSetNumberOverride, request, handler, context); + } + /** *

    Creates or updates a field value for a registration.

    See Also:

    * Sets a configuration set's default for message feedback.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::SetDefaultMessageFeedbackEnabledOutcome SetDefaultMessageFeedbackEnabled(const Model::SetDefaultMessageFeedbackEnabledRequest& request) const; + + /** + * A Callable wrapper for SetDefaultMessageFeedbackEnabled that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::SetDefaultMessageFeedbackEnabledOutcomeCallable SetDefaultMessageFeedbackEnabledCallable(const SetDefaultMessageFeedbackEnabledRequestT& request) const + { + return SubmitCallable(&PinpointSMSVoiceV2Client::SetDefaultMessageFeedbackEnabled, request); + } + + /** + * An Async wrapper for SetDefaultMessageFeedbackEnabled that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void SetDefaultMessageFeedbackEnabledAsync(const SetDefaultMessageFeedbackEnabledRequestT& request, const SetDefaultMessageFeedbackEnabledResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&PinpointSMSVoiceV2Client::SetDefaultMessageFeedbackEnabled, request, handler, context); + } + /** *

    Sets the default message type on a configuration set.

    Choose the * category of SMS messages that you plan to send from this account. If you send diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2ServiceClientModel.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2ServiceClientModel.h index 5f351ebd7e4..483ef33a7ec 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2ServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2ServiceClientModel.h @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include @@ -73,10 +74,13 @@ #include #include #include +#include #include #include #include +#include #include +#include #include #include #include @@ -88,6 +92,7 @@ #include #include #include +#include #include #include #include @@ -185,6 +190,7 @@ namespace Aws class DeleteOptedOutNumberRequest; class DeletePoolRequest; class DeleteProtectConfigurationRequest; + class DeleteProtectConfigurationRuleSetNumberOverrideRequest; class DeleteRegistrationRequest; class DeleteRegistrationAttachmentRequest; class DeleteRegistrationFieldValueRequest; @@ -217,10 +223,13 @@ namespace Aws class GetProtectConfigurationCountryRuleSetRequest; class GetResourcePolicyRequest; class ListPoolOriginationIdentitiesRequest; + class ListProtectConfigurationRuleSetNumberOverridesRequest; class ListRegistrationAssociationsRequest; class ListTagsForResourceRequest; class PutKeywordRequest; + class PutMessageFeedbackRequest; class PutOptedOutNumberRequest; + class PutProtectConfigurationRuleSetNumberOverrideRequest; class PutRegistrationFieldValueRequest; class PutResourcePolicyRequest; class ReleasePhoneNumberRequest; @@ -232,6 +241,7 @@ namespace Aws class SendTextMessageRequest; class SendVoiceMessageRequest; class SetAccountDefaultProtectConfigurationRequest; + class SetDefaultMessageFeedbackEnabledRequest; class SetDefaultMessageTypeRequest; class SetDefaultSenderIdRequest; class SetMediaMessageSpendLimitOverrideRequest; @@ -273,6 +283,7 @@ namespace Aws typedef Aws::Utils::Outcome DeleteOptedOutNumberOutcome; typedef Aws::Utils::Outcome DeletePoolOutcome; typedef Aws::Utils::Outcome DeleteProtectConfigurationOutcome; + typedef Aws::Utils::Outcome DeleteProtectConfigurationRuleSetNumberOverrideOutcome; typedef Aws::Utils::Outcome DeleteRegistrationOutcome; typedef Aws::Utils::Outcome DeleteRegistrationAttachmentOutcome; typedef Aws::Utils::Outcome DeleteRegistrationFieldValueOutcome; @@ -305,10 +316,13 @@ namespace Aws typedef Aws::Utils::Outcome GetProtectConfigurationCountryRuleSetOutcome; typedef Aws::Utils::Outcome GetResourcePolicyOutcome; typedef Aws::Utils::Outcome ListPoolOriginationIdentitiesOutcome; + typedef Aws::Utils::Outcome ListProtectConfigurationRuleSetNumberOverridesOutcome; typedef Aws::Utils::Outcome ListRegistrationAssociationsOutcome; typedef Aws::Utils::Outcome ListTagsForResourceOutcome; typedef Aws::Utils::Outcome PutKeywordOutcome; + typedef Aws::Utils::Outcome PutMessageFeedbackOutcome; typedef Aws::Utils::Outcome PutOptedOutNumberOutcome; + typedef Aws::Utils::Outcome PutProtectConfigurationRuleSetNumberOverrideOutcome; typedef Aws::Utils::Outcome PutRegistrationFieldValueOutcome; typedef Aws::Utils::Outcome PutResourcePolicyOutcome; typedef Aws::Utils::Outcome ReleasePhoneNumberOutcome; @@ -320,6 +334,7 @@ namespace Aws typedef Aws::Utils::Outcome SendTextMessageOutcome; typedef Aws::Utils::Outcome SendVoiceMessageOutcome; typedef Aws::Utils::Outcome SetAccountDefaultProtectConfigurationOutcome; + typedef Aws::Utils::Outcome SetDefaultMessageFeedbackEnabledOutcome; typedef Aws::Utils::Outcome SetDefaultMessageTypeOutcome; typedef Aws::Utils::Outcome SetDefaultSenderIdOutcome; typedef Aws::Utils::Outcome SetMediaMessageSpendLimitOverrideOutcome; @@ -361,6 +376,7 @@ namespace Aws typedef std::future DeleteOptedOutNumberOutcomeCallable; typedef std::future DeletePoolOutcomeCallable; typedef std::future DeleteProtectConfigurationOutcomeCallable; + typedef std::future DeleteProtectConfigurationRuleSetNumberOverrideOutcomeCallable; typedef std::future DeleteRegistrationOutcomeCallable; typedef std::future DeleteRegistrationAttachmentOutcomeCallable; typedef std::future DeleteRegistrationFieldValueOutcomeCallable; @@ -393,10 +409,13 @@ namespace Aws typedef std::future GetProtectConfigurationCountryRuleSetOutcomeCallable; typedef std::future GetResourcePolicyOutcomeCallable; typedef std::future ListPoolOriginationIdentitiesOutcomeCallable; + typedef std::future ListProtectConfigurationRuleSetNumberOverridesOutcomeCallable; typedef std::future ListRegistrationAssociationsOutcomeCallable; typedef std::future ListTagsForResourceOutcomeCallable; typedef std::future PutKeywordOutcomeCallable; + typedef std::future PutMessageFeedbackOutcomeCallable; typedef std::future PutOptedOutNumberOutcomeCallable; + typedef std::future PutProtectConfigurationRuleSetNumberOverrideOutcomeCallable; typedef std::future PutRegistrationFieldValueOutcomeCallable; typedef std::future PutResourcePolicyOutcomeCallable; typedef std::future ReleasePhoneNumberOutcomeCallable; @@ -408,6 +427,7 @@ namespace Aws typedef std::future SendTextMessageOutcomeCallable; typedef std::future SendVoiceMessageOutcomeCallable; typedef std::future SetAccountDefaultProtectConfigurationOutcomeCallable; + typedef std::future SetDefaultMessageFeedbackEnabledOutcomeCallable; typedef std::future SetDefaultMessageTypeOutcomeCallable; typedef std::future SetDefaultSenderIdOutcomeCallable; typedef std::future SetMediaMessageSpendLimitOverrideOutcomeCallable; @@ -452,6 +472,7 @@ namespace Aws typedef std::function&) > DeleteOptedOutNumberResponseReceivedHandler; typedef std::function&) > DeletePoolResponseReceivedHandler; typedef std::function&) > DeleteProtectConfigurationResponseReceivedHandler; + typedef std::function&) > DeleteProtectConfigurationRuleSetNumberOverrideResponseReceivedHandler; typedef std::function&) > DeleteRegistrationResponseReceivedHandler; typedef std::function&) > DeleteRegistrationAttachmentResponseReceivedHandler; typedef std::function&) > DeleteRegistrationFieldValueResponseReceivedHandler; @@ -484,10 +505,13 @@ namespace Aws typedef std::function&) > GetProtectConfigurationCountryRuleSetResponseReceivedHandler; typedef std::function&) > GetResourcePolicyResponseReceivedHandler; typedef std::function&) > ListPoolOriginationIdentitiesResponseReceivedHandler; + typedef std::function&) > ListProtectConfigurationRuleSetNumberOverridesResponseReceivedHandler; typedef std::function&) > ListRegistrationAssociationsResponseReceivedHandler; typedef std::function&) > ListTagsForResourceResponseReceivedHandler; typedef std::function&) > PutKeywordResponseReceivedHandler; + typedef std::function&) > PutMessageFeedbackResponseReceivedHandler; typedef std::function&) > PutOptedOutNumberResponseReceivedHandler; + typedef std::function&) > PutProtectConfigurationRuleSetNumberOverrideResponseReceivedHandler; typedef std::function&) > PutRegistrationFieldValueResponseReceivedHandler; typedef std::function&) > PutResourcePolicyResponseReceivedHandler; typedef std::function&) > ReleasePhoneNumberResponseReceivedHandler; @@ -499,6 +523,7 @@ namespace Aws typedef std::function&) > SendTextMessageResponseReceivedHandler; typedef std::function&) > SendVoiceMessageResponseReceivedHandler; typedef std::function&) > SetAccountDefaultProtectConfigurationResponseReceivedHandler; + typedef std::function&) > SetDefaultMessageFeedbackEnabledResponseReceivedHandler; typedef std::function&) > SetDefaultMessageTypeResponseReceivedHandler; typedef std::function&) > SetDefaultSenderIdResponseReceivedHandler; typedef std::function&) > SetMediaMessageSpendLimitOverrideResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ConfigurationSetFilterName.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ConfigurationSetFilterName.h index fc26318420e..6c1652a421f 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ConfigurationSetFilterName.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ConfigurationSetFilterName.h @@ -20,6 +20,7 @@ namespace Model matching_event_types, default_message_type, default_sender_id, + default_message_feedback_enabled, protect_configuration_id }; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ConfigurationSetInformation.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ConfigurationSetInformation.h index f24331c82b7..52dee961f12 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ConfigurationSetInformation.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ConfigurationSetInformation.h @@ -113,6 +113,16 @@ namespace Model inline ConfigurationSetInformation& WithDefaultSenderId(const char* value) { SetDefaultSenderId(value); return *this;} ///@} + ///@{ + /** + *

    True if message feedback is enabled.

    + */ + inline bool GetDefaultMessageFeedbackEnabled() const{ return m_defaultMessageFeedbackEnabled; } + inline bool DefaultMessageFeedbackEnabledHasBeenSet() const { return m_defaultMessageFeedbackEnabledHasBeenSet; } + inline void SetDefaultMessageFeedbackEnabled(bool value) { m_defaultMessageFeedbackEnabledHasBeenSet = true; m_defaultMessageFeedbackEnabled = value; } + inline ConfigurationSetInformation& WithDefaultMessageFeedbackEnabled(bool value) { SetDefaultMessageFeedbackEnabled(value); return *this;} + ///@} + ///@{ /** *

    The time when the ConfigurationSet was created, in True if the configuration set has message feedback enabled. By default this + * is set to false.

    + */ + inline bool GetDefaultMessageFeedbackEnabled() const{ return m_defaultMessageFeedbackEnabled; } + inline void SetDefaultMessageFeedbackEnabled(bool value) { m_defaultMessageFeedbackEnabled = value; } + inline DeleteConfigurationSetResult& WithDefaultMessageFeedbackEnabled(bool value) { SetDefaultMessageFeedbackEnabled(value); return *this;} + ///@} + ///@{ /** *

    The time that the deleted configuration set was created in +#include +#include +#include + +namespace Aws +{ +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + + /** + */ + class DeleteProtectConfigurationRuleSetNumberOverrideRequest : public PinpointSMSVoiceV2Request + { + public: + AWS_PINPOINTSMSVOICEV2_API DeleteProtectConfigurationRuleSetNumberOverrideRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteProtectConfigurationRuleSetNumberOverride"; } + + AWS_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; + + AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    The unique identifier for the protect configuration.

    + */ + inline const Aws::String& GetProtectConfigurationId() const{ return m_protectConfigurationId; } + inline bool ProtectConfigurationIdHasBeenSet() const { return m_protectConfigurationIdHasBeenSet; } + inline void SetProtectConfigurationId(const Aws::String& value) { m_protectConfigurationIdHasBeenSet = true; m_protectConfigurationId = value; } + inline void SetProtectConfigurationId(Aws::String&& value) { m_protectConfigurationIdHasBeenSet = true; m_protectConfigurationId = std::move(value); } + inline void SetProtectConfigurationId(const char* value) { m_protectConfigurationIdHasBeenSet = true; m_protectConfigurationId.assign(value); } + inline DeleteProtectConfigurationRuleSetNumberOverrideRequest& WithProtectConfigurationId(const Aws::String& value) { SetProtectConfigurationId(value); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideRequest& WithProtectConfigurationId(Aws::String&& value) { SetProtectConfigurationId(std::move(value)); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideRequest& WithProtectConfigurationId(const char* value) { SetProtectConfigurationId(value); return *this;} + ///@} + + ///@{ + /** + *

    The destination phone number in E.164 format.

    + */ + inline const Aws::String& GetDestinationPhoneNumber() const{ return m_destinationPhoneNumber; } + inline bool DestinationPhoneNumberHasBeenSet() const { return m_destinationPhoneNumberHasBeenSet; } + inline void SetDestinationPhoneNumber(const Aws::String& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = value; } + inline void SetDestinationPhoneNumber(Aws::String&& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = std::move(value); } + inline void SetDestinationPhoneNumber(const char* value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber.assign(value); } + inline DeleteProtectConfigurationRuleSetNumberOverrideRequest& WithDestinationPhoneNumber(const Aws::String& value) { SetDestinationPhoneNumber(value); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideRequest& WithDestinationPhoneNumber(Aws::String&& value) { SetDestinationPhoneNumber(std::move(value)); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideRequest& WithDestinationPhoneNumber(const char* value) { SetDestinationPhoneNumber(value); return *this;} + ///@} + private: + + Aws::String m_protectConfigurationId; + bool m_protectConfigurationIdHasBeenSet = false; + + Aws::String m_destinationPhoneNumber; + bool m_destinationPhoneNumberHasBeenSet = false; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteProtectConfigurationRuleSetNumberOverrideResult.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteProtectConfigurationRuleSetNumberOverrideResult.h new file mode 100644 index 00000000000..083105fd95c --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteProtectConfigurationRuleSetNumberOverrideResult.h @@ -0,0 +1,156 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + class DeleteProtectConfigurationRuleSetNumberOverrideResult + { + public: + AWS_PINPOINTSMSVOICEV2_API DeleteProtectConfigurationRuleSetNumberOverrideResult(); + AWS_PINPOINTSMSVOICEV2_API DeleteProtectConfigurationRuleSetNumberOverrideResult(const Aws::AmazonWebServiceResult& result); + AWS_PINPOINTSMSVOICEV2_API DeleteProtectConfigurationRuleSetNumberOverrideResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the protect configuration.

    + */ + inline const Aws::String& GetProtectConfigurationArn() const{ return m_protectConfigurationArn; } + inline void SetProtectConfigurationArn(const Aws::String& value) { m_protectConfigurationArn = value; } + inline void SetProtectConfigurationArn(Aws::String&& value) { m_protectConfigurationArn = std::move(value); } + inline void SetProtectConfigurationArn(const char* value) { m_protectConfigurationArn.assign(value); } + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithProtectConfigurationArn(const Aws::String& value) { SetProtectConfigurationArn(value); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithProtectConfigurationArn(Aws::String&& value) { SetProtectConfigurationArn(std::move(value)); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithProtectConfigurationArn(const char* value) { SetProtectConfigurationArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The unique identifier for the protect configuration.

    + */ + inline const Aws::String& GetProtectConfigurationId() const{ return m_protectConfigurationId; } + inline void SetProtectConfigurationId(const Aws::String& value) { m_protectConfigurationId = value; } + inline void SetProtectConfigurationId(Aws::String&& value) { m_protectConfigurationId = std::move(value); } + inline void SetProtectConfigurationId(const char* value) { m_protectConfigurationId.assign(value); } + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithProtectConfigurationId(const Aws::String& value) { SetProtectConfigurationId(value); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithProtectConfigurationId(Aws::String&& value) { SetProtectConfigurationId(std::move(value)); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithProtectConfigurationId(const char* value) { SetProtectConfigurationId(value); return *this;} + ///@} + + ///@{ + /** + *

    The destination phone number in E.164 format.

    + */ + inline const Aws::String& GetDestinationPhoneNumber() const{ return m_destinationPhoneNumber; } + inline void SetDestinationPhoneNumber(const Aws::String& value) { m_destinationPhoneNumber = value; } + inline void SetDestinationPhoneNumber(Aws::String&& value) { m_destinationPhoneNumber = std::move(value); } + inline void SetDestinationPhoneNumber(const char* value) { m_destinationPhoneNumber.assign(value); } + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithDestinationPhoneNumber(const Aws::String& value) { SetDestinationPhoneNumber(value); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithDestinationPhoneNumber(Aws::String&& value) { SetDestinationPhoneNumber(std::move(value)); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithDestinationPhoneNumber(const char* value) { SetDestinationPhoneNumber(value); return *this;} + ///@} + + ///@{ + /** + *

    The time when the rule was created, in UNIX epoch time format.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The action associated with the rule.

    + */ + inline const ProtectConfigurationRuleOverrideAction& GetAction() const{ return m_action; } + inline void SetAction(const ProtectConfigurationRuleOverrideAction& value) { m_action = value; } + inline void SetAction(ProtectConfigurationRuleOverrideAction&& value) { m_action = std::move(value); } + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithAction(const ProtectConfigurationRuleOverrideAction& value) { SetAction(value); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithAction(ProtectConfigurationRuleOverrideAction&& value) { SetAction(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The two-character code, in ISO 3166-1 alpha-2 format, for the country or + * region.

    + */ + inline const Aws::String& GetIsoCountryCode() const{ return m_isoCountryCode; } + inline void SetIsoCountryCode(const Aws::String& value) { m_isoCountryCode = value; } + inline void SetIsoCountryCode(Aws::String&& value) { m_isoCountryCode = std::move(value); } + inline void SetIsoCountryCode(const char* value) { m_isoCountryCode.assign(value); } + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithIsoCountryCode(const Aws::String& value) { SetIsoCountryCode(value); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithIsoCountryCode(Aws::String&& value) { SetIsoCountryCode(std::move(value)); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithIsoCountryCode(const char* value) { SetIsoCountryCode(value); return *this;} + ///@} + + ///@{ + /** + *

    The time when the resource-based policy was created, in UNIX epoch time format.

    + */ + inline const Aws::Utils::DateTime& GetExpirationTimestamp() const{ return m_expirationTimestamp; } + inline void SetExpirationTimestamp(const Aws::Utils::DateTime& value) { m_expirationTimestamp = value; } + inline void SetExpirationTimestamp(Aws::Utils::DateTime&& value) { m_expirationTimestamp = std::move(value); } + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithExpirationTimestamp(const Aws::Utils::DateTime& value) { SetExpirationTimestamp(value); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithExpirationTimestamp(Aws::Utils::DateTime&& value) { SetExpirationTimestamp(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DeleteProtectConfigurationRuleSetNumberOverrideResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_protectConfigurationArn; + + Aws::String m_protectConfigurationId; + + Aws::String m_destinationPhoneNumber; + + Aws::Utils::DateTime m_createdTimestamp; + + ProtectConfigurationRuleOverrideAction m_action; + + Aws::String m_isoCountryCode; + + Aws::Utils::DateTime m_expirationTimestamp; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeVerifiedDestinationNumbersRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeVerifiedDestinationNumbersRequest.h index 4cd8a9e8ced..5617644e61d 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeVerifiedDestinationNumbersRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeVerifiedDestinationNumbersRequest.h @@ -38,7 +38,7 @@ namespace Model ///@{ /** - *

    An array of VerifiedDestinationNumberid to retreive.

    + *

    An array of VerifiedDestinationNumberid to retrieve.

    */ inline const Aws::Vector& GetVerifiedDestinationNumberIds() const{ return m_verifiedDestinationNumberIds; } inline bool VerifiedDestinationNumberIdsHasBeenSet() const { return m_verifiedDestinationNumberIdsHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/EventType.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/EventType.h index 67135987169..459ef73a437 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/EventType.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/EventType.h @@ -32,6 +32,7 @@ namespace Model TEXT_SPAM, TEXT_UNKNOWN, TEXT_TTL_EXPIRED, + TEXT_PROTECT_BLOCKED, VOICE_ALL, VOICE_INITIATED, VOICE_RINGING, diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ListProtectConfigurationRuleSetNumberOverridesRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ListProtectConfigurationRuleSetNumberOverridesRequest.h new file mode 100644 index 00000000000..e93ba5914d0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ListProtectConfigurationRuleSetNumberOverridesRequest.h @@ -0,0 +1,109 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + + /** + */ + class ListProtectConfigurationRuleSetNumberOverridesRequest : public PinpointSMSVoiceV2Request + { + public: + AWS_PINPOINTSMSVOICEV2_API ListProtectConfigurationRuleSetNumberOverridesRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListProtectConfigurationRuleSetNumberOverrides"; } + + AWS_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; + + AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    The unique identifier for the protect configuration.

    + */ + inline const Aws::String& GetProtectConfigurationId() const{ return m_protectConfigurationId; } + inline bool ProtectConfigurationIdHasBeenSet() const { return m_protectConfigurationIdHasBeenSet; } + inline void SetProtectConfigurationId(const Aws::String& value) { m_protectConfigurationIdHasBeenSet = true; m_protectConfigurationId = value; } + inline void SetProtectConfigurationId(Aws::String&& value) { m_protectConfigurationIdHasBeenSet = true; m_protectConfigurationId = std::move(value); } + inline void SetProtectConfigurationId(const char* value) { m_protectConfigurationIdHasBeenSet = true; m_protectConfigurationId.assign(value); } + inline ListProtectConfigurationRuleSetNumberOverridesRequest& WithProtectConfigurationId(const Aws::String& value) { SetProtectConfigurationId(value); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesRequest& WithProtectConfigurationId(Aws::String&& value) { SetProtectConfigurationId(std::move(value)); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesRequest& WithProtectConfigurationId(const char* value) { SetProtectConfigurationId(value); return *this;} + ///@} + + ///@{ + /** + *

    An array of ProtectConfigurationRuleSetNumberOverrideFilterItem objects to + * filter the results.

    + */ + inline const Aws::Vector& GetFilters() const{ return m_filters; } + inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } + inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } + inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } + inline ListProtectConfigurationRuleSetNumberOverridesRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesRequest& AddFilters(const ProtectConfigurationRuleSetNumberOverrideFilterItem& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } + inline ListProtectConfigurationRuleSetNumberOverridesRequest& AddFilters(ProtectConfigurationRuleSetNumberOverrideFilterItem&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The token to be used for the next set of paginated results. You don't need to + * supply a value for this field in the initial request.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListProtectConfigurationRuleSetNumberOverridesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of results to return per each request.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListProtectConfigurationRuleSetNumberOverridesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + private: + + Aws::String m_protectConfigurationId; + bool m_protectConfigurationIdHasBeenSet = false; + + Aws::Vector m_filters; + bool m_filtersHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ListProtectConfigurationRuleSetNumberOverridesResult.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ListProtectConfigurationRuleSetNumberOverridesResult.h new file mode 100644 index 00000000000..73cd723aba6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ListProtectConfigurationRuleSetNumberOverridesResult.h @@ -0,0 +1,115 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + class ListProtectConfigurationRuleSetNumberOverridesResult + { + public: + AWS_PINPOINTSMSVOICEV2_API ListProtectConfigurationRuleSetNumberOverridesResult(); + AWS_PINPOINTSMSVOICEV2_API ListProtectConfigurationRuleSetNumberOverridesResult(const Aws::AmazonWebServiceResult& result); + AWS_PINPOINTSMSVOICEV2_API ListProtectConfigurationRuleSetNumberOverridesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the protect configuration.

    + */ + inline const Aws::String& GetProtectConfigurationArn() const{ return m_protectConfigurationArn; } + inline void SetProtectConfigurationArn(const Aws::String& value) { m_protectConfigurationArn = value; } + inline void SetProtectConfigurationArn(Aws::String&& value) { m_protectConfigurationArn = std::move(value); } + inline void SetProtectConfigurationArn(const char* value) { m_protectConfigurationArn.assign(value); } + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithProtectConfigurationArn(const Aws::String& value) { SetProtectConfigurationArn(value); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithProtectConfigurationArn(Aws::String&& value) { SetProtectConfigurationArn(std::move(value)); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithProtectConfigurationArn(const char* value) { SetProtectConfigurationArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The unique identifier for the protect configuration.

    + */ + inline const Aws::String& GetProtectConfigurationId() const{ return m_protectConfigurationId; } + inline void SetProtectConfigurationId(const Aws::String& value) { m_protectConfigurationId = value; } + inline void SetProtectConfigurationId(Aws::String&& value) { m_protectConfigurationId = std::move(value); } + inline void SetProtectConfigurationId(const char* value) { m_protectConfigurationId.assign(value); } + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithProtectConfigurationId(const Aws::String& value) { SetProtectConfigurationId(value); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithProtectConfigurationId(Aws::String&& value) { SetProtectConfigurationId(std::move(value)); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithProtectConfigurationId(const char* value) { SetProtectConfigurationId(value); return *this;} + ///@} + + ///@{ + /** + *

    An array of RuleSetNumberOverrides objects.

    + */ + inline const Aws::Vector& GetRuleSetNumberOverrides() const{ return m_ruleSetNumberOverrides; } + inline void SetRuleSetNumberOverrides(const Aws::Vector& value) { m_ruleSetNumberOverrides = value; } + inline void SetRuleSetNumberOverrides(Aws::Vector&& value) { m_ruleSetNumberOverrides = std::move(value); } + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithRuleSetNumberOverrides(const Aws::Vector& value) { SetRuleSetNumberOverrides(value); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithRuleSetNumberOverrides(Aws::Vector&& value) { SetRuleSetNumberOverrides(std::move(value)); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesResult& AddRuleSetNumberOverrides(const ProtectConfigurationRuleSetNumberOverride& value) { m_ruleSetNumberOverrides.push_back(value); return *this; } + inline ListProtectConfigurationRuleSetNumberOverridesResult& AddRuleSetNumberOverrides(ProtectConfigurationRuleSetNumberOverride&& value) { m_ruleSetNumberOverrides.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The token to be used for the next set of paginated results. You don't need to + * supply a value for this field in the initial request.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListProtectConfigurationRuleSetNumberOverridesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_protectConfigurationArn; + + Aws::String m_protectConfigurationId; + + Aws::Vector m_ruleSetNumberOverrides; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/MessageFeedbackStatus.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/MessageFeedbackStatus.h new file mode 100644 index 00000000000..1900be15472 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/MessageFeedbackStatus.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + enum class MessageFeedbackStatus + { + NOT_SET, + RECEIVED, + FAILED + }; + +namespace MessageFeedbackStatusMapper +{ +AWS_PINPOINTSMSVOICEV2_API MessageFeedbackStatus GetMessageFeedbackStatusForName(const Aws::String& name); + +AWS_PINPOINTSMSVOICEV2_API Aws::String GetNameForMessageFeedbackStatus(MessageFeedbackStatus value); +} // namespace MessageFeedbackStatusMapper +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleOverrideAction.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleOverrideAction.h new file mode 100644 index 00000000000..8ab362c82ec --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleOverrideAction.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + enum class ProtectConfigurationRuleOverrideAction + { + NOT_SET, + ALLOW, + BLOCK + }; + +namespace ProtectConfigurationRuleOverrideActionMapper +{ +AWS_PINPOINTSMSVOICEV2_API ProtectConfigurationRuleOverrideAction GetProtectConfigurationRuleOverrideActionForName(const Aws::String& name); + +AWS_PINPOINTSMSVOICEV2_API Aws::String GetNameForProtectConfigurationRuleOverrideAction(ProtectConfigurationRuleOverrideAction value); +} // namespace ProtectConfigurationRuleOverrideActionMapper +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleSetNumberOverride.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleSetNumberOverride.h new file mode 100644 index 00000000000..d6c435c94c5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleSetNumberOverride.h @@ -0,0 +1,129 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + + /** + *

    Provides details on a RuleSetNumberOverride.

    See Also:

    AWS + * API Reference

    + */ + class ProtectConfigurationRuleSetNumberOverride + { + public: + AWS_PINPOINTSMSVOICEV2_API ProtectConfigurationRuleSetNumberOverride(); + AWS_PINPOINTSMSVOICEV2_API ProtectConfigurationRuleSetNumberOverride(Aws::Utils::Json::JsonView jsonValue); + AWS_PINPOINTSMSVOICEV2_API ProtectConfigurationRuleSetNumberOverride& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_PINPOINTSMSVOICEV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The destination phone number in E.164 format.

    + */ + inline const Aws::String& GetDestinationPhoneNumber() const{ return m_destinationPhoneNumber; } + inline bool DestinationPhoneNumberHasBeenSet() const { return m_destinationPhoneNumberHasBeenSet; } + inline void SetDestinationPhoneNumber(const Aws::String& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = value; } + inline void SetDestinationPhoneNumber(Aws::String&& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = std::move(value); } + inline void SetDestinationPhoneNumber(const char* value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber.assign(value); } + inline ProtectConfigurationRuleSetNumberOverride& WithDestinationPhoneNumber(const Aws::String& value) { SetDestinationPhoneNumber(value); return *this;} + inline ProtectConfigurationRuleSetNumberOverride& WithDestinationPhoneNumber(Aws::String&& value) { SetDestinationPhoneNumber(std::move(value)); return *this;} + inline ProtectConfigurationRuleSetNumberOverride& WithDestinationPhoneNumber(const char* value) { SetDestinationPhoneNumber(value); return *this;} + ///@} + + ///@{ + /** + *

    The time when the rule was created, in UNIX epoch time format.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } + inline ProtectConfigurationRuleSetNumberOverride& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + inline ProtectConfigurationRuleSetNumberOverride& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The action for the rule to perform of either blocking or allowing messages to + * the destination phone number.

    + */ + inline const ProtectConfigurationRuleOverrideAction& GetAction() const{ return m_action; } + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + inline void SetAction(const ProtectConfigurationRuleOverrideAction& value) { m_actionHasBeenSet = true; m_action = value; } + inline void SetAction(ProtectConfigurationRuleOverrideAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + inline ProtectConfigurationRuleSetNumberOverride& WithAction(const ProtectConfigurationRuleOverrideAction& value) { SetAction(value); return *this;} + inline ProtectConfigurationRuleSetNumberOverride& WithAction(ProtectConfigurationRuleOverrideAction&& value) { SetAction(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The two-character code, in ISO 3166-1 alpha-2 format, for the country or + * region.

    + */ + inline const Aws::String& GetIsoCountryCode() const{ return m_isoCountryCode; } + inline bool IsoCountryCodeHasBeenSet() const { return m_isoCountryCodeHasBeenSet; } + inline void SetIsoCountryCode(const Aws::String& value) { m_isoCountryCodeHasBeenSet = true; m_isoCountryCode = value; } + inline void SetIsoCountryCode(Aws::String&& value) { m_isoCountryCodeHasBeenSet = true; m_isoCountryCode = std::move(value); } + inline void SetIsoCountryCode(const char* value) { m_isoCountryCodeHasBeenSet = true; m_isoCountryCode.assign(value); } + inline ProtectConfigurationRuleSetNumberOverride& WithIsoCountryCode(const Aws::String& value) { SetIsoCountryCode(value); return *this;} + inline ProtectConfigurationRuleSetNumberOverride& WithIsoCountryCode(Aws::String&& value) { SetIsoCountryCode(std::move(value)); return *this;} + inline ProtectConfigurationRuleSetNumberOverride& WithIsoCountryCode(const char* value) { SetIsoCountryCode(value); return *this;} + ///@} + + ///@{ + /** + *

    The time the rule will expire at. If ExpirationTimestamp is not + * set then the rule will not expire.

    + */ + inline const Aws::Utils::DateTime& GetExpirationTimestamp() const{ return m_expirationTimestamp; } + inline bool ExpirationTimestampHasBeenSet() const { return m_expirationTimestampHasBeenSet; } + inline void SetExpirationTimestamp(const Aws::Utils::DateTime& value) { m_expirationTimestampHasBeenSet = true; m_expirationTimestamp = value; } + inline void SetExpirationTimestamp(Aws::Utils::DateTime&& value) { m_expirationTimestampHasBeenSet = true; m_expirationTimestamp = std::move(value); } + inline ProtectConfigurationRuleSetNumberOverride& WithExpirationTimestamp(const Aws::Utils::DateTime& value) { SetExpirationTimestamp(value); return *this;} + inline ProtectConfigurationRuleSetNumberOverride& WithExpirationTimestamp(Aws::Utils::DateTime&& value) { SetExpirationTimestamp(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_destinationPhoneNumber; + bool m_destinationPhoneNumberHasBeenSet = false; + + Aws::Utils::DateTime m_createdTimestamp; + bool m_createdTimestampHasBeenSet = false; + + ProtectConfigurationRuleOverrideAction m_action; + bool m_actionHasBeenSet = false; + + Aws::String m_isoCountryCode; + bool m_isoCountryCodeHasBeenSet = false; + + Aws::Utils::DateTime m_expirationTimestamp; + bool m_expirationTimestampHasBeenSet = false; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleSetNumberOverrideFilterItem.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleSetNumberOverrideFilterItem.h new file mode 100644 index 00000000000..ca2a7d12b7a --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleSetNumberOverrideFilterItem.h @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + + /** + *

    The information for a protect configuration rule set number override that + * meets a specified criteria.

    See Also:

    AWS + * API Reference

    + */ + class ProtectConfigurationRuleSetNumberOverrideFilterItem + { + public: + AWS_PINPOINTSMSVOICEV2_API ProtectConfigurationRuleSetNumberOverrideFilterItem(); + AWS_PINPOINTSMSVOICEV2_API ProtectConfigurationRuleSetNumberOverrideFilterItem(Aws::Utils::Json::JsonView jsonValue); + AWS_PINPOINTSMSVOICEV2_API ProtectConfigurationRuleSetNumberOverrideFilterItem& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_PINPOINTSMSVOICEV2_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The name of the attribute to filter on.

    + */ + inline const ProtectConfigurationRuleSetNumberOverrideFilterName& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const ProtectConfigurationRuleSetNumberOverrideFilterName& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(ProtectConfigurationRuleSetNumberOverrideFilterName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline ProtectConfigurationRuleSetNumberOverrideFilterItem& WithName(const ProtectConfigurationRuleSetNumberOverrideFilterName& value) { SetName(value); return *this;} + inline ProtectConfigurationRuleSetNumberOverrideFilterItem& WithName(ProtectConfigurationRuleSetNumberOverrideFilterName&& value) { SetName(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    An array values to filter for.

    + */ + inline const Aws::Vector& GetValues() const{ return m_values; } + inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } + inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } + inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } + inline ProtectConfigurationRuleSetNumberOverrideFilterItem& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} + inline ProtectConfigurationRuleSetNumberOverrideFilterItem& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} + inline ProtectConfigurationRuleSetNumberOverrideFilterItem& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + inline ProtectConfigurationRuleSetNumberOverrideFilterItem& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } + inline ProtectConfigurationRuleSetNumberOverrideFilterItem& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + ///@} + private: + + ProtectConfigurationRuleSetNumberOverrideFilterName m_name; + bool m_nameHasBeenSet = false; + + Aws::Vector m_values; + bool m_valuesHasBeenSet = false; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleSetNumberOverrideFilterName.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleSetNumberOverrideFilterName.h new file mode 100644 index 00000000000..80cddbe7061 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ProtectConfigurationRuleSetNumberOverrideFilterName.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + enum class ProtectConfigurationRuleSetNumberOverrideFilterName + { + NOT_SET, + iso_country_code, + destination_phone_number_begins_with, + action, + expires_before, + expires_after, + created_before, + created_after + }; + +namespace ProtectConfigurationRuleSetNumberOverrideFilterNameMapper +{ +AWS_PINPOINTSMSVOICEV2_API ProtectConfigurationRuleSetNumberOverrideFilterName GetProtectConfigurationRuleSetNumberOverrideFilterNameForName(const Aws::String& name); + +AWS_PINPOINTSMSVOICEV2_API Aws::String GetNameForProtectConfigurationRuleSetNumberOverrideFilterName(ProtectConfigurationRuleSetNumberOverrideFilterName value); +} // namespace ProtectConfigurationRuleSetNumberOverrideFilterNameMapper +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutMessageFeedbackRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutMessageFeedbackRequest.h new file mode 100644 index 00000000000..00bd32b0bd0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutMessageFeedbackRequest.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + + /** + */ + class PutMessageFeedbackRequest : public PinpointSMSVoiceV2Request + { + public: + AWS_PINPOINTSMSVOICEV2_API PutMessageFeedbackRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "PutMessageFeedback"; } + + AWS_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; + + AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    The unique identifier for the message.

    + */ + inline const Aws::String& GetMessageId() const{ return m_messageId; } + inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; } + inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; } + inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); } + inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); } + inline PutMessageFeedbackRequest& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;} + inline PutMessageFeedbackRequest& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;} + inline PutMessageFeedbackRequest& WithMessageId(const char* value) { SetMessageId(value); return *this;} + ///@} + + ///@{ + /** + *

    Set the message feedback to be either RECEIVED or + * FAILED.

    + */ + inline const MessageFeedbackStatus& GetMessageFeedbackStatus() const{ return m_messageFeedbackStatus; } + inline bool MessageFeedbackStatusHasBeenSet() const { return m_messageFeedbackStatusHasBeenSet; } + inline void SetMessageFeedbackStatus(const MessageFeedbackStatus& value) { m_messageFeedbackStatusHasBeenSet = true; m_messageFeedbackStatus = value; } + inline void SetMessageFeedbackStatus(MessageFeedbackStatus&& value) { m_messageFeedbackStatusHasBeenSet = true; m_messageFeedbackStatus = std::move(value); } + inline PutMessageFeedbackRequest& WithMessageFeedbackStatus(const MessageFeedbackStatus& value) { SetMessageFeedbackStatus(value); return *this;} + inline PutMessageFeedbackRequest& WithMessageFeedbackStatus(MessageFeedbackStatus&& value) { SetMessageFeedbackStatus(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_messageId; + bool m_messageIdHasBeenSet = false; + + MessageFeedbackStatus m_messageFeedbackStatus; + bool m_messageFeedbackStatusHasBeenSet = false; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutMessageFeedbackResult.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutMessageFeedbackResult.h new file mode 100644 index 00000000000..7db6490941f --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutMessageFeedbackResult.h @@ -0,0 +1,81 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + class PutMessageFeedbackResult + { + public: + AWS_PINPOINTSMSVOICEV2_API PutMessageFeedbackResult(); + AWS_PINPOINTSMSVOICEV2_API PutMessageFeedbackResult(const Aws::AmazonWebServiceResult& result); + AWS_PINPOINTSMSVOICEV2_API PutMessageFeedbackResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The unique identifier for the message.

    + */ + inline const Aws::String& GetMessageId() const{ return m_messageId; } + inline void SetMessageId(const Aws::String& value) { m_messageId = value; } + inline void SetMessageId(Aws::String&& value) { m_messageId = std::move(value); } + inline void SetMessageId(const char* value) { m_messageId.assign(value); } + inline PutMessageFeedbackResult& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;} + inline PutMessageFeedbackResult& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;} + inline PutMessageFeedbackResult& WithMessageId(const char* value) { SetMessageId(value); return *this;} + ///@} + + ///@{ + /** + *

    The current status of the message.

    + */ + inline const MessageFeedbackStatus& GetMessageFeedbackStatus() const{ return m_messageFeedbackStatus; } + inline void SetMessageFeedbackStatus(const MessageFeedbackStatus& value) { m_messageFeedbackStatus = value; } + inline void SetMessageFeedbackStatus(MessageFeedbackStatus&& value) { m_messageFeedbackStatus = std::move(value); } + inline PutMessageFeedbackResult& WithMessageFeedbackStatus(const MessageFeedbackStatus& value) { SetMessageFeedbackStatus(value); return *this;} + inline PutMessageFeedbackResult& WithMessageFeedbackStatus(MessageFeedbackStatus&& value) { SetMessageFeedbackStatus(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline PutMessageFeedbackResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline PutMessageFeedbackResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline PutMessageFeedbackResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_messageId; + + MessageFeedbackStatus m_messageFeedbackStatus; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutProtectConfigurationRuleSetNumberOverrideRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutProtectConfigurationRuleSetNumberOverrideRequest.h new file mode 100644 index 00000000000..a55f700de26 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutProtectConfigurationRuleSetNumberOverrideRequest.h @@ -0,0 +1,129 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + + /** + */ + class PutProtectConfigurationRuleSetNumberOverrideRequest : public PinpointSMSVoiceV2Request + { + public: + AWS_PINPOINTSMSVOICEV2_API PutProtectConfigurationRuleSetNumberOverrideRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "PutProtectConfigurationRuleSetNumberOverride"; } + + AWS_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; + + AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    Unique, case-sensitive identifier that you provide to ensure the idempotency + * of the request. If you don't specify a client token, a randomly generated token + * is used for the request to ensure idempotency.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + inline PutProtectConfigurationRuleSetNumberOverrideRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The unique identifier for the protect configuration.

    + */ + inline const Aws::String& GetProtectConfigurationId() const{ return m_protectConfigurationId; } + inline bool ProtectConfigurationIdHasBeenSet() const { return m_protectConfigurationIdHasBeenSet; } + inline void SetProtectConfigurationId(const Aws::String& value) { m_protectConfigurationIdHasBeenSet = true; m_protectConfigurationId = value; } + inline void SetProtectConfigurationId(Aws::String&& value) { m_protectConfigurationIdHasBeenSet = true; m_protectConfigurationId = std::move(value); } + inline void SetProtectConfigurationId(const char* value) { m_protectConfigurationIdHasBeenSet = true; m_protectConfigurationId.assign(value); } + inline PutProtectConfigurationRuleSetNumberOverrideRequest& WithProtectConfigurationId(const Aws::String& value) { SetProtectConfigurationId(value); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideRequest& WithProtectConfigurationId(Aws::String&& value) { SetProtectConfigurationId(std::move(value)); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideRequest& WithProtectConfigurationId(const char* value) { SetProtectConfigurationId(value); return *this;} + ///@} + + ///@{ + /** + *

    The destination phone number in E.164 format.

    + */ + inline const Aws::String& GetDestinationPhoneNumber() const{ return m_destinationPhoneNumber; } + inline bool DestinationPhoneNumberHasBeenSet() const { return m_destinationPhoneNumberHasBeenSet; } + inline void SetDestinationPhoneNumber(const Aws::String& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = value; } + inline void SetDestinationPhoneNumber(Aws::String&& value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber = std::move(value); } + inline void SetDestinationPhoneNumber(const char* value) { m_destinationPhoneNumberHasBeenSet = true; m_destinationPhoneNumber.assign(value); } + inline PutProtectConfigurationRuleSetNumberOverrideRequest& WithDestinationPhoneNumber(const Aws::String& value) { SetDestinationPhoneNumber(value); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideRequest& WithDestinationPhoneNumber(Aws::String&& value) { SetDestinationPhoneNumber(std::move(value)); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideRequest& WithDestinationPhoneNumber(const char* value) { SetDestinationPhoneNumber(value); return *this;} + ///@} + + ///@{ + /** + *

    The action for the rule to either block or allow messages to the destination + * phone number.

    + */ + inline const ProtectConfigurationRuleOverrideAction& GetAction() const{ return m_action; } + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + inline void SetAction(const ProtectConfigurationRuleOverrideAction& value) { m_actionHasBeenSet = true; m_action = value; } + inline void SetAction(ProtectConfigurationRuleOverrideAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + inline PutProtectConfigurationRuleSetNumberOverrideRequest& WithAction(const ProtectConfigurationRuleOverrideAction& value) { SetAction(value); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideRequest& WithAction(ProtectConfigurationRuleOverrideAction&& value) { SetAction(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The time the rule will expire at. If ExpirationTimestamp is not + * set then the rule does not expire.

    + */ + inline const Aws::Utils::DateTime& GetExpirationTimestamp() const{ return m_expirationTimestamp; } + inline bool ExpirationTimestampHasBeenSet() const { return m_expirationTimestampHasBeenSet; } + inline void SetExpirationTimestamp(const Aws::Utils::DateTime& value) { m_expirationTimestampHasBeenSet = true; m_expirationTimestamp = value; } + inline void SetExpirationTimestamp(Aws::Utils::DateTime&& value) { m_expirationTimestampHasBeenSet = true; m_expirationTimestamp = std::move(value); } + inline PutProtectConfigurationRuleSetNumberOverrideRequest& WithExpirationTimestamp(const Aws::Utils::DateTime& value) { SetExpirationTimestamp(value); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideRequest& WithExpirationTimestamp(Aws::Utils::DateTime&& value) { SetExpirationTimestamp(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::String m_protectConfigurationId; + bool m_protectConfigurationIdHasBeenSet = false; + + Aws::String m_destinationPhoneNumber; + bool m_destinationPhoneNumberHasBeenSet = false; + + ProtectConfigurationRuleOverrideAction m_action; + bool m_actionHasBeenSet = false; + + Aws::Utils::DateTime m_expirationTimestamp; + bool m_expirationTimestampHasBeenSet = false; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutProtectConfigurationRuleSetNumberOverrideResult.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutProtectConfigurationRuleSetNumberOverrideResult.h new file mode 100644 index 00000000000..3b4d3e824e3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutProtectConfigurationRuleSetNumberOverrideResult.h @@ -0,0 +1,155 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + class PutProtectConfigurationRuleSetNumberOverrideResult + { + public: + AWS_PINPOINTSMSVOICEV2_API PutProtectConfigurationRuleSetNumberOverrideResult(); + AWS_PINPOINTSMSVOICEV2_API PutProtectConfigurationRuleSetNumberOverrideResult(const Aws::AmazonWebServiceResult& result); + AWS_PINPOINTSMSVOICEV2_API PutProtectConfigurationRuleSetNumberOverrideResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the protect configuration.

    + */ + inline const Aws::String& GetProtectConfigurationArn() const{ return m_protectConfigurationArn; } + inline void SetProtectConfigurationArn(const Aws::String& value) { m_protectConfigurationArn = value; } + inline void SetProtectConfigurationArn(Aws::String&& value) { m_protectConfigurationArn = std::move(value); } + inline void SetProtectConfigurationArn(const char* value) { m_protectConfigurationArn.assign(value); } + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithProtectConfigurationArn(const Aws::String& value) { SetProtectConfigurationArn(value); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithProtectConfigurationArn(Aws::String&& value) { SetProtectConfigurationArn(std::move(value)); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithProtectConfigurationArn(const char* value) { SetProtectConfigurationArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The unique identifier for the protect configuration.

    + */ + inline const Aws::String& GetProtectConfigurationId() const{ return m_protectConfigurationId; } + inline void SetProtectConfigurationId(const Aws::String& value) { m_protectConfigurationId = value; } + inline void SetProtectConfigurationId(Aws::String&& value) { m_protectConfigurationId = std::move(value); } + inline void SetProtectConfigurationId(const char* value) { m_protectConfigurationId.assign(value); } + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithProtectConfigurationId(const Aws::String& value) { SetProtectConfigurationId(value); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithProtectConfigurationId(Aws::String&& value) { SetProtectConfigurationId(std::move(value)); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithProtectConfigurationId(const char* value) { SetProtectConfigurationId(value); return *this;} + ///@} + + ///@{ + /** + *

    The destination phone number in E.164 format.

    + */ + inline const Aws::String& GetDestinationPhoneNumber() const{ return m_destinationPhoneNumber; } + inline void SetDestinationPhoneNumber(const Aws::String& value) { m_destinationPhoneNumber = value; } + inline void SetDestinationPhoneNumber(Aws::String&& value) { m_destinationPhoneNumber = std::move(value); } + inline void SetDestinationPhoneNumber(const char* value) { m_destinationPhoneNumber.assign(value); } + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithDestinationPhoneNumber(const Aws::String& value) { SetDestinationPhoneNumber(value); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithDestinationPhoneNumber(Aws::String&& value) { SetDestinationPhoneNumber(std::move(value)); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithDestinationPhoneNumber(const char* value) { SetDestinationPhoneNumber(value); return *this;} + ///@} + + ///@{ + /** + *

    The time when the rule was created, in UNIX epoch time format.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The action for the rule to take.

    + */ + inline const ProtectConfigurationRuleOverrideAction& GetAction() const{ return m_action; } + inline void SetAction(const ProtectConfigurationRuleOverrideAction& value) { m_action = value; } + inline void SetAction(ProtectConfigurationRuleOverrideAction&& value) { m_action = std::move(value); } + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithAction(const ProtectConfigurationRuleOverrideAction& value) { SetAction(value); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithAction(ProtectConfigurationRuleOverrideAction&& value) { SetAction(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The two-character code, in ISO 3166-1 alpha-2 format, for the country or + * region.

    + */ + inline const Aws::String& GetIsoCountryCode() const{ return m_isoCountryCode; } + inline void SetIsoCountryCode(const Aws::String& value) { m_isoCountryCode = value; } + inline void SetIsoCountryCode(Aws::String&& value) { m_isoCountryCode = std::move(value); } + inline void SetIsoCountryCode(const char* value) { m_isoCountryCode.assign(value); } + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithIsoCountryCode(const Aws::String& value) { SetIsoCountryCode(value); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithIsoCountryCode(Aws::String&& value) { SetIsoCountryCode(std::move(value)); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithIsoCountryCode(const char* value) { SetIsoCountryCode(value); return *this;} + ///@} + + ///@{ + /** + *

    The time the rule will expire at.

    + */ + inline const Aws::Utils::DateTime& GetExpirationTimestamp() const{ return m_expirationTimestamp; } + inline void SetExpirationTimestamp(const Aws::Utils::DateTime& value) { m_expirationTimestamp = value; } + inline void SetExpirationTimestamp(Aws::Utils::DateTime&& value) { m_expirationTimestamp = std::move(value); } + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithExpirationTimestamp(const Aws::Utils::DateTime& value) { SetExpirationTimestamp(value); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithExpirationTimestamp(Aws::Utils::DateTime&& value) { SetExpirationTimestamp(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline PutProtectConfigurationRuleSetNumberOverrideResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_protectConfigurationArn; + + Aws::String m_protectConfigurationId; + + Aws::String m_destinationPhoneNumber; + + Aws::Utils::DateTime m_createdTimestamp; + + ProtectConfigurationRuleOverrideAction m_action; + + Aws::String m_isoCountryCode; + + Aws::Utils::DateTime m_expirationTimestamp; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ResourceType.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ResourceType.h index ed9eda84f16..7f1108587ed 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ResourceType.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ResourceType.h @@ -29,7 +29,8 @@ namespace Model registration_attachment, verified_destination_number, protect_configuration, - policy + policy, + message }; namespace ResourceTypeMapper diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendMediaMessageRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendMediaMessageRequest.h index 64dbf072cd9..f15d845f6ad 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendMediaMessageRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendMediaMessageRequest.h @@ -137,7 +137,7 @@ namespace Model ///@{ /** - *

    How long the text message is valid for. By default this is 72 hours.

    + *

    How long the media message is valid for. By default this is 72 hours.

    */ inline int GetTimeToLive() const{ return m_timeToLive; } inline bool TimeToLiveHasBeenSet() const { return m_timeToLiveHasBeenSet; } @@ -189,6 +189,18 @@ namespace Model inline SendMediaMessageRequest& WithProtectConfigurationId(Aws::String&& value) { SetProtectConfigurationId(std::move(value)); return *this;} inline SendMediaMessageRequest& WithProtectConfigurationId(const char* value) { SetProtectConfigurationId(value); return *this;} ///@} + + ///@{ + /** + *

    Set to true to enable message feedback for the message. When a user receives + * the message you need to update the message status using + * PutMessageFeedback.

    + */ + inline bool GetMessageFeedbackEnabled() const{ return m_messageFeedbackEnabled; } + inline bool MessageFeedbackEnabledHasBeenSet() const { return m_messageFeedbackEnabledHasBeenSet; } + inline void SetMessageFeedbackEnabled(bool value) { m_messageFeedbackEnabledHasBeenSet = true; m_messageFeedbackEnabled = value; } + inline SendMediaMessageRequest& WithMessageFeedbackEnabled(bool value) { SetMessageFeedbackEnabled(value); return *this;} + ///@} private: Aws::String m_destinationPhoneNumber; @@ -220,6 +232,9 @@ namespace Model Aws::String m_protectConfigurationId; bool m_protectConfigurationIdHasBeenSet = false; + + bool m_messageFeedbackEnabled; + bool m_messageFeedbackEnabledHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendTextMessageRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendTextMessageRequest.h index 3e5f8b9c24a..08dcff35dba 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendTextMessageRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendTextMessageRequest.h @@ -235,6 +235,18 @@ namespace Model inline SendTextMessageRequest& WithProtectConfigurationId(Aws::String&& value) { SetProtectConfigurationId(std::move(value)); return *this;} inline SendTextMessageRequest& WithProtectConfigurationId(const char* value) { SetProtectConfigurationId(value); return *this;} ///@} + + ///@{ + /** + *

    Set to true to enable message feedback for the message. When a user receives + * the message you need to update the message status using + * PutMessageFeedback.

    + */ + inline bool GetMessageFeedbackEnabled() const{ return m_messageFeedbackEnabled; } + inline bool MessageFeedbackEnabledHasBeenSet() const { return m_messageFeedbackEnabledHasBeenSet; } + inline void SetMessageFeedbackEnabled(bool value) { m_messageFeedbackEnabledHasBeenSet = true; m_messageFeedbackEnabled = value; } + inline SendTextMessageRequest& WithMessageFeedbackEnabled(bool value) { SetMessageFeedbackEnabled(value); return *this;} + ///@} private: Aws::String m_destinationPhoneNumber; @@ -272,6 +284,9 @@ namespace Model Aws::String m_protectConfigurationId; bool m_protectConfigurationIdHasBeenSet = false; + + bool m_messageFeedbackEnabled; + bool m_messageFeedbackEnabledHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendVoiceMessageRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendVoiceMessageRequest.h index 460d5ea502c..4ef7caa7b30 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendVoiceMessageRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendVoiceMessageRequest.h @@ -195,6 +195,18 @@ namespace Model inline SendVoiceMessageRequest& WithProtectConfigurationId(Aws::String&& value) { SetProtectConfigurationId(std::move(value)); return *this;} inline SendVoiceMessageRequest& WithProtectConfigurationId(const char* value) { SetProtectConfigurationId(value); return *this;} ///@} + + ///@{ + /** + *

    Set to true to enable message feedback for the message. When a user receives + * the message you need to update the message status using + * PutMessageFeedback.

    + */ + inline bool GetMessageFeedbackEnabled() const{ return m_messageFeedbackEnabled; } + inline bool MessageFeedbackEnabledHasBeenSet() const { return m_messageFeedbackEnabledHasBeenSet; } + inline void SetMessageFeedbackEnabled(bool value) { m_messageFeedbackEnabledHasBeenSet = true; m_messageFeedbackEnabled = value; } + inline SendVoiceMessageRequest& WithMessageFeedbackEnabled(bool value) { SetMessageFeedbackEnabled(value); return *this;} + ///@} private: Aws::String m_destinationPhoneNumber; @@ -229,6 +241,9 @@ namespace Model Aws::String m_protectConfigurationId; bool m_protectConfigurationIdHasBeenSet = false; + + bool m_messageFeedbackEnabled; + bool m_messageFeedbackEnabledHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SetDefaultMessageFeedbackEnabledRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SetDefaultMessageFeedbackEnabledRequest.h new file mode 100644 index 00000000000..4b140a8c69f --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SetDefaultMessageFeedbackEnabledRequest.h @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + + /** + */ + class SetDefaultMessageFeedbackEnabledRequest : public PinpointSMSVoiceV2Request + { + public: + AWS_PINPOINTSMSVOICEV2_API SetDefaultMessageFeedbackEnabledRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "SetDefaultMessageFeedbackEnabled"; } + + AWS_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; + + AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    The name of the configuration set to use. This can be either the + * ConfigurationSetName or ConfigurationSetArn.

    + */ + inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; } + inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; } + inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; } + inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); } + inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); } + inline SetDefaultMessageFeedbackEnabledRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;} + inline SetDefaultMessageFeedbackEnabledRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;} + inline SetDefaultMessageFeedbackEnabledRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;} + ///@} + + ///@{ + /** + *

    Set to true to enable message feedback.

    + */ + inline bool GetMessageFeedbackEnabled() const{ return m_messageFeedbackEnabled; } + inline bool MessageFeedbackEnabledHasBeenSet() const { return m_messageFeedbackEnabledHasBeenSet; } + inline void SetMessageFeedbackEnabled(bool value) { m_messageFeedbackEnabledHasBeenSet = true; m_messageFeedbackEnabled = value; } + inline SetDefaultMessageFeedbackEnabledRequest& WithMessageFeedbackEnabled(bool value) { SetMessageFeedbackEnabled(value); return *this;} + ///@} + private: + + Aws::String m_configurationSetName; + bool m_configurationSetNameHasBeenSet = false; + + bool m_messageFeedbackEnabled; + bool m_messageFeedbackEnabledHasBeenSet = false; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SetDefaultMessageFeedbackEnabledResult.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SetDefaultMessageFeedbackEnabledResult.h new file mode 100644 index 00000000000..ae72bb1d777 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SetDefaultMessageFeedbackEnabledResult.h @@ -0,0 +1,93 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + class SetDefaultMessageFeedbackEnabledResult + { + public: + AWS_PINPOINTSMSVOICEV2_API SetDefaultMessageFeedbackEnabledResult(); + AWS_PINPOINTSMSVOICEV2_API SetDefaultMessageFeedbackEnabledResult(const Aws::AmazonWebServiceResult& result); + AWS_PINPOINTSMSVOICEV2_API SetDefaultMessageFeedbackEnabledResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The arn of the configuration set.

    + */ + inline const Aws::String& GetConfigurationSetArn() const{ return m_configurationSetArn; } + inline void SetConfigurationSetArn(const Aws::String& value) { m_configurationSetArn = value; } + inline void SetConfigurationSetArn(Aws::String&& value) { m_configurationSetArn = std::move(value); } + inline void SetConfigurationSetArn(const char* value) { m_configurationSetArn.assign(value); } + inline SetDefaultMessageFeedbackEnabledResult& WithConfigurationSetArn(const Aws::String& value) { SetConfigurationSetArn(value); return *this;} + inline SetDefaultMessageFeedbackEnabledResult& WithConfigurationSetArn(Aws::String&& value) { SetConfigurationSetArn(std::move(value)); return *this;} + inline SetDefaultMessageFeedbackEnabledResult& WithConfigurationSetArn(const char* value) { SetConfigurationSetArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The name of the configuration.

    + */ + inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; } + inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetName = value; } + inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetName = std::move(value); } + inline void SetConfigurationSetName(const char* value) { m_configurationSetName.assign(value); } + inline SetDefaultMessageFeedbackEnabledResult& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;} + inline SetDefaultMessageFeedbackEnabledResult& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;} + inline SetDefaultMessageFeedbackEnabledResult& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;} + ///@} + + ///@{ + /** + *

    True if message feedback is enabled.

    + */ + inline bool GetMessageFeedbackEnabled() const{ return m_messageFeedbackEnabled; } + inline void SetMessageFeedbackEnabled(bool value) { m_messageFeedbackEnabled = value; } + inline SetDefaultMessageFeedbackEnabledResult& WithMessageFeedbackEnabled(bool value) { SetMessageFeedbackEnabled(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline SetDefaultMessageFeedbackEnabledResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline SetDefaultMessageFeedbackEnabledResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline SetDefaultMessageFeedbackEnabledResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_configurationSetArn; + + Aws::String m_configurationSetName; + + bool m_messageFeedbackEnabled; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Client.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Client.cpp index d9deedf9a7f..654d09bccc9 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Client.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Client.cpp @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -76,10 +77,13 @@ #include #include #include +#include #include #include #include +#include #include +#include #include #include #include @@ -91,6 +95,7 @@ #include #include #include +#include #include #include #include @@ -847,6 +852,32 @@ DeleteProtectConfigurationOutcome PinpointSMSVoiceV2Client::DeleteProtectConfigu {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteProtectConfigurationRuleSetNumberOverrideOutcome PinpointSMSVoiceV2Client::DeleteProtectConfigurationRuleSetNumberOverride(const DeleteProtectConfigurationRuleSetNumberOverrideRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteProtectConfigurationRuleSetNumberOverride); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteProtectConfigurationRuleSetNumberOverride, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteProtectConfigurationRuleSetNumberOverride, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteProtectConfigurationRuleSetNumberOverride, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteProtectConfigurationRuleSetNumberOverride", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteProtectConfigurationRuleSetNumberOverrideOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteProtectConfigurationRuleSetNumberOverride, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteProtectConfigurationRuleSetNumberOverrideOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteRegistrationOutcome PinpointSMSVoiceV2Client::DeleteRegistration(const DeleteRegistrationRequest& request) const { AWS_OPERATION_GUARD(DeleteRegistration); @@ -1679,6 +1710,32 @@ ListPoolOriginationIdentitiesOutcome PinpointSMSVoiceV2Client::ListPoolOriginati {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListProtectConfigurationRuleSetNumberOverridesOutcome PinpointSMSVoiceV2Client::ListProtectConfigurationRuleSetNumberOverrides(const ListProtectConfigurationRuleSetNumberOverridesRequest& request) const +{ + AWS_OPERATION_GUARD(ListProtectConfigurationRuleSetNumberOverrides); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListProtectConfigurationRuleSetNumberOverrides, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListProtectConfigurationRuleSetNumberOverrides, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListProtectConfigurationRuleSetNumberOverrides, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListProtectConfigurationRuleSetNumberOverrides", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListProtectConfigurationRuleSetNumberOverridesOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListProtectConfigurationRuleSetNumberOverrides, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListProtectConfigurationRuleSetNumberOverridesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListRegistrationAssociationsOutcome PinpointSMSVoiceV2Client::ListRegistrationAssociations(const ListRegistrationAssociationsRequest& request) const { AWS_OPERATION_GUARD(ListRegistrationAssociations); @@ -1757,6 +1814,32 @@ PutKeywordOutcome PinpointSMSVoiceV2Client::PutKeyword(const PutKeywordRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +PutMessageFeedbackOutcome PinpointSMSVoiceV2Client::PutMessageFeedback(const PutMessageFeedbackRequest& request) const +{ + AWS_OPERATION_GUARD(PutMessageFeedback); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, PutMessageFeedback, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PutMessageFeedback, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, PutMessageFeedback, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".PutMessageFeedback", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> PutMessageFeedbackOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, PutMessageFeedback, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return PutMessageFeedbackOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + PutOptedOutNumberOutcome PinpointSMSVoiceV2Client::PutOptedOutNumber(const PutOptedOutNumberRequest& request) const { AWS_OPERATION_GUARD(PutOptedOutNumber); @@ -1783,6 +1866,32 @@ PutOptedOutNumberOutcome PinpointSMSVoiceV2Client::PutOptedOutNumber(const PutOp {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +PutProtectConfigurationRuleSetNumberOverrideOutcome PinpointSMSVoiceV2Client::PutProtectConfigurationRuleSetNumberOverride(const PutProtectConfigurationRuleSetNumberOverrideRequest& request) const +{ + AWS_OPERATION_GUARD(PutProtectConfigurationRuleSetNumberOverride); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, PutProtectConfigurationRuleSetNumberOverride, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PutProtectConfigurationRuleSetNumberOverride, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, PutProtectConfigurationRuleSetNumberOverride, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".PutProtectConfigurationRuleSetNumberOverride", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> PutProtectConfigurationRuleSetNumberOverrideOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, PutProtectConfigurationRuleSetNumberOverride, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return PutProtectConfigurationRuleSetNumberOverrideOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + PutRegistrationFieldValueOutcome PinpointSMSVoiceV2Client::PutRegistrationFieldValue(const PutRegistrationFieldValueRequest& request) const { AWS_OPERATION_GUARD(PutRegistrationFieldValue); @@ -2069,6 +2178,32 @@ SetAccountDefaultProtectConfigurationOutcome PinpointSMSVoiceV2Client::SetAccoun {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +SetDefaultMessageFeedbackEnabledOutcome PinpointSMSVoiceV2Client::SetDefaultMessageFeedbackEnabled(const SetDefaultMessageFeedbackEnabledRequest& request) const +{ + AWS_OPERATION_GUARD(SetDefaultMessageFeedbackEnabled); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, SetDefaultMessageFeedbackEnabled, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, SetDefaultMessageFeedbackEnabled, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, SetDefaultMessageFeedbackEnabled, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".SetDefaultMessageFeedbackEnabled", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> SetDefaultMessageFeedbackEnabledOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, SetDefaultMessageFeedbackEnabled, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return SetDefaultMessageFeedbackEnabledOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + SetDefaultMessageTypeOutcome PinpointSMSVoiceV2Client::SetDefaultMessageType(const SetDefaultMessageTypeRequest& request) const { AWS_OPERATION_GUARD(SetDefaultMessageType); diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConfigurationSetFilterName.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConfigurationSetFilterName.cpp index bccf5ed7340..668b5629e0e 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConfigurationSetFilterName.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConfigurationSetFilterName.cpp @@ -24,6 +24,7 @@ namespace Aws static const int matching_event_types_HASH = HashingUtils::HashString("matching-event-types"); static const int default_message_type_HASH = HashingUtils::HashString("default-message-type"); static const int default_sender_id_HASH = HashingUtils::HashString("default-sender-id"); + static const int default_message_feedback_enabled_HASH = HashingUtils::HashString("default-message-feedback-enabled"); static const int protect_configuration_id_HASH = HashingUtils::HashString("protect-configuration-id"); @@ -46,6 +47,10 @@ namespace Aws { return ConfigurationSetFilterName::default_sender_id; } + else if (hashCode == default_message_feedback_enabled_HASH) + { + return ConfigurationSetFilterName::default_message_feedback_enabled; + } else if (hashCode == protect_configuration_id_HASH) { return ConfigurationSetFilterName::protect_configuration_id; @@ -74,6 +79,8 @@ namespace Aws return "default-message-type"; case ConfigurationSetFilterName::default_sender_id: return "default-sender-id"; + case ConfigurationSetFilterName::default_message_feedback_enabled: + return "default-message-feedback-enabled"; case ConfigurationSetFilterName::protect_configuration_id: return "protect-configuration-id"; default: diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConfigurationSetInformation.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConfigurationSetInformation.cpp index eeb35d25a4c..f91eadd292a 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConfigurationSetInformation.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConfigurationSetInformation.cpp @@ -25,6 +25,8 @@ ConfigurationSetInformation::ConfigurationSetInformation() : m_defaultMessageType(MessageType::NOT_SET), m_defaultMessageTypeHasBeenSet(false), m_defaultSenderIdHasBeenSet(false), + m_defaultMessageFeedbackEnabled(false), + m_defaultMessageFeedbackEnabledHasBeenSet(false), m_createdTimestampHasBeenSet(false), m_protectConfigurationIdHasBeenSet(false) { @@ -76,6 +78,13 @@ ConfigurationSetInformation& ConfigurationSetInformation::operator =(JsonView js m_defaultSenderIdHasBeenSet = true; } + if(jsonValue.ValueExists("DefaultMessageFeedbackEnabled")) + { + m_defaultMessageFeedbackEnabled = jsonValue.GetBool("DefaultMessageFeedbackEnabled"); + + m_defaultMessageFeedbackEnabledHasBeenSet = true; + } + if(jsonValue.ValueExists("CreatedTimestamp")) { m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); @@ -131,6 +140,12 @@ JsonValue ConfigurationSetInformation::Jsonize() const } + if(m_defaultMessageFeedbackEnabledHasBeenSet) + { + payload.WithBool("DefaultMessageFeedbackEnabled", m_defaultMessageFeedbackEnabled); + + } + if(m_createdTimestampHasBeenSet) { payload.WithDouble("CreatedTimestamp", m_createdTimestamp.SecondsWithMSPrecision()); diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConflictExceptionReason.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConflictExceptionReason.cpp index 5d86dbf5c1e..0ffc8ce20e2 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConflictExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ConflictExceptionReason.cpp @@ -55,6 +55,7 @@ namespace Aws static const int PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET_HASH = HashingUtils::HashString("PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET"); static const int PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET_HASH = HashingUtils::HashString("PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET"); static const int DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION_HASH = HashingUtils::HashString("DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION"); + static const int DESTINATION_PHONE_NUMBER_BLOCKED_BY_PROTECT_NUMBER_OVERRIDE_HASH = HashingUtils::HashString("DESTINATION_PHONE_NUMBER_BLOCKED_BY_PROTECT_NUMBER_OVERRIDE"); ConflictExceptionReason GetConflictExceptionReasonForName(const Aws::String& name) @@ -200,6 +201,10 @@ namespace Aws { return ConflictExceptionReason::DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION; } + else if (hashCode == DESTINATION_PHONE_NUMBER_BLOCKED_BY_PROTECT_NUMBER_OVERRIDE_HASH) + { + return ConflictExceptionReason::DESTINATION_PHONE_NUMBER_BLOCKED_BY_PROTECT_NUMBER_OVERRIDE; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -286,6 +291,8 @@ namespace Aws return "PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET"; case ConflictExceptionReason::DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION: return "DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION"; + case ConflictExceptionReason::DESTINATION_PHONE_NUMBER_BLOCKED_BY_PROTECT_NUMBER_OVERRIDE: + return "DESTINATION_PHONE_NUMBER_BLOCKED_BY_PROTECT_NUMBER_OVERRIDE"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteConfigurationSetResult.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteConfigurationSetResult.cpp index 49bfb46913b..d4e8da7fe63 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteConfigurationSetResult.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteConfigurationSetResult.cpp @@ -18,7 +18,8 @@ using namespace Aws::Utils; using namespace Aws; DeleteConfigurationSetResult::DeleteConfigurationSetResult() : - m_defaultMessageType(MessageType::NOT_SET) + m_defaultMessageType(MessageType::NOT_SET), + m_defaultMessageFeedbackEnabled(false) { } @@ -64,6 +65,12 @@ DeleteConfigurationSetResult& DeleteConfigurationSetResult::operator =(const Aws } + if(jsonValue.ValueExists("DefaultMessageFeedbackEnabled")) + { + m_defaultMessageFeedbackEnabled = jsonValue.GetBool("DefaultMessageFeedbackEnabled"); + + } + if(jsonValue.ValueExists("CreatedTimestamp")) { m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteProtectConfigurationRuleSetNumberOverrideRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteProtectConfigurationRuleSetNumberOverrideRequest.cpp new file mode 100644 index 00000000000..734895c2b65 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteProtectConfigurationRuleSetNumberOverrideRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteProtectConfigurationRuleSetNumberOverrideRequest::DeleteProtectConfigurationRuleSetNumberOverrideRequest() : + m_protectConfigurationIdHasBeenSet(false), + m_destinationPhoneNumberHasBeenSet(false) +{ +} + +Aws::String DeleteProtectConfigurationRuleSetNumberOverrideRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_protectConfigurationIdHasBeenSet) + { + payload.WithString("ProtectConfigurationId", m_protectConfigurationId); + + } + + if(m_destinationPhoneNumberHasBeenSet) + { + payload.WithString("DestinationPhoneNumber", m_destinationPhoneNumber); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection DeleteProtectConfigurationRuleSetNumberOverrideRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PinpointSMSVoiceV2.DeleteProtectConfigurationRuleSetNumberOverride")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteProtectConfigurationRuleSetNumberOverrideResult.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteProtectConfigurationRuleSetNumberOverrideResult.cpp new file mode 100644 index 00000000000..d1e0785b721 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteProtectConfigurationRuleSetNumberOverrideResult.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteProtectConfigurationRuleSetNumberOverrideResult::DeleteProtectConfigurationRuleSetNumberOverrideResult() : + m_action(ProtectConfigurationRuleOverrideAction::NOT_SET) +{ +} + +DeleteProtectConfigurationRuleSetNumberOverrideResult::DeleteProtectConfigurationRuleSetNumberOverrideResult(const Aws::AmazonWebServiceResult& result) + : DeleteProtectConfigurationRuleSetNumberOverrideResult() +{ + *this = result; +} + +DeleteProtectConfigurationRuleSetNumberOverrideResult& DeleteProtectConfigurationRuleSetNumberOverrideResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ProtectConfigurationArn")) + { + m_protectConfigurationArn = jsonValue.GetString("ProtectConfigurationArn"); + + } + + if(jsonValue.ValueExists("ProtectConfigurationId")) + { + m_protectConfigurationId = jsonValue.GetString("ProtectConfigurationId"); + + } + + if(jsonValue.ValueExists("DestinationPhoneNumber")) + { + m_destinationPhoneNumber = jsonValue.GetString("DestinationPhoneNumber"); + + } + + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + } + + if(jsonValue.ValueExists("Action")) + { + m_action = ProtectConfigurationRuleOverrideActionMapper::GetProtectConfigurationRuleOverrideActionForName(jsonValue.GetString("Action")); + + } + + if(jsonValue.ValueExists("IsoCountryCode")) + { + m_isoCountryCode = jsonValue.GetString("IsoCountryCode"); + + } + + if(jsonValue.ValueExists("ExpirationTimestamp")) + { + m_expirationTimestamp = jsonValue.GetDouble("ExpirationTimestamp"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/EventType.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/EventType.cpp index 975f23d7a6f..d006281c086 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/EventType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/EventType.cpp @@ -36,6 +36,7 @@ namespace Aws static const int TEXT_SPAM_HASH = HashingUtils::HashString("TEXT_SPAM"); static const int TEXT_UNKNOWN_HASH = HashingUtils::HashString("TEXT_UNKNOWN"); static const int TEXT_TTL_EXPIRED_HASH = HashingUtils::HashString("TEXT_TTL_EXPIRED"); + static const int TEXT_PROTECT_BLOCKED_HASH = HashingUtils::HashString("TEXT_PROTECT_BLOCKED"); static const int VOICE_ALL_HASH = HashingUtils::HashString("VOICE_ALL"); static const int VOICE_INITIATED_HASH = HashingUtils::HashString("VOICE_INITIATED"); static const int VOICE_RINGING_HASH = HashingUtils::HashString("VOICE_RINGING"); @@ -131,6 +132,10 @@ namespace Aws { return EventType::TEXT_TTL_EXPIRED; } + else if (hashCode == TEXT_PROTECT_BLOCKED_HASH) + { + return EventType::TEXT_PROTECT_BLOCKED; + } else if (hashCode == VOICE_ALL_HASH) { return EventType::VOICE_ALL; @@ -283,6 +288,8 @@ namespace Aws return "TEXT_UNKNOWN"; case EventType::TEXT_TTL_EXPIRED: return "TEXT_TTL_EXPIRED"; + case EventType::TEXT_PROTECT_BLOCKED: + return "TEXT_PROTECT_BLOCKED"; case EventType::VOICE_ALL: return "VOICE_ALL"; case EventType::VOICE_INITIATED: diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ListProtectConfigurationRuleSetNumberOverridesRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ListProtectConfigurationRuleSetNumberOverridesRequest.cpp new file mode 100644 index 00000000000..36db187459f --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ListProtectConfigurationRuleSetNumberOverridesRequest.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListProtectConfigurationRuleSetNumberOverridesRequest::ListProtectConfigurationRuleSetNumberOverridesRequest() : + m_protectConfigurationIdHasBeenSet(false), + m_filtersHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListProtectConfigurationRuleSetNumberOverridesRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_protectConfigurationIdHasBeenSet) + { + payload.WithString("ProtectConfigurationId", m_protectConfigurationId); + + } + + if(m_filtersHasBeenSet) + { + Aws::Utils::Array filtersJsonList(m_filters.size()); + for(unsigned filtersIndex = 0; filtersIndex < filtersJsonList.GetLength(); ++filtersIndex) + { + filtersJsonList[filtersIndex].AsObject(m_filters[filtersIndex].Jsonize()); + } + payload.WithArray("Filters", std::move(filtersJsonList)); + + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("MaxResults", m_maxResults); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListProtectConfigurationRuleSetNumberOverridesRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PinpointSMSVoiceV2.ListProtectConfigurationRuleSetNumberOverrides")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ListProtectConfigurationRuleSetNumberOverridesResult.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ListProtectConfigurationRuleSetNumberOverridesResult.cpp new file mode 100644 index 00000000000..c8b2e268f77 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ListProtectConfigurationRuleSetNumberOverridesResult.cpp @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListProtectConfigurationRuleSetNumberOverridesResult::ListProtectConfigurationRuleSetNumberOverridesResult() +{ +} + +ListProtectConfigurationRuleSetNumberOverridesResult::ListProtectConfigurationRuleSetNumberOverridesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListProtectConfigurationRuleSetNumberOverridesResult& ListProtectConfigurationRuleSetNumberOverridesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ProtectConfigurationArn")) + { + m_protectConfigurationArn = jsonValue.GetString("ProtectConfigurationArn"); + + } + + if(jsonValue.ValueExists("ProtectConfigurationId")) + { + m_protectConfigurationId = jsonValue.GetString("ProtectConfigurationId"); + + } + + if(jsonValue.ValueExists("RuleSetNumberOverrides")) + { + Aws::Utils::Array ruleSetNumberOverridesJsonList = jsonValue.GetArray("RuleSetNumberOverrides"); + for(unsigned ruleSetNumberOverridesIndex = 0; ruleSetNumberOverridesIndex < ruleSetNumberOverridesJsonList.GetLength(); ++ruleSetNumberOverridesIndex) + { + m_ruleSetNumberOverrides.push_back(ruleSetNumberOverridesJsonList[ruleSetNumberOverridesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/MessageFeedbackStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/MessageFeedbackStatus.cpp new file mode 100644 index 00000000000..833f000be64 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/MessageFeedbackStatus.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace PinpointSMSVoiceV2 + { + namespace Model + { + namespace MessageFeedbackStatusMapper + { + + static const int RECEIVED_HASH = HashingUtils::HashString("RECEIVED"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + + + MessageFeedbackStatus GetMessageFeedbackStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == RECEIVED_HASH) + { + return MessageFeedbackStatus::RECEIVED; + } + else if (hashCode == FAILED_HASH) + { + return MessageFeedbackStatus::FAILED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return MessageFeedbackStatus::NOT_SET; + } + + Aws::String GetNameForMessageFeedbackStatus(MessageFeedbackStatus enumValue) + { + switch(enumValue) + { + case MessageFeedbackStatus::NOT_SET: + return {}; + case MessageFeedbackStatus::RECEIVED: + return "RECEIVED"; + case MessageFeedbackStatus::FAILED: + return "FAILED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace MessageFeedbackStatusMapper + } // namespace Model + } // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleOverrideAction.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleOverrideAction.cpp new file mode 100644 index 00000000000..6988ddc40e0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleOverrideAction.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace PinpointSMSVoiceV2 + { + namespace Model + { + namespace ProtectConfigurationRuleOverrideActionMapper + { + + static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); + static const int BLOCK_HASH = HashingUtils::HashString("BLOCK"); + + + ProtectConfigurationRuleOverrideAction GetProtectConfigurationRuleOverrideActionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ALLOW_HASH) + { + return ProtectConfigurationRuleOverrideAction::ALLOW; + } + else if (hashCode == BLOCK_HASH) + { + return ProtectConfigurationRuleOverrideAction::BLOCK; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ProtectConfigurationRuleOverrideAction::NOT_SET; + } + + Aws::String GetNameForProtectConfigurationRuleOverrideAction(ProtectConfigurationRuleOverrideAction enumValue) + { + switch(enumValue) + { + case ProtectConfigurationRuleOverrideAction::NOT_SET: + return {}; + case ProtectConfigurationRuleOverrideAction::ALLOW: + return "ALLOW"; + case ProtectConfigurationRuleOverrideAction::BLOCK: + return "BLOCK"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ProtectConfigurationRuleOverrideActionMapper + } // namespace Model + } // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleSetNumberOverride.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleSetNumberOverride.cpp new file mode 100644 index 00000000000..f8a393e1b85 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleSetNumberOverride.cpp @@ -0,0 +1,113 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + +ProtectConfigurationRuleSetNumberOverride::ProtectConfigurationRuleSetNumberOverride() : + m_destinationPhoneNumberHasBeenSet(false), + m_createdTimestampHasBeenSet(false), + m_action(ProtectConfigurationRuleOverrideAction::NOT_SET), + m_actionHasBeenSet(false), + m_isoCountryCodeHasBeenSet(false), + m_expirationTimestampHasBeenSet(false) +{ +} + +ProtectConfigurationRuleSetNumberOverride::ProtectConfigurationRuleSetNumberOverride(JsonView jsonValue) + : ProtectConfigurationRuleSetNumberOverride() +{ + *this = jsonValue; +} + +ProtectConfigurationRuleSetNumberOverride& ProtectConfigurationRuleSetNumberOverride::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DestinationPhoneNumber")) + { + m_destinationPhoneNumber = jsonValue.GetString("DestinationPhoneNumber"); + + m_destinationPhoneNumberHasBeenSet = true; + } + + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + m_createdTimestampHasBeenSet = true; + } + + if(jsonValue.ValueExists("Action")) + { + m_action = ProtectConfigurationRuleOverrideActionMapper::GetProtectConfigurationRuleOverrideActionForName(jsonValue.GetString("Action")); + + m_actionHasBeenSet = true; + } + + if(jsonValue.ValueExists("IsoCountryCode")) + { + m_isoCountryCode = jsonValue.GetString("IsoCountryCode"); + + m_isoCountryCodeHasBeenSet = true; + } + + if(jsonValue.ValueExists("ExpirationTimestamp")) + { + m_expirationTimestamp = jsonValue.GetDouble("ExpirationTimestamp"); + + m_expirationTimestampHasBeenSet = true; + } + + return *this; +} + +JsonValue ProtectConfigurationRuleSetNumberOverride::Jsonize() const +{ + JsonValue payload; + + if(m_destinationPhoneNumberHasBeenSet) + { + payload.WithString("DestinationPhoneNumber", m_destinationPhoneNumber); + + } + + if(m_createdTimestampHasBeenSet) + { + payload.WithDouble("CreatedTimestamp", m_createdTimestamp.SecondsWithMSPrecision()); + } + + if(m_actionHasBeenSet) + { + payload.WithString("Action", ProtectConfigurationRuleOverrideActionMapper::GetNameForProtectConfigurationRuleOverrideAction(m_action)); + } + + if(m_isoCountryCodeHasBeenSet) + { + payload.WithString("IsoCountryCode", m_isoCountryCode); + + } + + if(m_expirationTimestampHasBeenSet) + { + payload.WithDouble("ExpirationTimestamp", m_expirationTimestamp.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleSetNumberOverrideFilterItem.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleSetNumberOverrideFilterItem.cpp new file mode 100644 index 00000000000..e5c96c3dec2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleSetNumberOverrideFilterItem.cpp @@ -0,0 +1,81 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + +ProtectConfigurationRuleSetNumberOverrideFilterItem::ProtectConfigurationRuleSetNumberOverrideFilterItem() : + m_name(ProtectConfigurationRuleSetNumberOverrideFilterName::NOT_SET), + m_nameHasBeenSet(false), + m_valuesHasBeenSet(false) +{ +} + +ProtectConfigurationRuleSetNumberOverrideFilterItem::ProtectConfigurationRuleSetNumberOverrideFilterItem(JsonView jsonValue) + : ProtectConfigurationRuleSetNumberOverrideFilterItem() +{ + *this = jsonValue; +} + +ProtectConfigurationRuleSetNumberOverrideFilterItem& ProtectConfigurationRuleSetNumberOverrideFilterItem::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Name")) + { + m_name = ProtectConfigurationRuleSetNumberOverrideFilterNameMapper::GetProtectConfigurationRuleSetNumberOverrideFilterNameForName(jsonValue.GetString("Name")); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("Values")) + { + Aws::Utils::Array valuesJsonList = jsonValue.GetArray("Values"); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + m_values.push_back(valuesJsonList[valuesIndex].AsString()); + } + m_valuesHasBeenSet = true; + } + + return *this; +} + +JsonValue ProtectConfigurationRuleSetNumberOverrideFilterItem::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", ProtectConfigurationRuleSetNumberOverrideFilterNameMapper::GetNameForProtectConfigurationRuleSetNumberOverrideFilterName(m_name)); + } + + if(m_valuesHasBeenSet) + { + Aws::Utils::Array valuesJsonList(m_values.size()); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + valuesJsonList[valuesIndex].AsString(m_values[valuesIndex]); + } + payload.WithArray("Values", std::move(valuesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleSetNumberOverrideFilterName.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleSetNumberOverrideFilterName.cpp new file mode 100644 index 00000000000..7268df39691 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ProtectConfigurationRuleSetNumberOverrideFilterName.cpp @@ -0,0 +1,107 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace PinpointSMSVoiceV2 + { + namespace Model + { + namespace ProtectConfigurationRuleSetNumberOverrideFilterNameMapper + { + + static const int iso_country_code_HASH = HashingUtils::HashString("iso-country-code"); + static const int destination_phone_number_begins_with_HASH = HashingUtils::HashString("destination-phone-number-begins-with"); + static const int action_HASH = HashingUtils::HashString("action"); + static const int expires_before_HASH = HashingUtils::HashString("expires-before"); + static const int expires_after_HASH = HashingUtils::HashString("expires-after"); + static const int created_before_HASH = HashingUtils::HashString("created-before"); + static const int created_after_HASH = HashingUtils::HashString("created-after"); + + + ProtectConfigurationRuleSetNumberOverrideFilterName GetProtectConfigurationRuleSetNumberOverrideFilterNameForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == iso_country_code_HASH) + { + return ProtectConfigurationRuleSetNumberOverrideFilterName::iso_country_code; + } + else if (hashCode == destination_phone_number_begins_with_HASH) + { + return ProtectConfigurationRuleSetNumberOverrideFilterName::destination_phone_number_begins_with; + } + else if (hashCode == action_HASH) + { + return ProtectConfigurationRuleSetNumberOverrideFilterName::action; + } + else if (hashCode == expires_before_HASH) + { + return ProtectConfigurationRuleSetNumberOverrideFilterName::expires_before; + } + else if (hashCode == expires_after_HASH) + { + return ProtectConfigurationRuleSetNumberOverrideFilterName::expires_after; + } + else if (hashCode == created_before_HASH) + { + return ProtectConfigurationRuleSetNumberOverrideFilterName::created_before; + } + else if (hashCode == created_after_HASH) + { + return ProtectConfigurationRuleSetNumberOverrideFilterName::created_after; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ProtectConfigurationRuleSetNumberOverrideFilterName::NOT_SET; + } + + Aws::String GetNameForProtectConfigurationRuleSetNumberOverrideFilterName(ProtectConfigurationRuleSetNumberOverrideFilterName enumValue) + { + switch(enumValue) + { + case ProtectConfigurationRuleSetNumberOverrideFilterName::NOT_SET: + return {}; + case ProtectConfigurationRuleSetNumberOverrideFilterName::iso_country_code: + return "iso-country-code"; + case ProtectConfigurationRuleSetNumberOverrideFilterName::destination_phone_number_begins_with: + return "destination-phone-number-begins-with"; + case ProtectConfigurationRuleSetNumberOverrideFilterName::action: + return "action"; + case ProtectConfigurationRuleSetNumberOverrideFilterName::expires_before: + return "expires-before"; + case ProtectConfigurationRuleSetNumberOverrideFilterName::expires_after: + return "expires-after"; + case ProtectConfigurationRuleSetNumberOverrideFilterName::created_before: + return "created-before"; + case ProtectConfigurationRuleSetNumberOverrideFilterName::created_after: + return "created-after"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ProtectConfigurationRuleSetNumberOverrideFilterNameMapper + } // namespace Model + } // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutMessageFeedbackRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutMessageFeedbackRequest.cpp new file mode 100644 index 00000000000..f5858364785 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutMessageFeedbackRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +PutMessageFeedbackRequest::PutMessageFeedbackRequest() : + m_messageIdHasBeenSet(false), + m_messageFeedbackStatus(MessageFeedbackStatus::NOT_SET), + m_messageFeedbackStatusHasBeenSet(false) +{ +} + +Aws::String PutMessageFeedbackRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_messageIdHasBeenSet) + { + payload.WithString("MessageId", m_messageId); + + } + + if(m_messageFeedbackStatusHasBeenSet) + { + payload.WithString("MessageFeedbackStatus", MessageFeedbackStatusMapper::GetNameForMessageFeedbackStatus(m_messageFeedbackStatus)); + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection PutMessageFeedbackRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PinpointSMSVoiceV2.PutMessageFeedback")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutMessageFeedbackResult.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutMessageFeedbackResult.cpp new file mode 100644 index 00000000000..0e0337d2b5d --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutMessageFeedbackResult.cpp @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +PutMessageFeedbackResult::PutMessageFeedbackResult() : + m_messageFeedbackStatus(MessageFeedbackStatus::NOT_SET) +{ +} + +PutMessageFeedbackResult::PutMessageFeedbackResult(const Aws::AmazonWebServiceResult& result) + : PutMessageFeedbackResult() +{ + *this = result; +} + +PutMessageFeedbackResult& PutMessageFeedbackResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("MessageId")) + { + m_messageId = jsonValue.GetString("MessageId"); + + } + + if(jsonValue.ValueExists("MessageFeedbackStatus")) + { + m_messageFeedbackStatus = MessageFeedbackStatusMapper::GetMessageFeedbackStatusForName(jsonValue.GetString("MessageFeedbackStatus")); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutProtectConfigurationRuleSetNumberOverrideRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutProtectConfigurationRuleSetNumberOverrideRequest.cpp new file mode 100644 index 00000000000..482c70494de --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutProtectConfigurationRuleSetNumberOverrideRequest.cpp @@ -0,0 +1,71 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +PutProtectConfigurationRuleSetNumberOverrideRequest::PutProtectConfigurationRuleSetNumberOverrideRequest() : + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_protectConfigurationIdHasBeenSet(false), + m_destinationPhoneNumberHasBeenSet(false), + m_action(ProtectConfigurationRuleOverrideAction::NOT_SET), + m_actionHasBeenSet(false), + m_expirationTimestampHasBeenSet(false) +{ +} + +Aws::String PutProtectConfigurationRuleSetNumberOverrideRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("ClientToken", m_clientToken); + + } + + if(m_protectConfigurationIdHasBeenSet) + { + payload.WithString("ProtectConfigurationId", m_protectConfigurationId); + + } + + if(m_destinationPhoneNumberHasBeenSet) + { + payload.WithString("DestinationPhoneNumber", m_destinationPhoneNumber); + + } + + if(m_actionHasBeenSet) + { + payload.WithString("Action", ProtectConfigurationRuleOverrideActionMapper::GetNameForProtectConfigurationRuleOverrideAction(m_action)); + } + + if(m_expirationTimestampHasBeenSet) + { + payload.WithDouble("ExpirationTimestamp", m_expirationTimestamp.SecondsWithMSPrecision()); + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection PutProtectConfigurationRuleSetNumberOverrideRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PinpointSMSVoiceV2.PutProtectConfigurationRuleSetNumberOverride")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutProtectConfigurationRuleSetNumberOverrideResult.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutProtectConfigurationRuleSetNumberOverrideResult.cpp new file mode 100644 index 00000000000..60509d177ec --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutProtectConfigurationRuleSetNumberOverrideResult.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +PutProtectConfigurationRuleSetNumberOverrideResult::PutProtectConfigurationRuleSetNumberOverrideResult() : + m_action(ProtectConfigurationRuleOverrideAction::NOT_SET) +{ +} + +PutProtectConfigurationRuleSetNumberOverrideResult::PutProtectConfigurationRuleSetNumberOverrideResult(const Aws::AmazonWebServiceResult& result) + : PutProtectConfigurationRuleSetNumberOverrideResult() +{ + *this = result; +} + +PutProtectConfigurationRuleSetNumberOverrideResult& PutProtectConfigurationRuleSetNumberOverrideResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ProtectConfigurationArn")) + { + m_protectConfigurationArn = jsonValue.GetString("ProtectConfigurationArn"); + + } + + if(jsonValue.ValueExists("ProtectConfigurationId")) + { + m_protectConfigurationId = jsonValue.GetString("ProtectConfigurationId"); + + } + + if(jsonValue.ValueExists("DestinationPhoneNumber")) + { + m_destinationPhoneNumber = jsonValue.GetString("DestinationPhoneNumber"); + + } + + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + } + + if(jsonValue.ValueExists("Action")) + { + m_action = ProtectConfigurationRuleOverrideActionMapper::GetProtectConfigurationRuleOverrideActionForName(jsonValue.GetString("Action")); + + } + + if(jsonValue.ValueExists("IsoCountryCode")) + { + m_isoCountryCode = jsonValue.GetString("IsoCountryCode"); + + } + + if(jsonValue.ValueExists("ExpirationTimestamp")) + { + m_expirationTimestamp = jsonValue.GetDouble("ExpirationTimestamp"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ResourceType.cpp index 4796b8b2b63..32a09571836 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ResourceType.cpp @@ -34,6 +34,7 @@ namespace Aws static const int verified_destination_number_HASH = HashingUtils::HashString("verified-destination-number"); static const int protect_configuration_HASH = HashingUtils::HashString("protect-configuration"); static const int policy_HASH = HashingUtils::HashString("policy"); + static const int message_HASH = HashingUtils::HashString("message"); ResourceType GetResourceTypeForName(const Aws::String& name) @@ -95,6 +96,10 @@ namespace Aws { return ResourceType::policy; } + else if (hashCode == message_HASH) + { + return ResourceType::message; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -139,6 +144,8 @@ namespace Aws return "protect-configuration"; case ResourceType::policy: return "policy"; + case ResourceType::message: + return "message"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SendMediaMessageRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SendMediaMessageRequest.cpp index a0bba329282..37472805fb1 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SendMediaMessageRequest.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SendMediaMessageRequest.cpp @@ -24,7 +24,9 @@ SendMediaMessageRequest::SendMediaMessageRequest() : m_contextHasBeenSet(false), m_dryRun(false), m_dryRunHasBeenSet(false), - m_protectConfigurationIdHasBeenSet(false) + m_protectConfigurationIdHasBeenSet(false), + m_messageFeedbackEnabled(false), + m_messageFeedbackEnabledHasBeenSet(false) { } @@ -102,6 +104,12 @@ Aws::String SendMediaMessageRequest::SerializePayload() const } + if(m_messageFeedbackEnabledHasBeenSet) + { + payload.WithBool("MessageFeedbackEnabled", m_messageFeedbackEnabled); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SendTextMessageRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SendTextMessageRequest.cpp index c5fe1722fbf..d49d444ed55 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SendTextMessageRequest.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SendTextMessageRequest.cpp @@ -27,7 +27,9 @@ SendTextMessageRequest::SendTextMessageRequest() : m_destinationCountryParametersHasBeenSet(false), m_dryRun(false), m_dryRunHasBeenSet(false), - m_protectConfigurationIdHasBeenSet(false) + m_protectConfigurationIdHasBeenSet(false), + m_messageFeedbackEnabled(false), + m_messageFeedbackEnabledHasBeenSet(false) { } @@ -116,6 +118,12 @@ Aws::String SendTextMessageRequest::SerializePayload() const } + if(m_messageFeedbackEnabledHasBeenSet) + { + payload.WithBool("MessageFeedbackEnabled", m_messageFeedbackEnabled); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SendVoiceMessageRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SendVoiceMessageRequest.cpp index c5316d039ae..95a63dcd6e0 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SendVoiceMessageRequest.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SendVoiceMessageRequest.cpp @@ -27,7 +27,9 @@ SendVoiceMessageRequest::SendVoiceMessageRequest() : m_contextHasBeenSet(false), m_dryRun(false), m_dryRunHasBeenSet(false), - m_protectConfigurationIdHasBeenSet(false) + m_protectConfigurationIdHasBeenSet(false), + m_messageFeedbackEnabled(false), + m_messageFeedbackEnabledHasBeenSet(false) { } @@ -104,6 +106,12 @@ Aws::String SendVoiceMessageRequest::SerializePayload() const } + if(m_messageFeedbackEnabledHasBeenSet) + { + payload.WithBool("MessageFeedbackEnabled", m_messageFeedbackEnabled); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SetDefaultMessageFeedbackEnabledRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SetDefaultMessageFeedbackEnabledRequest.cpp new file mode 100644 index 00000000000..4ff3d3fc134 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SetDefaultMessageFeedbackEnabledRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +SetDefaultMessageFeedbackEnabledRequest::SetDefaultMessageFeedbackEnabledRequest() : + m_configurationSetNameHasBeenSet(false), + m_messageFeedbackEnabled(false), + m_messageFeedbackEnabledHasBeenSet(false) +{ +} + +Aws::String SetDefaultMessageFeedbackEnabledRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_configurationSetNameHasBeenSet) + { + payload.WithString("ConfigurationSetName", m_configurationSetName); + + } + + if(m_messageFeedbackEnabledHasBeenSet) + { + payload.WithBool("MessageFeedbackEnabled", m_messageFeedbackEnabled); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection SetDefaultMessageFeedbackEnabledRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PinpointSMSVoiceV2.SetDefaultMessageFeedbackEnabled")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SetDefaultMessageFeedbackEnabledResult.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SetDefaultMessageFeedbackEnabledResult.cpp new file mode 100644 index 00000000000..444b7e7486e --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/SetDefaultMessageFeedbackEnabledResult.cpp @@ -0,0 +1,62 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +SetDefaultMessageFeedbackEnabledResult::SetDefaultMessageFeedbackEnabledResult() : + m_messageFeedbackEnabled(false) +{ +} + +SetDefaultMessageFeedbackEnabledResult::SetDefaultMessageFeedbackEnabledResult(const Aws::AmazonWebServiceResult& result) + : SetDefaultMessageFeedbackEnabledResult() +{ + *this = result; +} + +SetDefaultMessageFeedbackEnabledResult& SetDefaultMessageFeedbackEnabledResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ConfigurationSetArn")) + { + m_configurationSetArn = jsonValue.GetString("ConfigurationSetArn"); + + } + + if(jsonValue.ValueExists("ConfigurationSetName")) + { + m_configurationSetName = jsonValue.GetString("ConfigurationSetName"); + + } + + if(jsonValue.ValueExists("MessageFeedbackEnabled")) + { + m_messageFeedbackEnabled = jsonValue.GetBool("MessageFeedbackEnabled"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/ConfidenceThreshold.h b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/ConfidenceThreshold.h new file mode 100644 index 00000000000..5fdba0dc53e --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/ConfidenceThreshold.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Route53Resolver +{ +namespace Model +{ + enum class ConfidenceThreshold + { + NOT_SET, + LOW, + MEDIUM, + HIGH + }; + +namespace ConfidenceThresholdMapper +{ +AWS_ROUTE53RESOLVER_API ConfidenceThreshold GetConfidenceThresholdForName(const Aws::String& name); + +AWS_ROUTE53RESOLVER_API Aws::String GetNameForConfidenceThreshold(ConfidenceThreshold value); +} // namespace ConfidenceThresholdMapper +} // namespace Model +} // namespace Route53Resolver +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/CreateFirewallRuleRequest.h b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/CreateFirewallRuleRequest.h index b8071921f20..b521d54f19c 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/CreateFirewallRuleRequest.h +++ b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/CreateFirewallRuleRequest.h @@ -11,6 +11,8 @@ #include #include #include +#include +#include #include #include @@ -73,7 +75,8 @@ namespace Model ///@{ /** - *

    The ID of the domain list that you want to use in the rule.

    + *

    The ID of the domain list that you want to use in the rule. Can't be used + * together with DnsThreatProtecton.

    */ inline const Aws::String& GetFirewallDomainListId() const{ return m_firewallDomainListId; } inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; } @@ -103,11 +106,13 @@ namespace Model ///@{ /** *

    The action that DNS Firewall should take on a DNS query when it matches one - * of the domains in the rule's domain list:

    • ALLOW - - * Permit the request to go through.

    • ALERT - Permit - * the request and send metrics and logs to Cloud Watch.

    • - * BLOCK - Disallow the request. This option requires additional - * details in the rule's BlockResponse.

    + * of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced + * rule:

    • ALLOW - Permit the request to go through. + * Not available for DNS Firewall Advanced rules.

    • + * ALERT - Permit the request and send metrics and logs to Cloud + * Watch.

    • BLOCK - Disallow the request. This option + * requires additional details in the rule's BlockResponse.

    • + *
    */ inline const Action& GetAction() const{ return m_action; } inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } @@ -201,10 +206,10 @@ namespace Model ///@{ /** *

    How you want the the rule to evaluate DNS redirection in the DNS redirection - * chain, such as CNAME or DNAME.

    Inspect_Redirection_Domain - * (Default) inspects all domains in the redirection chain. The individual - * domains in the redirection chain must be added to the domain list.

    - * Trust_Redirection_Domain inspects only the first domain in the + * chain, such as CNAME or DNAME.

    INSPECT_REDIRECTION_DOMAIN: + * (Default) inspects all domains in the redirection chain. The individual domains + * in the redirection chain must be added to the domain list.

    + * TRUST_REDIRECTION_DOMAIN: Inspects only the first domain in the * redirection chain. You don't need to add the subsequent domains in the domain in * the redirection list to the domain list.

    */ @@ -245,6 +250,36 @@ namespace Model inline CreateFirewallRuleRequest& WithQtype(Aws::String&& value) { SetQtype(std::move(value)); return *this;} inline CreateFirewallRuleRequest& WithQtype(const char* value) { SetQtype(value); return *this;} ///@} + + ///@{ + /** + *

    Use to create a DNS Firewall Advanced rule.

    + */ + inline const DnsThreatProtection& GetDnsThreatProtection() const{ return m_dnsThreatProtection; } + inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; } + inline void SetDnsThreatProtection(const DnsThreatProtection& value) { m_dnsThreatProtectionHasBeenSet = true; m_dnsThreatProtection = value; } + inline void SetDnsThreatProtection(DnsThreatProtection&& value) { m_dnsThreatProtectionHasBeenSet = true; m_dnsThreatProtection = std::move(value); } + inline CreateFirewallRuleRequest& WithDnsThreatProtection(const DnsThreatProtection& value) { SetDnsThreatProtection(value); return *this;} + inline CreateFirewallRuleRequest& WithDnsThreatProtection(DnsThreatProtection&& value) { SetDnsThreatProtection(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The confidence threshold for DNS Firewall Advanced. You must provide this + * value when you create a DNS Firewall Advanced rule. The confidence level values + * mean:

    • LOW: Provides the highest detection rate + * for threats, but also increases false positives.

    • + * MEDIUM: Provides a balance between detecting threats and false + * positives.

    • HIGH: Detects only the most well + * corroborated threats with a low rate of false positives.

    + */ + inline const ConfidenceThreshold& GetConfidenceThreshold() const{ return m_confidenceThreshold; } + inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; } + inline void SetConfidenceThreshold(const ConfidenceThreshold& value) { m_confidenceThresholdHasBeenSet = true; m_confidenceThreshold = value; } + inline void SetConfidenceThreshold(ConfidenceThreshold&& value) { m_confidenceThresholdHasBeenSet = true; m_confidenceThreshold = std::move(value); } + inline CreateFirewallRuleRequest& WithConfidenceThreshold(const ConfidenceThreshold& value) { SetConfidenceThreshold(value); return *this;} + inline CreateFirewallRuleRequest& WithConfidenceThreshold(ConfidenceThreshold&& value) { SetConfidenceThreshold(std::move(value)); return *this;} + ///@} private: Aws::String m_creatorRequestId; @@ -282,6 +317,12 @@ namespace Model Aws::String m_qtype; bool m_qtypeHasBeenSet = false; + + DnsThreatProtection m_dnsThreatProtection; + bool m_dnsThreatProtectionHasBeenSet = false; + + ConfidenceThreshold m_confidenceThreshold; + bool m_confidenceThresholdHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/DeleteFirewallRuleRequest.h b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/DeleteFirewallRuleRequest.h index 4292dc21269..a445708e616 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/DeleteFirewallRuleRequest.h +++ b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/DeleteFirewallRuleRequest.h @@ -63,6 +63,20 @@ namespace Model inline DeleteFirewallRuleRequest& WithFirewallDomainListId(const char* value) { SetFirewallDomainListId(value); return *this;} ///@} + ///@{ + /** + *

    The ID that is created for a DNS Firewall Advanced rule.

    + */ + inline const Aws::String& GetFirewallThreatProtectionId() const{ return m_firewallThreatProtectionId; } + inline bool FirewallThreatProtectionIdHasBeenSet() const { return m_firewallThreatProtectionIdHasBeenSet; } + inline void SetFirewallThreatProtectionId(const Aws::String& value) { m_firewallThreatProtectionIdHasBeenSet = true; m_firewallThreatProtectionId = value; } + inline void SetFirewallThreatProtectionId(Aws::String&& value) { m_firewallThreatProtectionIdHasBeenSet = true; m_firewallThreatProtectionId = std::move(value); } + inline void SetFirewallThreatProtectionId(const char* value) { m_firewallThreatProtectionIdHasBeenSet = true; m_firewallThreatProtectionId.assign(value); } + inline DeleteFirewallRuleRequest& WithFirewallThreatProtectionId(const Aws::String& value) { SetFirewallThreatProtectionId(value); return *this;} + inline DeleteFirewallRuleRequest& WithFirewallThreatProtectionId(Aws::String&& value) { SetFirewallThreatProtectionId(std::move(value)); return *this;} + inline DeleteFirewallRuleRequest& WithFirewallThreatProtectionId(const char* value) { SetFirewallThreatProtectionId(value); return *this;} + ///@} + ///@{ /** *

    The DNS query type that the rule you are deleting evaluates. Allowed values @@ -100,6 +114,9 @@ namespace Model Aws::String m_firewallDomainListId; bool m_firewallDomainListIdHasBeenSet = false; + Aws::String m_firewallThreatProtectionId; + bool m_firewallThreatProtectionIdHasBeenSet = false; + Aws::String m_qtype; bool m_qtypeHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/DnsThreatProtection.h b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/DnsThreatProtection.h new file mode 100644 index 00000000000..2e3823207e1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/DnsThreatProtection.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Route53Resolver +{ +namespace Model +{ + enum class DnsThreatProtection + { + NOT_SET, + DGA, + DNS_TUNNELING + }; + +namespace DnsThreatProtectionMapper +{ +AWS_ROUTE53RESOLVER_API DnsThreatProtection GetDnsThreatProtectionForName(const Aws::String& name); + +AWS_ROUTE53RESOLVER_API Aws::String GetNameForDnsThreatProtection(DnsThreatProtection value); +} // namespace DnsThreatProtectionMapper +} // namespace Model +} // namespace Route53Resolver +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/FirewallRule.h b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/FirewallRule.h index ed8c91d3dc8..ced678f7327 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/FirewallRule.h +++ b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/FirewallRule.h @@ -10,6 +10,8 @@ #include #include #include +#include +#include #include namespace Aws @@ -43,7 +45,7 @@ namespace Model ///@{ /** - *

    The unique identifier of the firewall rule group of the rule.

    + *

    The unique identifier of the Firewall rule group of the rule.

    */ inline const Aws::String& GetFirewallRuleGroupId() const{ return m_firewallRuleGroupId; } inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; } @@ -69,6 +71,20 @@ namespace Model inline FirewallRule& WithFirewallDomainListId(const char* value) { SetFirewallDomainListId(value); return *this;} ///@} + ///@{ + /** + *

    ID of the DNS Firewall Advanced rule.

    + */ + inline const Aws::String& GetFirewallThreatProtectionId() const{ return m_firewallThreatProtectionId; } + inline bool FirewallThreatProtectionIdHasBeenSet() const { return m_firewallThreatProtectionIdHasBeenSet; } + inline void SetFirewallThreatProtectionId(const Aws::String& value) { m_firewallThreatProtectionIdHasBeenSet = true; m_firewallThreatProtectionId = value; } + inline void SetFirewallThreatProtectionId(Aws::String&& value) { m_firewallThreatProtectionIdHasBeenSet = true; m_firewallThreatProtectionId = std::move(value); } + inline void SetFirewallThreatProtectionId(const char* value) { m_firewallThreatProtectionIdHasBeenSet = true; m_firewallThreatProtectionId.assign(value); } + inline FirewallRule& WithFirewallThreatProtectionId(const Aws::String& value) { SetFirewallThreatProtectionId(value); return *this;} + inline FirewallRule& WithFirewallThreatProtectionId(Aws::String&& value) { SetFirewallThreatProtectionId(std::move(value)); return *this;} + inline FirewallRule& WithFirewallThreatProtectionId(const char* value) { SetFirewallThreatProtectionId(value); return *this;} + ///@} + ///@{ /** *

    The name of the rule.

    @@ -98,12 +114,13 @@ namespace Model ///@{ /** *

    The action that DNS Firewall should take on a DNS query when it matches one - * of the domains in the rule's domain list:

    • ALLOW - - * Permit the request to go through.

    • ALERT - Permit - * the request to go through but send an alert to the logs.

    • - * BLOCK - Disallow the request. If this is specified, additional - * handling details are provided in the rule's BlockResponse setting. - *

    + * of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced + * rule:

    • ALLOW - Permit the request to go through. + * Not available for DNS Firewall Advanced rules.

    • + * ALERT - Permit the request to go through but send an alert to the + * logs.

    • BLOCK - Disallow the request. If this is + * specified, additional handling details are provided in the rule's + * BlockResponse setting.

    */ inline const Action& GetAction() const{ return m_action; } inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } @@ -225,10 +242,10 @@ namespace Model ///@{ /** *

    How you want the the rule to evaluate DNS redirection in the DNS redirection - * chain, such as CNAME or DNAME.

    Inspect_Redirection_Domain - * (Default) inspects all domains in the redirection chain. The individual - * domains in the redirection chain must be added to the domain list.

    - * Trust_Redirection_Domain inspects only the first domain in the + * chain, such as CNAME or DNAME.

    INSPECT_REDIRECTION_DOMAIN: + * (Default) inspects all domains in the redirection chain. The individual domains + * in the redirection chain must be added to the domain list.

    + * TRUST_REDIRECTION_DOMAIN: Inspects only the first domain in the * redirection chain. You don't need to add the subsequent domains in the domain in * the redirection list to the domain list.

    */ @@ -269,6 +286,42 @@ namespace Model inline FirewallRule& WithQtype(Aws::String&& value) { SetQtype(std::move(value)); return *this;} inline FirewallRule& WithQtype(const char* value) { SetQtype(value); return *this;} ///@} + + ///@{ + /** + *

    The type of the DNS Firewall Advanced rule. Valid values are:

    • + *

      DGA: Domain generation algorithms detection. DGAs are used by + * attackers to generate a large number of domains to to launch malware + * attacks.

    • DNS_TUNNELING: DNS tunneling detection. + * DNS tunneling is used by attackers to exfiltrate data from the client by using + * the DNS tunnel without making a network connection to the client.

    • + *
    + */ + inline const DnsThreatProtection& GetDnsThreatProtection() const{ return m_dnsThreatProtection; } + inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; } + inline void SetDnsThreatProtection(const DnsThreatProtection& value) { m_dnsThreatProtectionHasBeenSet = true; m_dnsThreatProtection = value; } + inline void SetDnsThreatProtection(DnsThreatProtection&& value) { m_dnsThreatProtectionHasBeenSet = true; m_dnsThreatProtection = std::move(value); } + inline FirewallRule& WithDnsThreatProtection(const DnsThreatProtection& value) { SetDnsThreatProtection(value); return *this;} + inline FirewallRule& WithDnsThreatProtection(DnsThreatProtection&& value) { SetDnsThreatProtection(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The confidence threshold for DNS Firewall Advanced. You must provide this + * value when you create a DNS Firewall Advanced rule. The confidence level values + * mean:

    • LOW: Provides the highest detection rate + * for threats, but also increases false positives.

    • + * MEDIUM: Provides a balance between detecting threats and false + * positives.

    • HIGH: Detects only the most well + * corroborated threats with a low rate of false positives.

    + */ + inline const ConfidenceThreshold& GetConfidenceThreshold() const{ return m_confidenceThreshold; } + inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; } + inline void SetConfidenceThreshold(const ConfidenceThreshold& value) { m_confidenceThresholdHasBeenSet = true; m_confidenceThreshold = value; } + inline void SetConfidenceThreshold(ConfidenceThreshold&& value) { m_confidenceThresholdHasBeenSet = true; m_confidenceThreshold = std::move(value); } + inline FirewallRule& WithConfidenceThreshold(const ConfidenceThreshold& value) { SetConfidenceThreshold(value); return *this;} + inline FirewallRule& WithConfidenceThreshold(ConfidenceThreshold&& value) { SetConfidenceThreshold(std::move(value)); return *this;} + ///@} private: Aws::String m_firewallRuleGroupId; @@ -277,6 +330,9 @@ namespace Model Aws::String m_firewallDomainListId; bool m_firewallDomainListIdHasBeenSet = false; + Aws::String m_firewallThreatProtectionId; + bool m_firewallThreatProtectionIdHasBeenSet = false; + Aws::String m_name; bool m_nameHasBeenSet = false; @@ -312,6 +368,12 @@ namespace Model Aws::String m_qtype; bool m_qtypeHasBeenSet = false; + + DnsThreatProtection m_dnsThreatProtection; + bool m_dnsThreatProtectionHasBeenSet = false; + + ConfidenceThreshold m_confidenceThreshold; + bool m_confidenceThresholdHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/ListFirewallRulesRequest.h b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/ListFirewallRulesRequest.h index 3e44a23ec2f..c1e117849e2 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/ListFirewallRulesRequest.h +++ b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/ListFirewallRulesRequest.h @@ -67,8 +67,9 @@ namespace Model /** *

    Optional additional filter for the rules to retrieve.

    The action that * DNS Firewall should take on a DNS query when it matches one of the domains in - * the rule's domain list:

    • ALLOW - Permit the - * request to go through.

    • ALERT - Permit the + * the rule's domain list, or a threat in a DNS Firewall Advanced rule:

        + *
      • ALLOW - Permit the request to go through. Not availabe for + * DNS Firewall Advanced rules.

      • ALERT - Permit the * request to go through but send an alert to the logs.

      • * BLOCK - Disallow the request. If this is specified, additional * handling details are provided in the rule's BlockResponse setting. diff --git a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/ResolverQueryLogConfigAssociation.h b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/ResolverQueryLogConfigAssociation.h index c49b20f02b0..13895fa8e7b 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/ResolverQueryLogConfigAssociation.h +++ b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/ResolverQueryLogConfigAssociation.h @@ -97,7 +97,7 @@ namespace Model *

        The status of the specified query logging association. Valid values include * the following:

        • CREATING: Resolver is creating an * association between an Amazon VPC and a query logging configuration.

        • - *
        • CREATED: The association between an Amazon VPC and a query + *

        • ACTIVE: The association between an Amazon VPC and a query * logging configuration was successfully created. Resolver is logging queries that * originate in the specified VPC.

        • DELETING: * Resolver is deleting this query logging association.

        • diff --git a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/TargetAddress.h b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/TargetAddress.h index fec4e186f78..3096d834479 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/TargetAddress.h +++ b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/TargetAddress.h @@ -81,15 +81,8 @@ namespace Model ///@{ /** - *

          The protocols for the Resolver endpoints. DoH-FIPS is applicable for inbound - * endpoints only.

          For an inbound endpoint you can apply the protocols as - * follows:

          • Do53 and DoH in combination.

          • Do53 - * and DoH-FIPS in combination.

          • Do53 alone.

          • DoH - * alone.

          • DoH-FIPS alone.

          • None, which is - * treated as Do53.

          For an outbound endpoint you can apply the - * protocols as follows:

          • Do53 and DoH in combination.

          • - *
          • Do53 alone.

          • DoH alone.

          • None, which - * is treated as Do53.

          + *

          The protocols for the target address. The protocol you choose needs to be + * supported by the outbound endpoint of the Resolver rule.

          */ inline const Protocol& GetProtocol() const{ return m_protocol; } inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/UpdateFirewallRuleRequest.h b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/UpdateFirewallRuleRequest.h index 0a92b75afb4..4d659785482 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/UpdateFirewallRuleRequest.h +++ b/generated/src/aws-cpp-sdk-route53resolver/include/aws/route53resolver/model/UpdateFirewallRuleRequest.h @@ -11,6 +11,8 @@ #include #include #include +#include +#include #include namespace Aws @@ -66,6 +68,20 @@ namespace Model inline UpdateFirewallRuleRequest& WithFirewallDomainListId(const char* value) { SetFirewallDomainListId(value); return *this;} ///@} + ///@{ + /** + *

          The DNS Firewall Advanced rule ID.

          + */ + inline const Aws::String& GetFirewallThreatProtectionId() const{ return m_firewallThreatProtectionId; } + inline bool FirewallThreatProtectionIdHasBeenSet() const { return m_firewallThreatProtectionIdHasBeenSet; } + inline void SetFirewallThreatProtectionId(const Aws::String& value) { m_firewallThreatProtectionIdHasBeenSet = true; m_firewallThreatProtectionId = value; } + inline void SetFirewallThreatProtectionId(Aws::String&& value) { m_firewallThreatProtectionIdHasBeenSet = true; m_firewallThreatProtectionId = std::move(value); } + inline void SetFirewallThreatProtectionId(const char* value) { m_firewallThreatProtectionIdHasBeenSet = true; m_firewallThreatProtectionId.assign(value); } + inline UpdateFirewallRuleRequest& WithFirewallThreatProtectionId(const Aws::String& value) { SetFirewallThreatProtectionId(value); return *this;} + inline UpdateFirewallRuleRequest& WithFirewallThreatProtectionId(Aws::String&& value) { SetFirewallThreatProtectionId(std::move(value)); return *this;} + inline UpdateFirewallRuleRequest& WithFirewallThreatProtectionId(const char* value) { SetFirewallThreatProtectionId(value); return *this;} + ///@} + ///@{ /** *

          The setting that determines the processing order of the rule in the rule @@ -84,11 +100,13 @@ namespace Model ///@{ /** *

          The action that DNS Firewall should take on a DNS query when it matches one - * of the domains in the rule's domain list:

          • ALLOW - - * Permit the request to go through.

          • ALERT - Permit - * the request to go through but send an alert to the logs.

          • - * BLOCK - Disallow the request. This option requires additional - * details in the rule's BlockResponse.

          + * of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced + * rule:

          • ALLOW - Permit the request to go through. + * Not available for DNS Firewall Advanced rules.

          • + * ALERT - Permit the request to go through but send an alert to the + * logs.

          • BLOCK - Disallow the request. This option + * requires additional details in the rule's BlockResponse.

          • + *
          */ inline const Action& GetAction() const{ return m_action; } inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } @@ -178,10 +196,10 @@ namespace Model ///@{ /** *

          How you want the the rule to evaluate DNS redirection in the DNS redirection - * chain, such as CNAME or DNAME.

          Inspect_Redirection_Domain - * (Default) inspects all domains in the redirection chain. The individual - * domains in the redirection chain must be added to the domain list.

          - * Trust_Redirection_Domain inspects only the first domain in the + * chain, such as CNAME or DNAME.

          INSPECT_REDIRECTION_DOMAIN: + * (Default) inspects all domains in the redirection chain. The individual domains + * in the redirection chain must be added to the domain list.

          + * TRUST_REDIRECTION_DOMAIN: Inspects only the first domain in the * redirection chain. You don't need to add the subsequent domains in the domain in * the redirection list to the domain list.

          */ @@ -224,6 +242,42 @@ namespace Model inline UpdateFirewallRuleRequest& WithQtype(Aws::String&& value) { SetQtype(std::move(value)); return *this;} inline UpdateFirewallRuleRequest& WithQtype(const char* value) { SetQtype(value); return *this;} ///@} + + ///@{ + /** + *

          The type of the DNS Firewall Advanced rule. Valid values are:

          • + *

            DGA: Domain generation algorithms detection. DGAs are used by + * attackers to generate a large number of domains to to launch malware + * attacks.

          • DNS_TUNNELING: DNS tunneling detection. + * DNS tunneling is used by attackers to exfiltrate data from the client by using + * the DNS tunnel without making a network connection to the client.

          • + *
          + */ + inline const DnsThreatProtection& GetDnsThreatProtection() const{ return m_dnsThreatProtection; } + inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; } + inline void SetDnsThreatProtection(const DnsThreatProtection& value) { m_dnsThreatProtectionHasBeenSet = true; m_dnsThreatProtection = value; } + inline void SetDnsThreatProtection(DnsThreatProtection&& value) { m_dnsThreatProtectionHasBeenSet = true; m_dnsThreatProtection = std::move(value); } + inline UpdateFirewallRuleRequest& WithDnsThreatProtection(const DnsThreatProtection& value) { SetDnsThreatProtection(value); return *this;} + inline UpdateFirewallRuleRequest& WithDnsThreatProtection(DnsThreatProtection&& value) { SetDnsThreatProtection(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

          The confidence threshold for DNS Firewall Advanced. You must provide this + * value when you create a DNS Firewall Advanced rule. The confidence level values + * mean:

          • LOW: Provides the highest detection rate + * for threats, but also increases false positives.

          • + * MEDIUM: Provides a balance between detecting threats and false + * positives.

          • HIGH: Detects only the most well + * corroborated threats with a low rate of false positives.

          + */ + inline const ConfidenceThreshold& GetConfidenceThreshold() const{ return m_confidenceThreshold; } + inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; } + inline void SetConfidenceThreshold(const ConfidenceThreshold& value) { m_confidenceThresholdHasBeenSet = true; m_confidenceThreshold = value; } + inline void SetConfidenceThreshold(ConfidenceThreshold&& value) { m_confidenceThresholdHasBeenSet = true; m_confidenceThreshold = std::move(value); } + inline UpdateFirewallRuleRequest& WithConfidenceThreshold(const ConfidenceThreshold& value) { SetConfidenceThreshold(value); return *this;} + inline UpdateFirewallRuleRequest& WithConfidenceThreshold(ConfidenceThreshold&& value) { SetConfidenceThreshold(std::move(value)); return *this;} + ///@} private: Aws::String m_firewallRuleGroupId; @@ -232,6 +286,9 @@ namespace Model Aws::String m_firewallDomainListId; bool m_firewallDomainListIdHasBeenSet = false; + Aws::String m_firewallThreatProtectionId; + bool m_firewallThreatProtectionIdHasBeenSet = false; + int m_priority; bool m_priorityHasBeenSet = false; @@ -258,6 +315,12 @@ namespace Model Aws::String m_qtype; bool m_qtypeHasBeenSet = false; + + DnsThreatProtection m_dnsThreatProtection; + bool m_dnsThreatProtectionHasBeenSet = false; + + ConfidenceThreshold m_confidenceThreshold; + bool m_confidenceThresholdHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/ConfidenceThreshold.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/ConfidenceThreshold.cpp new file mode 100644 index 00000000000..6484eaa5500 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/ConfidenceThreshold.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace Route53Resolver + { + namespace Model + { + namespace ConfidenceThresholdMapper + { + + static const int LOW_HASH = HashingUtils::HashString("LOW"); + static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); + static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + + + ConfidenceThreshold GetConfidenceThresholdForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == LOW_HASH) + { + return ConfidenceThreshold::LOW; + } + else if (hashCode == MEDIUM_HASH) + { + return ConfidenceThreshold::MEDIUM; + } + else if (hashCode == HIGH_HASH) + { + return ConfidenceThreshold::HIGH; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ConfidenceThreshold::NOT_SET; + } + + Aws::String GetNameForConfidenceThreshold(ConfidenceThreshold enumValue) + { + switch(enumValue) + { + case ConfidenceThreshold::NOT_SET: + return {}; + case ConfidenceThreshold::LOW: + return "LOW"; + case ConfidenceThreshold::MEDIUM: + return "MEDIUM"; + case ConfidenceThreshold::HIGH: + return "HIGH"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ConfidenceThresholdMapper + } // namespace Model + } // namespace Route53Resolver +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/CreateFirewallRuleRequest.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/CreateFirewallRuleRequest.cpp index 84dbe76f80a..c17cb483f49 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/CreateFirewallRuleRequest.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/CreateFirewallRuleRequest.cpp @@ -31,7 +31,11 @@ CreateFirewallRuleRequest::CreateFirewallRuleRequest() : m_nameHasBeenSet(false), m_firewallDomainRedirectionAction(FirewallDomainRedirectionAction::NOT_SET), m_firewallDomainRedirectionActionHasBeenSet(false), - m_qtypeHasBeenSet(false) + m_qtypeHasBeenSet(false), + m_dnsThreatProtection(DnsThreatProtection::NOT_SET), + m_dnsThreatProtectionHasBeenSet(false), + m_confidenceThreshold(ConfidenceThreshold::NOT_SET), + m_confidenceThresholdHasBeenSet(false) { } @@ -107,6 +111,16 @@ Aws::String CreateFirewallRuleRequest::SerializePayload() const } + if(m_dnsThreatProtectionHasBeenSet) + { + payload.WithString("DnsThreatProtection", DnsThreatProtectionMapper::GetNameForDnsThreatProtection(m_dnsThreatProtection)); + } + + if(m_confidenceThresholdHasBeenSet) + { + payload.WithString("ConfidenceThreshold", ConfidenceThresholdMapper::GetNameForConfidenceThreshold(m_confidenceThreshold)); + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/DeleteFirewallRuleRequest.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/DeleteFirewallRuleRequest.cpp index 12d5379f856..8e113a5bc36 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/DeleteFirewallRuleRequest.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/DeleteFirewallRuleRequest.cpp @@ -15,6 +15,7 @@ using namespace Aws::Utils; DeleteFirewallRuleRequest::DeleteFirewallRuleRequest() : m_firewallRuleGroupIdHasBeenSet(false), m_firewallDomainListIdHasBeenSet(false), + m_firewallThreatProtectionIdHasBeenSet(false), m_qtypeHasBeenSet(false) { } @@ -35,6 +36,12 @@ Aws::String DeleteFirewallRuleRequest::SerializePayload() const } + if(m_firewallThreatProtectionIdHasBeenSet) + { + payload.WithString("FirewallThreatProtectionId", m_firewallThreatProtectionId); + + } + if(m_qtypeHasBeenSet) { payload.WithString("Qtype", m_qtype); diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/DnsThreatProtection.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/DnsThreatProtection.cpp new file mode 100644 index 00000000000..bef61103bca --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/DnsThreatProtection.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace Route53Resolver + { + namespace Model + { + namespace DnsThreatProtectionMapper + { + + static const int DGA_HASH = HashingUtils::HashString("DGA"); + static const int DNS_TUNNELING_HASH = HashingUtils::HashString("DNS_TUNNELING"); + + + DnsThreatProtection GetDnsThreatProtectionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == DGA_HASH) + { + return DnsThreatProtection::DGA; + } + else if (hashCode == DNS_TUNNELING_HASH) + { + return DnsThreatProtection::DNS_TUNNELING; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return DnsThreatProtection::NOT_SET; + } + + Aws::String GetNameForDnsThreatProtection(DnsThreatProtection enumValue) + { + switch(enumValue) + { + case DnsThreatProtection::NOT_SET: + return {}; + case DnsThreatProtection::DGA: + return "DGA"; + case DnsThreatProtection::DNS_TUNNELING: + return "DNS_TUNNELING"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace DnsThreatProtectionMapper + } // namespace Model + } // namespace Route53Resolver +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallRule.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallRule.cpp index e4d8dd7b562..e02b62207fd 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallRule.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/FirewallRule.cpp @@ -21,6 +21,7 @@ namespace Model FirewallRule::FirewallRule() : m_firewallRuleGroupIdHasBeenSet(false), m_firewallDomainListIdHasBeenSet(false), + m_firewallThreatProtectionIdHasBeenSet(false), m_nameHasBeenSet(false), m_priority(0), m_priorityHasBeenSet(false), @@ -38,7 +39,11 @@ FirewallRule::FirewallRule() : m_modificationTimeHasBeenSet(false), m_firewallDomainRedirectionAction(FirewallDomainRedirectionAction::NOT_SET), m_firewallDomainRedirectionActionHasBeenSet(false), - m_qtypeHasBeenSet(false) + m_qtypeHasBeenSet(false), + m_dnsThreatProtection(DnsThreatProtection::NOT_SET), + m_dnsThreatProtectionHasBeenSet(false), + m_confidenceThreshold(ConfidenceThreshold::NOT_SET), + m_confidenceThresholdHasBeenSet(false) { } @@ -64,6 +69,13 @@ FirewallRule& FirewallRule::operator =(JsonView jsonValue) m_firewallDomainListIdHasBeenSet = true; } + if(jsonValue.ValueExists("FirewallThreatProtectionId")) + { + m_firewallThreatProtectionId = jsonValue.GetString("FirewallThreatProtectionId"); + + m_firewallThreatProtectionIdHasBeenSet = true; + } + if(jsonValue.ValueExists("Name")) { m_name = jsonValue.GetString("Name"); @@ -148,6 +160,20 @@ FirewallRule& FirewallRule::operator =(JsonView jsonValue) m_qtypeHasBeenSet = true; } + if(jsonValue.ValueExists("DnsThreatProtection")) + { + m_dnsThreatProtection = DnsThreatProtectionMapper::GetDnsThreatProtectionForName(jsonValue.GetString("DnsThreatProtection")); + + m_dnsThreatProtectionHasBeenSet = true; + } + + if(jsonValue.ValueExists("ConfidenceThreshold")) + { + m_confidenceThreshold = ConfidenceThresholdMapper::GetConfidenceThresholdForName(jsonValue.GetString("ConfidenceThreshold")); + + m_confidenceThresholdHasBeenSet = true; + } + return *this; } @@ -167,6 +193,12 @@ JsonValue FirewallRule::Jsonize() const } + if(m_firewallThreatProtectionIdHasBeenSet) + { + payload.WithString("FirewallThreatProtectionId", m_firewallThreatProtectionId); + + } + if(m_nameHasBeenSet) { payload.WithString("Name", m_name); @@ -235,6 +267,16 @@ JsonValue FirewallRule::Jsonize() const } + if(m_dnsThreatProtectionHasBeenSet) + { + payload.WithString("DnsThreatProtection", DnsThreatProtectionMapper::GetNameForDnsThreatProtection(m_dnsThreatProtection)); + } + + if(m_confidenceThresholdHasBeenSet) + { + payload.WithString("ConfidenceThreshold", ConfidenceThresholdMapper::GetNameForConfidenceThreshold(m_confidenceThreshold)); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/model/UpdateFirewallRuleRequest.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/model/UpdateFirewallRuleRequest.cpp index c4e31cc027e..83d8c6de17d 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/model/UpdateFirewallRuleRequest.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/model/UpdateFirewallRuleRequest.cpp @@ -15,6 +15,7 @@ using namespace Aws::Utils; UpdateFirewallRuleRequest::UpdateFirewallRuleRequest() : m_firewallRuleGroupIdHasBeenSet(false), m_firewallDomainListIdHasBeenSet(false), + m_firewallThreatProtectionIdHasBeenSet(false), m_priority(0), m_priorityHasBeenSet(false), m_action(Action::NOT_SET), @@ -29,7 +30,11 @@ UpdateFirewallRuleRequest::UpdateFirewallRuleRequest() : m_nameHasBeenSet(false), m_firewallDomainRedirectionAction(FirewallDomainRedirectionAction::NOT_SET), m_firewallDomainRedirectionActionHasBeenSet(false), - m_qtypeHasBeenSet(false) + m_qtypeHasBeenSet(false), + m_dnsThreatProtection(DnsThreatProtection::NOT_SET), + m_dnsThreatProtectionHasBeenSet(false), + m_confidenceThreshold(ConfidenceThreshold::NOT_SET), + m_confidenceThresholdHasBeenSet(false) { } @@ -49,6 +54,12 @@ Aws::String UpdateFirewallRuleRequest::SerializePayload() const } + if(m_firewallThreatProtectionIdHasBeenSet) + { + payload.WithString("FirewallThreatProtectionId", m_firewallThreatProtectionId); + + } + if(m_priorityHasBeenSet) { payload.WithInteger("Priority", m_priority); @@ -99,6 +110,16 @@ Aws::String UpdateFirewallRuleRequest::SerializePayload() const } + if(m_dnsThreatProtectionHasBeenSet) + { + payload.WithString("DnsThreatProtection", DnsThreatProtectionMapper::GetNameForDnsThreatProtection(m_dnsThreatProtection)); + } + + if(m_confidenceThresholdHasBeenSet) + { + payload.WithString("ConfidenceThreshold", ConfidenceThresholdMapper::GetNameForConfidenceThreshold(m_confidenceThreshold)); + } + return payload.View().WriteReadable(); } diff --git a/generated/tests/connectcampaignsv2-gen-tests/CMakeLists.txt b/generated/tests/connectcampaignsv2-gen-tests/CMakeLists.txt new file mode 100644 index 00000000000..69ce7ce642a --- /dev/null +++ b/generated/tests/connectcampaignsv2-gen-tests/CMakeLists.txt @@ -0,0 +1,42 @@ +add_project(connectcampaignsv2-gen-tests + "Tests for the AWS CONNECTCAMPAIGNSV2 C++ SDK" + testing-resources + aws-cpp-sdk-connectcampaignsv2 + aws-cpp-sdk-core) + +file(GLOB AWS_CONNECTCAMPAIGNSV2_GENERATED_TEST_SRC + "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" +) + +if(MSVC AND BUILD_SHARED_LIBS) + add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1) +endif() + +if (CMAKE_CROSSCOMPILING) + set(AUTORUN_UNIT_TESTS OFF) +endif() + +if (AUTORUN_UNIT_TESTS) + enable_testing() +endif() + +if(PLATFORM_ANDROID AND BUILD_SHARED_LIBS) + add_library(${PROJECT_NAME} "${AWS_CONNECTCAMPAIGNSV2_GENERATED_TEST_SRC}") +else() + add_executable(${PROJECT_NAME} "${AWS_CONNECTCAMPAIGNSV2_GENERATED_TEST_SRC}") +endif() + +set_compiler_flags(${PROJECT_NAME}) +set_compiler_warnings(${PROJECT_NAME}) + +target_link_libraries(${PROJECT_NAME} ${PROJECT_LIBS}) + +if (AUTORUN_UNIT_TESTS) + ADD_CUSTOM_COMMAND( TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E env LD_LIBRARY_PATH=${AWS_AUTORUN_LD_LIBRARY_PATH}:$ENV{LD_LIBRARY_PATH} $ + ARGS "--gtest_brief=1") +endif() + +if(NOT CMAKE_CROSSCOMPILING) + SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME}) +endif() \ No newline at end of file diff --git a/generated/tests/connectcampaignsv2-gen-tests/ConnectCampaignsV2EndpointProviderTests.cpp b/generated/tests/connectcampaignsv2-gen-tests/ConnectCampaignsV2EndpointProviderTests.cpp new file mode 100644 index 00000000000..c4c38981ac5 --- /dev/null +++ b/generated/tests/connectcampaignsv2-gen-tests/ConnectCampaignsV2EndpointProviderTests.cpp @@ -0,0 +1,428 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + + +static const char* ALLOCATION_TAG = "AWSConnectCampaignsV2EndpointProviderTests"; +using ConnectCampaignsV2EndpointProvider = Aws::ConnectCampaignsV2::Endpoint::ConnectCampaignsV2EndpointProvider; +using EndpointParameters = Aws::Vector; +using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; + +using EpParam = Aws::Endpoint::EndpointParameter; +using EpProp = Aws::Endpoint::EndpointParameter; // just a container to store test expectations +using ExpEpProps = Aws::UnorderedMap>>; +using ExpEpAuthScheme = Aws::Vector; +using ExpEpHeaders = Aws::UnorderedMap>; + +struct ConnectCampaignsV2EndpointProviderEndpointTestCase +{ + using OperationParamsFromTest = EndpointParameters; + + struct Expect + { + struct Endpoint + { + Aws::String url; + ExpEpAuthScheme authScheme; + ExpEpProps properties; + ExpEpHeaders headers; + } endpoint; + Aws::String error; + }; + struct OperationInput + { + Aws::String operationName; + OperationParamsFromTest operationParams; + OperationParamsFromTest builtinParams; + OperationParamsFromTest clientParams; + }; + + Aws::String documentation; + // Specification tells us it is Client Initialization parameters + // At the same time, specification tells us to test EndpointProvider not the client itself + // Hence params here will be set as a client params (just like a dedicated field above). + Aws::Vector params; + Aws::Vector tags; + Expect expect; + // Aws::Vector operationInput; +}; + +class ConnectCampaignsV2EndpointProviderTests : public ::testing::TestWithParam +{ +public: + static const size_t TEST_CASES_SZ; +protected: + static Aws::Vector getTestCase(); + static Aws::UniquePtrSafeDeleted> TEST_CASES; + static void SetUpTestSuite() + { + TEST_CASES = Aws::MakeUniqueSafeDeleted>(ALLOCATION_TAG, getTestCase()); + ASSERT_TRUE(TEST_CASES) << "Failed to allocate TEST_CASES table"; + assert(TEST_CASES->size() == TEST_CASES_SZ); + } + + static void TearDownTestSuite() + { + TEST_CASES.reset(); + } +}; + +Aws::UniquePtrSafeDeleted> ConnectCampaignsV2EndpointProviderTests::TEST_CASES; +const size_t ConnectCampaignsV2EndpointProviderTests::TEST_CASES_SZ = 25; + +Aws::Vector ConnectCampaignsV2EndpointProviderTests::getTestCase() { + + Aws::Vector test_cases = { + /*TEST CASE 0*/ + {"For region us-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns-fips.us-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 1*/ + {"For region us-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns-fips.us-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 2*/ + {"For region us-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns.us-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 3*/ + {"For region us-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns.us-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 4*/ + {"For region cn-north-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns-fips.cn-north-1.api.amazonwebservices.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 5*/ + {"For region cn-north-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns-fips.cn-north-1.amazonaws.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 6*/ + {"For region cn-north-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns.cn-north-1.api.amazonwebservices.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 7*/ + {"For region cn-north-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns.cn-north-1.amazonaws.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 8*/ + {"For region us-gov-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns-fips.us-gov-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 9*/ + {"For region us-gov-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns-fips.us-gov-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 10*/ + {"For region us-gov-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns.us-gov-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 11*/ + {"For region us-gov-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns.us-gov-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 12*/ + {"For region us-iso-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"FIPS and DualStack are enabled, but this partition does not support one or both"} // expect + }, + /*TEST CASE 13*/ + {"For region us-iso-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns-fips.us-iso-east-1.c2s.ic.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 14*/ + {"For region us-iso-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"DualStack is enabled but this partition does not support DualStack"} // expect + }, + /*TEST CASE 15*/ + {"For region us-iso-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns.us-iso-east-1.c2s.ic.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 16*/ + {"For region us-isob-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"FIPS and DualStack are enabled, but this partition does not support one or both"} // expect + }, + /*TEST CASE 17*/ + {"For region us-isob-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns-fips.us-isob-east-1.sc2s.sgov.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 18*/ + {"For region us-isob-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"DualStack is enabled but this partition does not support DualStack"} // expect + }, + /*TEST CASE 19*/ + {"For region us-isob-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://connect-campaigns.us-isob-east-1.sc2s.sgov.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 20*/ + {"For custom endpoint with region set and fips disabled and dualstack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://example.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 21*/ + {"For custom endpoint with region not set and fips disabled and dualstack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://example.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 22*/ + {"For custom endpoint with fips enabled and dualstack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: FIPS and custom endpoint are not supported"} // expect + }, + /*TEST CASE 23*/ + {"For custom endpoint with fips disabled and dualstack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: Dualstack and custom endpoint are not supported"} // expect + }, + /*TEST CASE 24*/ + {"Missing region", // documentation + {}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: Missing Region"} // expect + } + }; + return test_cases; +} + +Aws::String RulesToSdkSignerName(const Aws::String& rulesSignerName) +{ + Aws::String sdkSigner = "NullSigner"; + if (rulesSignerName == "sigv4") { + sdkSigner = "SignatureV4"; + } else if (rulesSignerName == "sigv4a") { + sdkSigner = "AsymmetricSignatureV4"; + } else if (rulesSignerName == "none") { + sdkSigner = "NullSigner"; + } else if (rulesSignerName == "bearer") { + sdkSigner = "Bearer"; + } else if (rulesSignerName == "s3Express") { + sdkSigner = "S3ExpressSigner"; + } else { + sdkSigner = rulesSignerName; + } + + return sdkSigner; +} + +void ValidateOutcome(const ResolveEndpointOutcome& outcome, const ConnectCampaignsV2EndpointProviderEndpointTestCase::Expect& expect) +{ + if(!expect.error.empty()) + { + ASSERT_FALSE(outcome.IsSuccess()) << "Expected failure with message:\n" << expect.error; + ASSERT_EQ(outcome.GetError().GetMessage(), expect.error); + } + else + { + AWS_ASSERT_SUCCESS(outcome); + ASSERT_EQ(outcome.GetResult().GetURL(), expect.endpoint.url); + const auto expAuthSchemesIt = expect.endpoint.properties.find("authSchemes"); + if (expAuthSchemesIt != expect.endpoint.properties.end()) + { + // in the list of AuthSchemes, select the one with a highest priority + const Aws::Vector priotityList = {"s3Express", "sigv4a", "sigv4", "bearer", "none", ""}; + const auto expectedAuthSchemePropsIt = std::find_first_of(expAuthSchemesIt->second.begin(), expAuthSchemesIt->second.end(), + priotityList.begin(), priotityList.end(), [](const Aws::Vector& props, const Aws::String& expName) + { + const auto& propNameIt = std::find_if(props.begin(), props.end(), [](const EpProp& prop) + { + return prop.GetName() == "name"; + }); + assert(propNameIt != props.end()); + return propNameIt->GetStrValueNoCheck() == expName; + }); + assert(expectedAuthSchemePropsIt != expAuthSchemesIt->second.end()); + + const auto& endpointResultAttrs = outcome.GetResult().GetAttributes(); + ASSERT_TRUE(endpointResultAttrs) << "Expected non-empty EndpointAttributes (authSchemes)"; + for (const auto& expProperty : *expectedAuthSchemePropsIt) + { + if (expProperty.GetName() == "name") { + ASSERT_TRUE(!endpointResultAttrs->authScheme.GetName().empty()); + ASSERT_EQ(RulesToSdkSignerName(expProperty.GetStrValueNoCheck()), endpointResultAttrs->authScheme.GetName()); + } else if (expProperty.GetName() == "signingName") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningName()); + ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningName().value()); + } else if (expProperty.GetName() == "signingRegion") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningRegion()); + ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningRegion().value()); + } else if (expProperty.GetName() == "signingRegionSet") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningRegionSet()); + ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningRegionSet().value()); + } else if (expProperty.GetName() == "disableDoubleEncoding") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetDisableDoubleEncoding()); + ASSERT_EQ(expProperty.GetBoolValueNoCheck(), endpointResultAttrs->authScheme.GetDisableDoubleEncoding().value()); + } else { + FAIL() << "Unsupported Auth type property " << expProperty.GetName() << ". Need to update test."; + } + } + } + + EXPECT_EQ(expect.endpoint.headers.empty(), outcome.GetResult().GetHeaders().empty()); + for(const auto& expHeaderVec : expect.endpoint.headers) + { + const auto& retHeaderIt = outcome.GetResult().GetHeaders().find(expHeaderVec.first); + ASSERT_TRUE(retHeaderIt != outcome.GetResult().GetHeaders().end()); + + auto retHeaderVec = Aws::Utils::StringUtils::Split(retHeaderIt->second, ';'); + std::sort(retHeaderVec.begin(), retHeaderVec.end()); + + auto expHeaderVecSorted = expHeaderVec.second; + std::sort(expHeaderVecSorted.begin(), expHeaderVecSorted.end()); + + ASSERT_EQ(expHeaderVecSorted, retHeaderVec); + } + } +} + +TEST_P(ConnectCampaignsV2EndpointProviderTests, EndpointProviderTest) +{ + const size_t TEST_CASE_IDX = GetParam(); + ASSERT_LT(TEST_CASE_IDX, TEST_CASES->size()) << "Something is wrong with the test fixture itself."; + const ConnectCampaignsV2EndpointProviderEndpointTestCase& TEST_CASE = TEST_CASES->at(TEST_CASE_IDX); + SCOPED_TRACE(Aws::String("\nTEST CASE # ") + Aws::Utils::StringUtils::to_string(TEST_CASE_IDX) + ": " + TEST_CASE.documentation); + SCOPED_TRACE(Aws::String("\n--gtest_filter=EndpointTestsFromModel/ConnectCampaignsV2EndpointProviderTests.EndpointProviderTest/") + Aws::Utils::StringUtils::to_string(TEST_CASE_IDX)); + + std::shared_ptr endpointProvider = Aws::MakeShared(ALLOCATION_TAG); + ASSERT_TRUE(endpointProvider) << "Failed to allocate/initialize ConnectCampaignsV2EndpointProvider"; + + EndpointParameters endpointParameters; + for(const auto& param : TEST_CASE.params) + { + endpointParameters.emplace(endpointParameters.end(), Aws::Endpoint::EndpointParameter(param)); + } + auto resolvedEndpointOutcome = endpointProvider->ResolveEndpoint(endpointParameters); + ValidateOutcome(resolvedEndpointOutcome, TEST_CASE.expect); + +#if 0 // temporarily disabled + for(const auto& operation : TEST_CASE.operationInput) + { + /* + * Most specific to least specific value locations: + staticContextParams + contextParam + clientContextParams + Built-In Bindings + Built-in binding default values + */ + const Aws::Vector> + operationInputParams = {std::cref(operation.builtinParams), std::cref(operation.clientParams), std::cref(operation.operationParams)}; + + for(const auto& paramSource : operationInputParams) + { + for(const auto& param : paramSource.get()) + { + endpointParameters.emplace(endpointParameters.end(), Aws::Endpoint::EndpointParameter(param)); + } + } + auto resolvedEndpointOutcomePerOperation = endpointProvider->ResolveEndpoint(endpointParameters); + ValidateOutcome(resolvedEndpointOutcomePerOperation, TEST_CASE.expect); + } +#endif +} + +INSTANTIATE_TEST_SUITE_P(EndpointTestsFromModel, + ConnectCampaignsV2EndpointProviderTests, + ::testing::Range((size_t) 0u, ConnectCampaignsV2EndpointProviderTests::TEST_CASES_SZ)); diff --git a/generated/tests/connectcampaignsv2-gen-tests/RunTests.cpp b/generated/tests/connectcampaignsv2-gen-tests/RunTests.cpp new file mode 100644 index 00000000000..f2f10a7c789 --- /dev/null +++ b/generated/tests/connectcampaignsv2-gen-tests/RunTests.cpp @@ -0,0 +1,29 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +int main(int argc, char** argv) +{ + Aws::SDKOptions options; + options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Trace; + + AWS_BEGIN_MEMORY_TEST_EX(options, 1024, 128); + Aws::Testing::InitPlatformTest(options); + Aws::Testing::ParseArgs(argc, argv); + + Aws::InitAPI(options); + ::testing::InitGoogleTest(&argc, argv); + int exitCode = RUN_ALL_TESTS(); + Aws::ShutdownAPI(options); + + AWS_END_MEMORY_TEST_EX; + Aws::Testing::ShutdownPlatformTest(options); + return exitCode; +} diff --git a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index ded66a878ca..f3f7da007b2 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h +++ b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h @@ -4,7 +4,7 @@ */ #pragma once -#define AWS_SDK_VERSION_STRING "1.11.448" +#define AWS_SDK_VERSION_STRING "1.11.449" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 448 +#define AWS_SDK_VERSION_PATCH 449 diff --git a/tools/code-generation/api-descriptions/connectcampaignsv2-2024-04-23.normal.json b/tools/code-generation/api-descriptions/connectcampaignsv2-2024-04-23.normal.json new file mode 100644 index 00000000000..baf7d34cb25 --- /dev/null +++ b/tools/code-generation/api-descriptions/connectcampaignsv2-2024-04-23.normal.json @@ -0,0 +1,2351 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2024-04-23", + "auth":["aws.auth#sigv4"], + "endpointPrefix":"connect-campaigns", + "jsonVersion":"1.1", + "protocol":"rest-json", + "protocols":["rest-json"], + "serviceFullName":"AmazonConnectCampaignServiceV2", + "serviceId":"ConnectCampaignsV2", + "signatureVersion":"v4", + "signingName":"connect-campaigns", + "uid":"connectcampaignsv2-2024-04-23" + }, + "operations":{ + "CreateCampaign":{ + "name":"CreateCampaign", + "http":{ + "method":"PUT", + "requestUri":"/v2/campaigns", + "responseCode":200 + }, + "input":{"shape":"CreateCampaignRequest"}, + "output":{"shape":"CreateCampaignResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Creates a campaign for the specified Amazon Connect account. This API is idempotent.

          ", + "idempotent":true + }, + "DeleteCampaign":{ + "name":"DeleteCampaign", + "http":{ + "method":"DELETE", + "requestUri":"/v2/campaigns/{id}", + "responseCode":200 + }, + "input":{"shape":"DeleteCampaignRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Deletes a campaign from the specified Amazon Connect account.

          ", + "idempotent":true + }, + "DeleteCampaignChannelSubtypeConfig":{ + "name":"DeleteCampaignChannelSubtypeConfig", + "http":{ + "method":"DELETE", + "requestUri":"/v2/campaigns/{id}/channel-subtype-config", + "responseCode":200 + }, + "input":{"shape":"DeleteCampaignChannelSubtypeConfigRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Deletes the channel subtype config of a campaign. This API is idempotent.

          ", + "idempotent":true + }, + "DeleteCampaignCommunicationLimits":{ + "name":"DeleteCampaignCommunicationLimits", + "http":{ + "method":"DELETE", + "requestUri":"/v2/campaigns/{id}/communication-limits", + "responseCode":200 + }, + "input":{"shape":"DeleteCampaignCommunicationLimitsRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InvalidCampaignStateException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Deletes the communication limits config for a campaign. This API is idempotent.

          ", + "idempotent":true + }, + "DeleteCampaignCommunicationTime":{ + "name":"DeleteCampaignCommunicationTime", + "http":{ + "method":"DELETE", + "requestUri":"/v2/campaigns/{id}/communication-time", + "responseCode":200 + }, + "input":{"shape":"DeleteCampaignCommunicationTimeRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InvalidCampaignStateException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Deletes the communication time config for a campaign. This API is idempotent.

          ", + "idempotent":true + }, + "DeleteConnectInstanceConfig":{ + "name":"DeleteConnectInstanceConfig", + "http":{ + "method":"DELETE", + "requestUri":"/v2/connect-instance/{connectInstanceId}/config", + "responseCode":200 + }, + "input":{"shape":"DeleteConnectInstanceConfigRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InvalidStateException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Deletes a connect instance config from the specified AWS account.

          ", + "idempotent":true + }, + "DeleteConnectInstanceIntegration":{ + "name":"DeleteConnectInstanceIntegration", + "http":{ + "method":"POST", + "requestUri":"/v2/connect-instance/{connectInstanceId}/integrations/delete", + "responseCode":200 + }, + "input":{"shape":"DeleteConnectInstanceIntegrationRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Delete the integration for the specified Amazon Connect instance.

          " + }, + "DeleteInstanceOnboardingJob":{ + "name":"DeleteInstanceOnboardingJob", + "http":{ + "method":"DELETE", + "requestUri":"/v2/connect-instance/{connectInstanceId}/onboarding", + "responseCode":200 + }, + "input":{"shape":"DeleteInstanceOnboardingJobRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InvalidStateException"} + ], + "documentation":"

          Delete the Connect Campaigns onboarding job for the specified Amazon Connect instance.

          ", + "idempotent":true + }, + "DescribeCampaign":{ + "name":"DescribeCampaign", + "http":{ + "method":"GET", + "requestUri":"/v2/campaigns/{id}", + "responseCode":200 + }, + "input":{"shape":"DescribeCampaignRequest"}, + "output":{"shape":"DescribeCampaignResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Describes the specific campaign.

          " + }, + "GetCampaignState":{ + "name":"GetCampaignState", + "http":{ + "method":"GET", + "requestUri":"/v2/campaigns/{id}/state", + "responseCode":200 + }, + "input":{"shape":"GetCampaignStateRequest"}, + "output":{"shape":"GetCampaignStateResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Get state of a campaign for the specified Amazon Connect account.

          " + }, + "GetCampaignStateBatch":{ + "name":"GetCampaignStateBatch", + "http":{ + "method":"POST", + "requestUri":"/v2/campaigns-state", + "responseCode":200 + }, + "input":{"shape":"GetCampaignStateBatchRequest"}, + "output":{"shape":"GetCampaignStateBatchResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Get state of campaigns for the specified Amazon Connect account.

          " + }, + "GetConnectInstanceConfig":{ + "name":"GetConnectInstanceConfig", + "http":{ + "method":"GET", + "requestUri":"/v2/connect-instance/{connectInstanceId}/config", + "responseCode":200 + }, + "input":{"shape":"GetConnectInstanceConfigRequest"}, + "output":{"shape":"GetConnectInstanceConfigResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Get the specific Connect instance config.

          " + }, + "GetInstanceOnboardingJobStatus":{ + "name":"GetInstanceOnboardingJobStatus", + "http":{ + "method":"GET", + "requestUri":"/v2/connect-instance/{connectInstanceId}/onboarding", + "responseCode":200 + }, + "input":{"shape":"GetInstanceOnboardingJobStatusRequest"}, + "output":{"shape":"GetInstanceOnboardingJobStatusResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Get the specific instance onboarding job status.

          " + }, + "ListCampaigns":{ + "name":"ListCampaigns", + "http":{ + "method":"POST", + "requestUri":"/v2/campaigns-summary", + "responseCode":200 + }, + "input":{"shape":"ListCampaignsRequest"}, + "output":{"shape":"ListCampaignsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Provides summary information about the campaigns under the specified Amazon Connect account.

          " + }, + "ListConnectInstanceIntegrations":{ + "name":"ListConnectInstanceIntegrations", + "http":{ + "method":"GET", + "requestUri":"/v2/connect-instance/{connectInstanceId}/integrations", + "responseCode":200 + }, + "input":{"shape":"ListConnectInstanceIntegrationsRequest"}, + "output":{"shape":"ListConnectInstanceIntegrationsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Provides summary information about the integration under the specified Connect instance.

          " + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/v2/tags/{arn}", + "responseCode":200 + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          List tags for a resource.

          " + }, + "PauseCampaign":{ + "name":"PauseCampaign", + "http":{ + "method":"POST", + "requestUri":"/v2/campaigns/{id}/pause", + "responseCode":200 + }, + "input":{"shape":"PauseCampaignRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InvalidCampaignStateException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Pauses a campaign for the specified Amazon Connect account.

          " + }, + "PutConnectInstanceIntegration":{ + "name":"PutConnectInstanceIntegration", + "http":{ + "method":"PUT", + "requestUri":"/v2/connect-instance/{connectInstanceId}/integrations", + "responseCode":200 + }, + "input":{"shape":"PutConnectInstanceIntegrationRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Put or update the integration for the specified Amazon Connect instance.

          ", + "idempotent":true + }, + "PutOutboundRequestBatch":{ + "name":"PutOutboundRequestBatch", + "http":{ + "method":"PUT", + "requestUri":"/v2/campaigns/{id}/outbound-requests", + "responseCode":200 + }, + "input":{"shape":"PutOutboundRequestBatchRequest"}, + "output":{"shape":"PutOutboundRequestBatchResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InvalidCampaignStateException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Creates outbound requests for the specified campaign Amazon Connect account. This API is idempotent.

          ", + "idempotent":true + }, + "ResumeCampaign":{ + "name":"ResumeCampaign", + "http":{ + "method":"POST", + "requestUri":"/v2/campaigns/{id}/resume", + "responseCode":200 + }, + "input":{"shape":"ResumeCampaignRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InvalidCampaignStateException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Stops a campaign for the specified Amazon Connect account.

          " + }, + "StartCampaign":{ + "name":"StartCampaign", + "http":{ + "method":"POST", + "requestUri":"/v2/campaigns/{id}/start", + "responseCode":200 + }, + "input":{"shape":"StartCampaignRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InvalidCampaignStateException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Starts a campaign for the specified Amazon Connect account.

          " + }, + "StartInstanceOnboardingJob":{ + "name":"StartInstanceOnboardingJob", + "http":{ + "method":"PUT", + "requestUri":"/v2/connect-instance/{connectInstanceId}/onboarding", + "responseCode":200 + }, + "input":{"shape":"StartInstanceOnboardingJobRequest"}, + "output":{"shape":"StartInstanceOnboardingJobResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Onboard the specific Amazon Connect instance to Connect Campaigns.

          ", + "idempotent":true + }, + "StopCampaign":{ + "name":"StopCampaign", + "http":{ + "method":"POST", + "requestUri":"/v2/campaigns/{id}/stop", + "responseCode":200 + }, + "input":{"shape":"StopCampaignRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InvalidCampaignStateException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Stops a campaign for the specified Amazon Connect account.

          " + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/v2/tags/{arn}", + "responseCode":200 + }, + "input":{"shape":"TagResourceRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Tag a resource.

          ", + "idempotent":true + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/v2/tags/{arn}", + "responseCode":200 + }, + "input":{"shape":"UntagResourceRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

          Untag a resource.

          ", + "idempotent":true + }, + "UpdateCampaignChannelSubtypeConfig":{ + "name":"UpdateCampaignChannelSubtypeConfig", + "http":{ + "method":"POST", + "requestUri":"/v2/campaigns/{id}/channel-subtype-config", + "responseCode":200 + }, + "input":{"shape":"UpdateCampaignChannelSubtypeConfigRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Updates the channel subtype config of a campaign. This API is idempotent.

          ", + "idempotent":true + }, + "UpdateCampaignCommunicationLimits":{ + "name":"UpdateCampaignCommunicationLimits", + "http":{ + "method":"POST", + "requestUri":"/v2/campaigns/{id}/communication-limits", + "responseCode":200 + }, + "input":{"shape":"UpdateCampaignCommunicationLimitsRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InvalidCampaignStateException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Updates the communication limits config for a campaign. This API is idempotent.

          ", + "idempotent":true + }, + "UpdateCampaignCommunicationTime":{ + "name":"UpdateCampaignCommunicationTime", + "http":{ + "method":"POST", + "requestUri":"/v2/campaigns/{id}/communication-time", + "responseCode":200 + }, + "input":{"shape":"UpdateCampaignCommunicationTimeRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InvalidCampaignStateException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Updates the communication time config for a campaign. This API is idempotent.

          ", + "idempotent":true + }, + "UpdateCampaignFlowAssociation":{ + "name":"UpdateCampaignFlowAssociation", + "http":{ + "method":"POST", + "requestUri":"/v2/campaigns/{id}/flow", + "responseCode":200 + }, + "input":{"shape":"UpdateCampaignFlowAssociationRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InvalidCampaignStateException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Updates the campaign flow associated with a campaign. This API is idempotent.

          ", + "idempotent":true + }, + "UpdateCampaignName":{ + "name":"UpdateCampaignName", + "http":{ + "method":"POST", + "requestUri":"/v2/campaigns/{id}/name", + "responseCode":200 + }, + "input":{"shape":"UpdateCampaignNameRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Updates the name of a campaign. This API is idempotent.

          ", + "idempotent":true + }, + "UpdateCampaignSchedule":{ + "name":"UpdateCampaignSchedule", + "http":{ + "method":"POST", + "requestUri":"/v2/campaigns/{id}/schedule", + "responseCode":200 + }, + "input":{"shape":"UpdateCampaignScheduleRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InvalidCampaignStateException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Updates the schedule for a campaign. This API is idempotent.

          ", + "idempotent":true + }, + "UpdateCampaignSource":{ + "name":"UpdateCampaignSource", + "http":{ + "method":"POST", + "requestUri":"/v2/campaigns/{id}/source", + "responseCode":200 + }, + "input":{"shape":"UpdateCampaignSourceRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InvalidCampaignStateException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

          Updates the campaign source with a campaign. This API is idempotent.

          ", + "idempotent":true + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "xAmzErrorType":{ + "shape":"XAmazonErrorType", + "location":"header", + "locationName":"x-amzn-ErrorType" + } + }, + "documentation":"

          You do not have sufficient access to perform this action.

          ", + "error":{ + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "AgentlessConfig":{ + "type":"structure", + "members":{ + }, + "documentation":"

          Agentless config

          " + }, + "AnswerMachineDetectionConfig":{ + "type":"structure", + "required":["enableAnswerMachineDetection"], + "members":{ + "enableAnswerMachineDetection":{ + "shape":"Boolean", + "documentation":"

          Enable or disable answering machine detection

          " + }, + "awaitAnswerMachinePrompt":{ + "shape":"Boolean", + "documentation":"

          Enable or disable await answer machine prompt

          " + } + }, + "documentation":"

          Answering Machine Detection config

          " + }, + "Arn":{ + "type":"string", + "documentation":"

          Amazon Resource Names(ARN)

          ", + "max":500, + "min":20, + "pattern":"arn:[a-zA-Z0-9-]+:[a-zA-Z0-9-]+:[a-z]{2}-[a-z]+-\\d{1,2}:[a-zA-Z0-9-]+:[^:]+(?:/[^:]+)*(?:/[^:]+)?(?:\\:[^:]+)?" + }, + "AttributeName":{ + "type":"string", + "documentation":"

          The key of the attribute. Attribute keys can include only alphanumeric, dash, and underscore characters.

          ", + "max":32767, + "min":0, + "pattern":"[a-zA-Z0-9\\-_]+" + }, + "AttributeValue":{ + "type":"string", + "documentation":"

          The value of the attribute.

          ", + "max":32767, + "min":0, + "pattern":".*" + }, + "Attributes":{ + "type":"map", + "key":{"shape":"AttributeName"}, + "value":{"shape":"AttributeValue"}, + "documentation":"

          A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in contact flows just like any other contact attributes.

          ", + "sensitive":true + }, + "BandwidthAllocation":{ + "type":"double", + "documentation":"

          The bandwidth allocation of a queue resource.

          ", + "box":true, + "max":1, + "min":0 + }, + "Boolean":{ + "type":"boolean", + "box":true + }, + "Campaign":{ + "type":"structure", + "required":[ + "id", + "arn", + "name", + "connectInstanceId", + "channelSubtypeConfig" + ], + "members":{ + "id":{"shape":"CampaignId"}, + "arn":{"shape":"CampaignArn"}, + "name":{"shape":"CampaignName"}, + "connectInstanceId":{"shape":"InstanceId"}, + "channelSubtypeConfig":{"shape":"ChannelSubtypeConfig"}, + "source":{"shape":"Source"}, + "connectCampaignFlowArn":{"shape":"Arn"}, + "schedule":{"shape":"Schedule"}, + "communicationTimeConfig":{"shape":"CommunicationTimeConfig"}, + "communicationLimitsOverride":{"shape":"CommunicationLimitsConfig"}, + "tags":{"shape":"TagMap"} + }, + "documentation":"

          An Amazon Connect campaign.

          " + }, + "CampaignArn":{ + "type":"string", + "documentation":"

          The resource name of an Amazon Connect campaign.

          ", + "max":500, + "min":20 + }, + "CampaignDeletionPolicy":{ + "type":"string", + "documentation":"

          Enumeration of the policies to enact on existing campaigns during instance config deletion

          ", + "enum":[ + "RETAIN_ALL", + "DELETE_ALL" + ] + }, + "CampaignFilters":{ + "type":"structure", + "members":{ + "instanceIdFilter":{"shape":"InstanceIdFilter"} + }, + "documentation":"

          Filter model by type

          " + }, + "CampaignId":{ + "type":"string", + "documentation":"

          Identifier representing a Campaign

          ", + "max":256, + "min":0, + "pattern":"[a-zA-Z0-9\\-:/]*" + }, + "CampaignName":{ + "type":"string", + "documentation":"

          The name of an Amazon Connect Campaign name.

          ", + "max":127, + "min":1 + }, + "CampaignState":{ + "type":"string", + "documentation":"

          State of a campaign

          ", + "enum":[ + "Initialized", + "Running", + "Paused", + "Stopped", + "Failed", + "Completed" + ] + }, + "CampaignSummary":{ + "type":"structure", + "required":[ + "id", + "arn", + "name", + "connectInstanceId", + "channelSubtypes" + ], + "members":{ + "id":{"shape":"CampaignId"}, + "arn":{"shape":"CampaignArn"}, + "name":{"shape":"CampaignName"}, + "connectInstanceId":{"shape":"InstanceId"}, + "channelSubtypes":{"shape":"ChannelSubtypeList"}, + "schedule":{"shape":"Schedule"}, + "connectCampaignFlowArn":{"shape":"Arn"} + }, + "documentation":"

          An Amazon Connect campaign summary.

          " + }, + "CampaignSummaryList":{ + "type":"list", + "member":{"shape":"CampaignSummary"}, + "documentation":"

          A list of Amazon Connect campaigns.

          " + }, + "Capacity":{ + "type":"double", + "documentation":"

          Allocates outbound capacity for the specific channel subtype of this campaign between multiple active campaigns

          ", + "box":true, + "max":1, + "min":0.01 + }, + "ChannelSubtype":{ + "type":"string", + "documentation":"

          The type of campaign channel subtype.

          ", + "enum":[ + "TELEPHONY", + "SMS", + "EMAIL" + ] + }, + "ChannelSubtypeConfig":{ + "type":"structure", + "members":{ + "telephony":{"shape":"TelephonyChannelSubtypeConfig"}, + "sms":{"shape":"SmsChannelSubtypeConfig"}, + "email":{"shape":"EmailChannelSubtypeConfig"} + }, + "documentation":"

          Campaign Channel Subtype config

          " + }, + "ChannelSubtypeList":{ + "type":"list", + "member":{"shape":"ChannelSubtype"}, + "documentation":"

          Channel subtype list

          " + }, + "ChannelSubtypeParameters":{ + "type":"structure", + "members":{ + "telephony":{"shape":"TelephonyChannelSubtypeParameters"}, + "sms":{"shape":"SmsChannelSubtypeParameters"}, + "email":{"shape":"EmailChannelSubtypeParameters"} + }, + "documentation":"

          ChannelSubtypeParameters for an outbound request

          ", + "union":true + }, + "ClientToken":{ + "type":"string", + "documentation":"

          Client provided parameter used for idempotency. Its value must be unique for each request.

          ", + "max":200, + "min":0, + "pattern":"[a-zA-Z0-9_\\-.]*" + }, + "CommunicationLimit":{ + "type":"structure", + "required":[ + "maxCountPerRecipient", + "frequency", + "unit" + ], + "members":{ + "maxCountPerRecipient":{ + "shape":"CommunicationLimitMaxCountPerRecipientInteger", + "documentation":"

          Maximum number of contacts allowed for a given target within the given frequency.

          " + }, + "frequency":{ + "shape":"CommunicationLimitFrequencyInteger", + "documentation":"

          The number of days to consider with regards to this limit.

          " + }, + "unit":{"shape":"CommunicationLimitTimeUnit"} + }, + "documentation":"

          Communication Limit

          " + }, + "CommunicationLimitFrequencyInteger":{ + "type":"integer", + "box":true, + "max":30, + "min":1 + }, + "CommunicationLimitList":{ + "type":"list", + "member":{"shape":"CommunicationLimit"}, + "documentation":"

          List of communication limit

          ", + "max":2, + "min":0 + }, + "CommunicationLimitMaxCountPerRecipientInteger":{ + "type":"integer", + "box":true, + "min":1 + }, + "CommunicationLimitTimeUnit":{ + "type":"string", + "documentation":"

          The communication limit time unit.

          ", + "enum":["DAY"] + }, + "CommunicationLimits":{ + "type":"structure", + "members":{ + "communicationLimitsList":{"shape":"CommunicationLimitList"} + }, + "documentation":"

          Communication limits

          ", + "union":true + }, + "CommunicationLimitsConfig":{ + "type":"structure", + "members":{ + "allChannelSubtypes":{"shape":"CommunicationLimits"} + }, + "documentation":"

          Communication limits config

          " + }, + "CommunicationLimitsConfigType":{ + "type":"string", + "documentation":"

          The type of campaign communication limits config.

          ", + "enum":["ALL_CHANNEL_SUBTYPES"] + }, + "CommunicationTimeConfig":{ + "type":"structure", + "required":["localTimeZoneConfig"], + "members":{ + "localTimeZoneConfig":{"shape":"LocalTimeZoneConfig"}, + "telephony":{"shape":"TimeWindow"}, + "sms":{"shape":"TimeWindow"}, + "email":{"shape":"TimeWindow"} + }, + "documentation":"

          Campaign communication time config

          " + }, + "CommunicationTimeConfigType":{ + "type":"string", + "documentation":"

          The type of campaign communication time config

          ", + "enum":[ + "TELEPHONY", + "SMS", + "EMAIL" + ] + }, + "ConflictException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "xAmzErrorType":{ + "shape":"XAmazonErrorType", + "location":"header", + "locationName":"x-amzn-ErrorType" + } + }, + "documentation":"

          The request could not be processed because of conflict in the current state of the resource.

          ", + "error":{ + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + "ContactFlowId":{ + "type":"string", + "documentation":"

          The identifier of the contact flow for the outbound call.

          ", + "max":500, + "min":0 + }, + "CreateCampaignRequest":{ + "type":"structure", + "required":[ + "name", + "connectInstanceId", + "channelSubtypeConfig" + ], + "members":{ + "name":{"shape":"CampaignName"}, + "connectInstanceId":{"shape":"InstanceId"}, + "channelSubtypeConfig":{"shape":"ChannelSubtypeConfig"}, + "source":{"shape":"Source"}, + "connectCampaignFlowArn":{"shape":"Arn"}, + "schedule":{"shape":"Schedule"}, + "communicationTimeConfig":{"shape":"CommunicationTimeConfig"}, + "communicationLimitsOverride":{"shape":"CommunicationLimitsConfig"}, + "tags":{"shape":"TagMap"} + }, + "documentation":"

          The request for CreateCampaign API.

          " + }, + "CreateCampaignResponse":{ + "type":"structure", + "members":{ + "id":{"shape":"CampaignId"}, + "arn":{"shape":"CampaignArn"}, + "tags":{"shape":"TagMap"} + }, + "documentation":"

          The response for Create Campaign API

          " + }, + "CustomerProfilesIntegrationConfig":{ + "type":"structure", + "required":[ + "domainArn", + "objectTypeNames" + ], + "members":{ + "domainArn":{"shape":"Arn"}, + "objectTypeNames":{"shape":"ObjectTypeNamesMap"} + }, + "documentation":"

          Customer Profiles integration config

          " + }, + "CustomerProfilesIntegrationIdentifier":{ + "type":"structure", + "required":["domainArn"], + "members":{ + "domainArn":{"shape":"Arn"} + }, + "documentation":"

          Customer Profiles integration identifier

          " + }, + "CustomerProfilesIntegrationSummary":{ + "type":"structure", + "required":[ + "domainArn", + "objectTypeNames" + ], + "members":{ + "domainArn":{"shape":"Arn"}, + "objectTypeNames":{"shape":"ObjectTypeNamesMap"} + }, + "documentation":"

          Customer Profiles integration summary

          " + }, + "DailyHours":{ + "type":"map", + "key":{"shape":"DayOfWeek"}, + "value":{"shape":"TimeRangeList"}, + "documentation":"

          Daily Hours map

          " + }, + "DayOfWeek":{ + "type":"string", + "documentation":"

          Day of week enum

          ", + "enum":[ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "DeleteCampaignChannelSubtypeConfigRequest":{ + "type":"structure", + "required":[ + "id", + "channelSubtype" + ], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + }, + "channelSubtype":{ + "shape":"ChannelSubtype", + "location":"querystring", + "locationName":"channelSubtype" + } + }, + "documentation":"

          The request for DeleteCampaignChannelSubtypeConfig API.

          " + }, + "DeleteCampaignCommunicationLimitsRequest":{ + "type":"structure", + "required":[ + "id", + "config" + ], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + }, + "config":{ + "shape":"CommunicationLimitsConfigType", + "location":"querystring", + "locationName":"config" + } + }, + "documentation":"

          The request for DeleteCampaignCommunicationLimits API.

          " + }, + "DeleteCampaignCommunicationTimeRequest":{ + "type":"structure", + "required":[ + "id", + "config" + ], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + }, + "config":{ + "shape":"CommunicationTimeConfigType", + "location":"querystring", + "locationName":"config" + } + }, + "documentation":"

          The request for DeleteCampaignCommunicationTime API.

          " + }, + "DeleteCampaignRequest":{ + "type":"structure", + "required":["id"], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + } + }, + "documentation":"

          The request for DeleteCampaign API.

          " + }, + "DeleteConnectInstanceConfigRequest":{ + "type":"structure", + "required":["connectInstanceId"], + "members":{ + "connectInstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"connectInstanceId" + }, + "campaignDeletionPolicy":{ + "shape":"CampaignDeletionPolicy", + "location":"querystring", + "locationName":"campaignDeletionPolicy" + } + }, + "documentation":"

          The request for DeleteConnectInstanceConfig API.

          " + }, + "DeleteConnectInstanceIntegrationRequest":{ + "type":"structure", + "required":[ + "connectInstanceId", + "integrationIdentifier" + ], + "members":{ + "connectInstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"connectInstanceId" + }, + "integrationIdentifier":{"shape":"IntegrationIdentifier"} + }, + "documentation":"

          The request for DeleteConnectInstanceIntegration API.

          " + }, + "DeleteInstanceOnboardingJobRequest":{ + "type":"structure", + "required":["connectInstanceId"], + "members":{ + "connectInstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"connectInstanceId" + } + }, + "documentation":"

          The request for DeleteInstanceOnboardingJob API.

          " + }, + "DescribeCampaignRequest":{ + "type":"structure", + "required":["id"], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + } + }, + "documentation":"

          The request for DescribeCampaign API.

          " + }, + "DescribeCampaignResponse":{ + "type":"structure", + "members":{ + "campaign":{"shape":"Campaign"} + }, + "documentation":"

          The response for DescribeCampaign API.

          " + }, + "DestinationPhoneNumber":{ + "type":"string", + "documentation":"

          The phone number of the customer, in E.164 format.

          ", + "max":20, + "min":0, + "pattern":"[\\d\\-+]*", + "sensitive":true + }, + "DialRequestId":{ + "type":"string", + "documentation":"

          Identifier representing a Dial request

          ", + "max":256, + "min":0, + "pattern":"[a-zA-Z0-9_\\-.]*" + }, + "EmailAddress":{ + "type":"string", + "documentation":"

          Source/Destination Email address used for Email messages

          ", + "max":255, + "min":1, + "pattern":".*[^\\s@]+@[^\\s@]+\\.[^\\s@]+.*", + "sensitive":true + }, + "EmailChannelSubtypeConfig":{ + "type":"structure", + "required":[ + "outboundMode", + "defaultOutboundConfig" + ], + "members":{ + "capacity":{"shape":"Capacity"}, + "outboundMode":{"shape":"EmailOutboundMode"}, + "defaultOutboundConfig":{"shape":"EmailOutboundConfig"} + }, + "documentation":"

          Email Channel Subtype config

          " + }, + "EmailChannelSubtypeParameters":{ + "type":"structure", + "required":[ + "destinationEmailAddress", + "templateParameters" + ], + "members":{ + "destinationEmailAddress":{"shape":"EmailAddress"}, + "connectSourceEmailAddress":{"shape":"EmailAddress"}, + "templateArn":{"shape":"Arn"}, + "templateParameters":{"shape":"Attributes"} + }, + "documentation":"

          Parameters for the Email Channel Subtype

          " + }, + "EmailDisplayName":{ + "type":"string", + "documentation":"

          Display name for Email Address

          ", + "max":256, + "min":0, + "sensitive":true + }, + "EmailOutboundConfig":{ + "type":"structure", + "required":[ + "connectSourceEmailAddress", + "wisdomTemplateArn" + ], + "members":{ + "connectSourceEmailAddress":{"shape":"EmailAddress"}, + "sourceEmailAddressDisplayName":{"shape":"EmailDisplayName"}, + "wisdomTemplateArn":{"shape":"Arn"} + }, + "documentation":"

          Default Email Outbound config

          " + }, + "EmailOutboundMode":{ + "type":"structure", + "members":{ + "agentless":{"shape":"AgentlessConfig"} + }, + "documentation":"

          Email Outbound Mode

          ", + "union":true + }, + "Enabled":{ + "type":"boolean", + "documentation":"

          Boolean to indicate if custom encryption has been enabled.

          " + }, + "EncryptionConfig":{ + "type":"structure", + "required":["enabled"], + "members":{ + "enabled":{"shape":"Enabled"}, + "encryptionType":{"shape":"EncryptionType"}, + "keyArn":{"shape":"EncryptionKey"} + }, + "documentation":"

          Encryption config for Connect Instance. Note that sensitive data will always be encrypted. If disabled, service will perform encryption with its own key. If enabled, a KMS key id needs to be provided and KMS charges will apply. KMS is only type supported

          " + }, + "EncryptionKey":{ + "type":"string", + "documentation":"

          KMS key id/arn for encryption config.

          ", + "max":500, + "min":0 + }, + "EncryptionType":{ + "type":"string", + "documentation":"

          Server-side encryption type.

          ", + "enum":["KMS"] + }, + "EventType":{ + "type":"string", + "documentation":"

          Enumeration of Customer Profiles event type

          ", + "enum":[ + "Campaign-Email", + "Campaign-SMS", + "Campaign-Telephony", + "Campaign-Orchestration" + ] + }, + "FailedCampaignStateResponse":{ + "type":"structure", + "members":{ + "campaignId":{"shape":"CampaignId"}, + "failureCode":{"shape":"GetCampaignStateBatchFailureCode"} + }, + "documentation":"

          Failed response of campaign state

          " + }, + "FailedCampaignStateResponseList":{ + "type":"list", + "member":{"shape":"FailedCampaignStateResponse"}, + "documentation":"

          List of failed requests of campaign state

          ", + "max":25, + "min":0 + }, + "FailedRequest":{ + "type":"structure", + "members":{ + "clientToken":{"shape":"ClientToken"}, + "id":{"shape":"DialRequestId"}, + "failureCode":{"shape":"FailureCode"} + }, + "documentation":"

          A failed request identified by the unique client token.

          " + }, + "FailedRequestList":{ + "type":"list", + "member":{"shape":"FailedRequest"}, + "documentation":"

          A list of failed requests.

          ", + "max":25, + "min":0 + }, + "FailureCode":{ + "type":"string", + "documentation":"

          A predefined code indicating the error that caused the failure.

          ", + "enum":[ + "InvalidInput", + "RequestThrottled", + "UnknownError", + "BufferLimitExceeded" + ] + }, + "GetCampaignStateBatchFailureCode":{ + "type":"string", + "documentation":"

          A predefined code indicating the error that caused the failure in getting state of campaigns

          ", + "enum":[ + "ResourceNotFound", + "UnknownError" + ] + }, + "GetCampaignStateBatchRequest":{ + "type":"structure", + "required":["campaignIds"], + "members":{ + "campaignIds":{"shape":"GetCampaignStateBatchRequestCampaignIdsList"} + }, + "documentation":"

          The request for GetCampaignStateBatch API.

          " + }, + "GetCampaignStateBatchRequestCampaignIdsList":{ + "type":"list", + "member":{"shape":"CampaignId"}, + "documentation":"

          List of CampaignId

          ", + "max":25, + "min":1 + }, + "GetCampaignStateBatchResponse":{ + "type":"structure", + "members":{ + "successfulRequests":{"shape":"SuccessfulCampaignStateResponseList"}, + "failedRequests":{"shape":"FailedCampaignStateResponseList"} + }, + "documentation":"

          The response for GetCampaignStateBatch API.

          " + }, + "GetCampaignStateRequest":{ + "type":"structure", + "required":["id"], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + } + }, + "documentation":"

          The request for GetCampaignState API.

          " + }, + "GetCampaignStateResponse":{ + "type":"structure", + "members":{ + "state":{"shape":"CampaignState"} + }, + "documentation":"

          The response for GetCampaignState API.

          " + }, + "GetConnectInstanceConfigRequest":{ + "type":"structure", + "required":["connectInstanceId"], + "members":{ + "connectInstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"connectInstanceId" + } + }, + "documentation":"

          The request for GetConnectInstanceConfig API.

          " + }, + "GetConnectInstanceConfigResponse":{ + "type":"structure", + "members":{ + "connectInstanceConfig":{"shape":"InstanceConfig"} + }, + "documentation":"

          The response for GetConnectInstanceConfig API.

          " + }, + "GetInstanceOnboardingJobStatusRequest":{ + "type":"structure", + "required":["connectInstanceId"], + "members":{ + "connectInstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"connectInstanceId" + } + }, + "documentation":"

          The request for GetInstanceOnboardingJobStatus API.

          " + }, + "GetInstanceOnboardingJobStatusResponse":{ + "type":"structure", + "members":{ + "connectInstanceOnboardingJobStatus":{"shape":"InstanceOnboardingJobStatus"} + }, + "documentation":"

          The response for GetInstanceOnboardingJobStatus API.

          " + }, + "InstanceConfig":{ + "type":"structure", + "required":[ + "connectInstanceId", + "serviceLinkedRoleArn", + "encryptionConfig" + ], + "members":{ + "connectInstanceId":{"shape":"InstanceId"}, + "serviceLinkedRoleArn":{"shape":"ServiceLinkedRoleArn"}, + "encryptionConfig":{"shape":"EncryptionConfig"} + }, + "documentation":"

          Instance config object

          " + }, + "InstanceId":{ + "type":"string", + "documentation":"

          Amazon Connect Instance Id

          ", + "max":256, + "min":0, + "pattern":"[a-zA-Z0-9_\\-.]*" + }, + "InstanceIdFilter":{ + "type":"structure", + "required":[ + "value", + "operator" + ], + "members":{ + "value":{"shape":"InstanceId"}, + "operator":{"shape":"InstanceIdFilterOperator"} + }, + "documentation":"

          Connect instance identifier filter

          " + }, + "InstanceIdFilterOperator":{ + "type":"string", + "documentation":"

          Operators for Connect instance identifier filter

          ", + "enum":["Eq"] + }, + "InstanceOnboardingJobFailureCode":{ + "type":"string", + "documentation":"

          Enumeration of the possible failure codes for instance onboarding job

          ", + "enum":[ + "EVENT_BRIDGE_ACCESS_DENIED", + "EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED", + "IAM_ACCESS_DENIED", + "KMS_ACCESS_DENIED", + "KMS_KEY_NOT_FOUND", + "INTERNAL_FAILURE" + ] + }, + "InstanceOnboardingJobStatus":{ + "type":"structure", + "required":[ + "connectInstanceId", + "status" + ], + "members":{ + "connectInstanceId":{"shape":"InstanceId"}, + "status":{"shape":"InstanceOnboardingJobStatusCode"}, + "failureCode":{"shape":"InstanceOnboardingJobFailureCode"} + }, + "documentation":"

          Instance onboarding job status object

          " + }, + "InstanceOnboardingJobStatusCode":{ + "type":"string", + "documentation":"

          Enumeration of the possible states for instance onboarding job

          ", + "enum":[ + "IN_PROGRESS", + "SUCCEEDED", + "FAILED" + ] + }, + "IntegrationConfig":{ + "type":"structure", + "members":{ + "customerProfiles":{"shape":"CustomerProfilesIntegrationConfig"}, + "qConnect":{"shape":"QConnectIntegrationConfig"} + }, + "documentation":"

          Integration config for Connect Instance

          ", + "union":true + }, + "IntegrationIdentifier":{ + "type":"structure", + "members":{ + "customerProfiles":{"shape":"CustomerProfilesIntegrationIdentifier"}, + "qConnect":{"shape":"QConnectIntegrationIdentifier"} + }, + "documentation":"

          Integration identifier for Connect instance

          ", + "union":true + }, + "IntegrationSummary":{ + "type":"structure", + "members":{ + "customerProfiles":{"shape":"CustomerProfilesIntegrationSummary"}, + "qConnect":{"shape":"QConnectIntegrationSummary"} + }, + "documentation":"

          Integration summary for Connect instance.

          ", + "union":true + }, + "IntegrationSummaryList":{ + "type":"list", + "member":{"shape":"IntegrationSummary"}, + "documentation":"

          A list of Amazon Connect Instance Integrations.

          " + }, + "InternalServerException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "xAmzErrorType":{ + "shape":"XAmazonErrorType", + "location":"header", + "locationName":"x-amzn-ErrorType" + } + }, + "documentation":"

          Request processing failed because of an error or failure with the service.

          ", + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true, + "retryable":{"throttling":false} + }, + "InvalidCampaignStateException":{ + "type":"structure", + "required":[ + "state", + "message" + ], + "members":{ + "state":{"shape":"CampaignState"}, + "message":{"shape":"String"}, + "xAmzErrorType":{ + "shape":"XAmazonErrorType", + "location":"header", + "locationName":"x-amzn-ErrorType" + } + }, + "documentation":"

          The request could not be processed because of conflict in the current state of the campaign.

          ", + "error":{ + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + "InvalidStateException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "xAmzErrorType":{ + "shape":"XAmazonErrorType", + "location":"header", + "locationName":"x-amzn-ErrorType" + } + }, + "documentation":"

          The request could not be processed because of conflict in the current state.

          ", + "error":{ + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + "Iso8601Date":{ + "type":"string", + "documentation":"

          Date in ISO 8601 format, e.g. 2024-01-01

          ", + "pattern":"\\d{4}-\\d{2}-\\d{2}" + }, + "Iso8601Duration":{ + "type":"string", + "documentation":"

          Time duration in ISO 8601 format

          ", + "max":50, + "min":0, + "pattern":"P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)?" + }, + "Iso8601Time":{ + "type":"string", + "documentation":"

          Time in ISO 8601 format, e.g. T23:11

          ", + "pattern":"T\\d{2}:\\d{2}" + }, + "ListCampaignsRequest":{ + "type":"structure", + "members":{ + "maxResults":{"shape":"MaxResults"}, + "nextToken":{"shape":"NextToken"}, + "filters":{"shape":"CampaignFilters"} + }, + "documentation":"

          The request for ListCampaigns API.

          " + }, + "ListCampaignsResponse":{ + "type":"structure", + "members":{ + "nextToken":{"shape":"NextToken"}, + "campaignSummaryList":{"shape":"CampaignSummaryList"} + }, + "documentation":"

          The response for ListCampaigns API.

          " + }, + "ListConnectInstanceIntegrationsRequest":{ + "type":"structure", + "required":["connectInstanceId"], + "members":{ + "connectInstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"connectInstanceId" + }, + "maxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + } + }, + "documentation":"

          The request for ListConnectInstanceIntegrations API.

          " + }, + "ListConnectInstanceIntegrationsResponse":{ + "type":"structure", + "members":{ + "nextToken":{"shape":"NextToken"}, + "integrationSummaryList":{"shape":"IntegrationSummaryList"} + }, + "documentation":"

          The response for ListConnectInstanceIntegrations API.

          " + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["arn"], + "members":{ + "arn":{ + "shape":"Arn", + "location":"uri", + "locationName":"arn" + } + }, + "documentation":"

          The request for ListTagsForResource API.

          " + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "tags":{"shape":"TagMap"} + }, + "documentation":"

          The request for ListTagsForResource API.

          " + }, + "LocalTimeZoneConfig":{ + "type":"structure", + "members":{ + "defaultTimeZone":{"shape":"TimeZone"}, + "localTimeZoneDetection":{"shape":"LocalTimeZoneDetection"} + }, + "documentation":"

          Local time zone config

          " + }, + "LocalTimeZoneDetection":{ + "type":"list", + "member":{"shape":"LocalTimeZoneDetectionType"}, + "documentation":"

          Local TimeZone Detection method list

          " + }, + "LocalTimeZoneDetectionType":{ + "type":"string", + "documentation":"

          Local TimeZone Detection method.

          ", + "enum":[ + "ZIP_CODE", + "AREA_CODE" + ] + }, + "MaxResults":{ + "type":"integer", + "documentation":"

          The maximum number of results to return per page.

          ", + "box":true, + "max":50, + "min":1 + }, + "NextToken":{ + "type":"string", + "documentation":"

          The token for the next set of results.

          ", + "max":1000, + "min":0 + }, + "ObjectTypeName":{ + "type":"string", + "documentation":"

          Object type name

          ", + "max":255, + "min":1 + }, + "ObjectTypeNamesMap":{ + "type":"map", + "key":{"shape":"EventType"}, + "value":{"shape":"ObjectTypeName"}, + "documentation":"

          Object type names map.

          " + }, + "OpenHours":{ + "type":"structure", + "members":{ + "dailyHours":{"shape":"DailyHours"} + }, + "documentation":"

          Open Hours config

          ", + "union":true + }, + "OutboundRequest":{ + "type":"structure", + "required":[ + "clientToken", + "expirationTime", + "channelSubtypeParameters" + ], + "members":{ + "clientToken":{"shape":"ClientToken"}, + "expirationTime":{"shape":"TimeStamp"}, + "channelSubtypeParameters":{"shape":"ChannelSubtypeParameters"} + }, + "documentation":"

          An outbound request for a campaign.

          " + }, + "OutboundRequestList":{ + "type":"list", + "member":{"shape":"OutboundRequest"}, + "documentation":"

          A list of outbound requests.

          ", + "max":25, + "min":1 + }, + "PauseCampaignRequest":{ + "type":"structure", + "required":["id"], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + } + }, + "documentation":"

          The request for PauseCampaign API.

          " + }, + "PredictiveConfig":{ + "type":"structure", + "required":["bandwidthAllocation"], + "members":{ + "bandwidthAllocation":{"shape":"BandwidthAllocation"} + }, + "documentation":"

          Predictive config

          " + }, + "ProgressiveConfig":{ + "type":"structure", + "required":["bandwidthAllocation"], + "members":{ + "bandwidthAllocation":{"shape":"BandwidthAllocation"} + }, + "documentation":"

          Progressive config

          " + }, + "PutConnectInstanceIntegrationRequest":{ + "type":"structure", + "required":[ + "connectInstanceId", + "integrationConfig" + ], + "members":{ + "connectInstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"connectInstanceId" + }, + "integrationConfig":{"shape":"IntegrationConfig"} + }, + "documentation":"

          The request for PutConnectInstanceIntegration API.

          " + }, + "PutOutboundRequestBatchRequest":{ + "type":"structure", + "required":[ + "id", + "outboundRequests" + ], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + }, + "outboundRequests":{"shape":"OutboundRequestList"} + }, + "documentation":"

          The request for PutOutboundRequestBatch API.

          " + }, + "PutOutboundRequestBatchResponse":{ + "type":"structure", + "members":{ + "successfulRequests":{"shape":"SuccessfulRequestList"}, + "failedRequests":{"shape":"FailedRequestList"} + }, + "documentation":"

          The response for PutOutboundRequestBatch API.

          " + }, + "QConnectIntegrationConfig":{ + "type":"structure", + "required":["knowledgeBaseArn"], + "members":{ + "knowledgeBaseArn":{"shape":"Arn"} + }, + "documentation":"

          Q Connect integration config

          " + }, + "QConnectIntegrationIdentifier":{ + "type":"structure", + "required":["knowledgeBaseArn"], + "members":{ + "knowledgeBaseArn":{"shape":"Arn"} + }, + "documentation":"

          Q Connect integration identifier

          " + }, + "QConnectIntegrationSummary":{ + "type":"structure", + "required":["knowledgeBaseArn"], + "members":{ + "knowledgeBaseArn":{"shape":"Arn"} + }, + "documentation":"

          Q Connect integration summary

          " + }, + "QueueId":{ + "type":"string", + "documentation":"

          The queue for the call. If you specify a queue, the phone displayed for caller ID is the phone number specified in the queue. If you do not specify a queue, the queue defined in the contact flow is used. If you do not specify a queue, you must specify a source phone number.

          ", + "max":500, + "min":0 + }, + "ResourceNotFoundException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "xAmzErrorType":{ + "shape":"XAmazonErrorType", + "location":"header", + "locationName":"x-amzn-ErrorType" + } + }, + "documentation":"

          The specified resource was not found.

          ", + "error":{ + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "RestrictedPeriod":{ + "type":"structure", + "required":[ + "startDate", + "endDate" + ], + "members":{ + "name":{"shape":"RestrictedPeriodName"}, + "startDate":{"shape":"Iso8601Date"}, + "endDate":{"shape":"Iso8601Date"} + }, + "documentation":"

          Restricted period

          " + }, + "RestrictedPeriodList":{ + "type":"list", + "member":{"shape":"RestrictedPeriod"}, + "documentation":"

          List of restricted period

          " + }, + "RestrictedPeriodName":{ + "type":"string", + "documentation":"

          The name of a restricted period.

          ", + "max":127, + "min":1 + }, + "RestrictedPeriods":{ + "type":"structure", + "members":{ + "restrictedPeriodList":{"shape":"RestrictedPeriodList"} + }, + "documentation":"

          Restricted period config

          ", + "union":true + }, + "ResumeCampaignRequest":{ + "type":"structure", + "required":["id"], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + } + }, + "documentation":"

          The request for ResumeCampaign API.

          " + }, + "Schedule":{ + "type":"structure", + "required":[ + "startTime", + "endTime" + ], + "members":{ + "startTime":{"shape":"TimeStamp"}, + "endTime":{"shape":"TimeStamp"}, + "refreshFrequency":{"shape":"Iso8601Duration"} + }, + "documentation":"

          Campaign schedule

          " + }, + "ServiceLinkedRoleArn":{ + "type":"string", + "documentation":"

          Service linked role arn

          ", + "max":256, + "min":0 + }, + "ServiceQuotaExceededException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "xAmzErrorType":{ + "shape":"XAmazonErrorType", + "location":"header", + "locationName":"x-amzn-ErrorType" + } + }, + "documentation":"

          Request would cause a service quota to be exceeded.

          ", + "error":{ + "httpStatusCode":402, + "senderFault":true + }, + "exception":true + }, + "SmsChannelSubtypeConfig":{ + "type":"structure", + "required":[ + "outboundMode", + "defaultOutboundConfig" + ], + "members":{ + "capacity":{"shape":"Capacity"}, + "outboundMode":{"shape":"SmsOutboundMode"}, + "defaultOutboundConfig":{"shape":"SmsOutboundConfig"} + }, + "documentation":"

          SMS Channel Subtype config

          " + }, + "SmsChannelSubtypeParameters":{ + "type":"structure", + "required":[ + "destinationPhoneNumber", + "templateParameters" + ], + "members":{ + "destinationPhoneNumber":{"shape":"DestinationPhoneNumber"}, + "connectSourcePhoneNumberArn":{"shape":"Arn"}, + "templateArn":{"shape":"Arn"}, + "templateParameters":{"shape":"Attributes"} + }, + "documentation":"

          Parameters for the SMS Channel Subtype

          " + }, + "SmsOutboundConfig":{ + "type":"structure", + "required":[ + "connectSourcePhoneNumberArn", + "wisdomTemplateArn" + ], + "members":{ + "connectSourcePhoneNumberArn":{"shape":"Arn"}, + "wisdomTemplateArn":{"shape":"Arn"} + }, + "documentation":"

          Default SMS Outbound config

          " + }, + "SmsOutboundMode":{ + "type":"structure", + "members":{ + "agentless":{"shape":"AgentlessConfig"} + }, + "documentation":"

          SMS Outbound Mode

          ", + "union":true + }, + "Source":{ + "type":"structure", + "members":{ + "customerProfilesSegmentArn":{"shape":"Arn"} + }, + "documentation":"

          Source of the campaign

          ", + "union":true + }, + "SourcePhoneNumber":{ + "type":"string", + "documentation":"

          The phone number associated with the Amazon Connect instance, in E.164 format. If you do not specify a source phone number, you must specify a queue.

          ", + "max":100, + "min":0 + }, + "StartCampaignRequest":{ + "type":"structure", + "required":["id"], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + } + }, + "documentation":"

          The request for StartCampaign API.

          " + }, + "StartInstanceOnboardingJobRequest":{ + "type":"structure", + "required":[ + "connectInstanceId", + "encryptionConfig" + ], + "members":{ + "connectInstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"connectInstanceId" + }, + "encryptionConfig":{"shape":"EncryptionConfig"} + }, + "documentation":"

          The request for StartInstanceOnboardingJob API.

          " + }, + "StartInstanceOnboardingJobResponse":{ + "type":"structure", + "members":{ + "connectInstanceOnboardingJobStatus":{"shape":"InstanceOnboardingJobStatus"} + }, + "documentation":"

          The response for StartInstanceOnboardingJob API.

          " + }, + "StopCampaignRequest":{ + "type":"structure", + "required":["id"], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + } + }, + "documentation":"

          The request for StopCampaign API.

          " + }, + "String":{"type":"string"}, + "SuccessfulCampaignStateResponse":{ + "type":"structure", + "members":{ + "campaignId":{"shape":"CampaignId"}, + "state":{"shape":"CampaignState"} + }, + "documentation":"

          Successful response of campaign state

          " + }, + "SuccessfulCampaignStateResponseList":{ + "type":"list", + "member":{"shape":"SuccessfulCampaignStateResponse"}, + "documentation":"

          List of successful response of campaign state

          ", + "max":25, + "min":0 + }, + "SuccessfulRequest":{ + "type":"structure", + "members":{ + "clientToken":{"shape":"ClientToken"}, + "id":{"shape":"DialRequestId"} + }, + "documentation":"

          A successful request identified by the unique client token.

          " + }, + "SuccessfulRequestList":{ + "type":"list", + "member":{"shape":"SuccessfulRequest"}, + "documentation":"

          A list of successful requests identified by the unique client token.

          ", + "max":25, + "min":0 + }, + "TagKey":{ + "type":"string", + "documentation":"

          The key of tag.

          ", + "max":128, + "min":1, + "pattern":"(?!aws:)[a-zA-Z+-=._:/]+" + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "documentation":"

          List of tag keys.

          ", + "max":50, + "min":0 + }, + "TagMap":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"}, + "documentation":"

          Tag map with key and value.

          " + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "arn", + "tags" + ], + "members":{ + "arn":{ + "shape":"Arn", + "location":"uri", + "locationName":"arn" + }, + "tags":{"shape":"TagMap"} + }, + "documentation":"

          The request for TagResource API.

          " + }, + "TagValue":{ + "type":"string", + "documentation":"

          The value of tag.

          ", + "max":256, + "min":0 + }, + "TelephonyChannelSubtypeConfig":{ + "type":"structure", + "required":[ + "outboundMode", + "defaultOutboundConfig" + ], + "members":{ + "capacity":{"shape":"Capacity"}, + "connectQueueId":{"shape":"QueueId"}, + "outboundMode":{"shape":"TelephonyOutboundMode"}, + "defaultOutboundConfig":{"shape":"TelephonyOutboundConfig"} + }, + "documentation":"

          Telephony Channel Subtype config

          " + }, + "TelephonyChannelSubtypeParameters":{ + "type":"structure", + "required":[ + "destinationPhoneNumber", + "attributes" + ], + "members":{ + "destinationPhoneNumber":{"shape":"DestinationPhoneNumber"}, + "attributes":{"shape":"Attributes"}, + "connectSourcePhoneNumber":{"shape":"SourcePhoneNumber"}, + "answerMachineDetectionConfig":{"shape":"AnswerMachineDetectionConfig"} + }, + "documentation":"

          Parameters for the Telephony Channel Subtype

          " + }, + "TelephonyOutboundConfig":{ + "type":"structure", + "required":["connectContactFlowId"], + "members":{ + "connectContactFlowId":{"shape":"ContactFlowId"}, + "connectSourcePhoneNumber":{"shape":"SourcePhoneNumber"}, + "answerMachineDetectionConfig":{"shape":"AnswerMachineDetectionConfig"} + }, + "documentation":"

          Default Telephony Outbound config

          " + }, + "TelephonyOutboundMode":{ + "type":"structure", + "members":{ + "progressive":{"shape":"ProgressiveConfig"}, + "predictive":{"shape":"PredictiveConfig"}, + "agentless":{"shape":"AgentlessConfig"} + }, + "documentation":"

          Telephony Outbound Mode

          ", + "union":true + }, + "ThrottlingException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "xAmzErrorType":{ + "shape":"XAmazonErrorType", + "location":"header", + "locationName":"x-amzn-ErrorType" + } + }, + "documentation":"

          The request was denied due to request throttling.

          ", + "error":{ + "httpStatusCode":429, + "senderFault":true + }, + "exception":true, + "retryable":{"throttling":false} + }, + "TimeRange":{ + "type":"structure", + "required":[ + "startTime", + "endTime" + ], + "members":{ + "startTime":{"shape":"Iso8601Time"}, + "endTime":{"shape":"Iso8601Time"} + }, + "documentation":"

          Time range in 24 hour format

          " + }, + "TimeRangeList":{ + "type":"list", + "member":{"shape":"TimeRange"}, + "documentation":"

          List of time range

          " + }, + "TimeStamp":{ + "type":"timestamp", + "documentation":"

          Timestamp with no UTC offset or timezone

          ", + "timestampFormat":"iso8601" + }, + "TimeWindow":{ + "type":"structure", + "required":["openHours"], + "members":{ + "openHours":{"shape":"OpenHours"}, + "restrictedPeriods":{"shape":"RestrictedPeriods"} + }, + "documentation":"

          Time window config

          " + }, + "TimeZone":{ + "type":"string", + "documentation":"

          Time Zone Id in the IANA format

          ", + "max":50, + "min":0, + "pattern":"[a-zA-Z0-9_\\-/]*" + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "arn", + "tagKeys" + ], + "members":{ + "arn":{ + "shape":"Arn", + "location":"uri", + "locationName":"arn" + }, + "tagKeys":{ + "shape":"TagKeyList", + "location":"querystring", + "locationName":"tagKeys" + } + }, + "documentation":"

          The request for UntagResource API.

          " + }, + "UpdateCampaignChannelSubtypeConfigRequest":{ + "type":"structure", + "required":[ + "id", + "channelSubtypeConfig" + ], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + }, + "channelSubtypeConfig":{"shape":"ChannelSubtypeConfig"} + }, + "documentation":"

          The request for UpdateCampaignChannelSubtypeConfig API.

          " + }, + "UpdateCampaignCommunicationLimitsRequest":{ + "type":"structure", + "required":[ + "id", + "communicationLimitsOverride" + ], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + }, + "communicationLimitsOverride":{"shape":"CommunicationLimitsConfig"} + }, + "documentation":"

          The request for UpdateCampaignCommunicationLimits API.

          " + }, + "UpdateCampaignCommunicationTimeRequest":{ + "type":"structure", + "required":[ + "id", + "communicationTimeConfig" + ], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + }, + "communicationTimeConfig":{"shape":"CommunicationTimeConfig"} + }, + "documentation":"

          The request for UpdateCampaignCommunicationTime API.

          " + }, + "UpdateCampaignFlowAssociationRequest":{ + "type":"structure", + "required":[ + "id", + "connectCampaignFlowArn" + ], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + }, + "connectCampaignFlowArn":{"shape":"Arn"} + }, + "documentation":"

          The request for UpdateCampaignFlowAssociation API.

          " + }, + "UpdateCampaignNameRequest":{ + "type":"structure", + "required":[ + "id", + "name" + ], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + }, + "name":{"shape":"CampaignName"} + }, + "documentation":"

          The request for UpdateCampaignName API.

          " + }, + "UpdateCampaignScheduleRequest":{ + "type":"structure", + "required":[ + "id", + "schedule" + ], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + }, + "schedule":{"shape":"Schedule"} + }, + "documentation":"

          The request for UpdateCampaignSchedule API.

          " + }, + "UpdateCampaignSourceRequest":{ + "type":"structure", + "required":[ + "id", + "source" + ], + "members":{ + "id":{ + "shape":"CampaignId", + "location":"uri", + "locationName":"id" + }, + "source":{"shape":"Source"} + }, + "documentation":"

          The request for UpdateCampaignSource API.

          " + }, + "ValidationException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "xAmzErrorType":{ + "shape":"XAmazonErrorType", + "location":"header", + "locationName":"x-amzn-ErrorType" + } + }, + "documentation":"

          The input fails to satisfy the constraints specified by an AWS service.

          ", + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "XAmazonErrorType":{ + "type":"string", + "documentation":"

          A header that defines the error encountered while processing the request.

          " + } + }, + "documentation":"

          Provide APIs to create and manage Amazon Connect Campaigns.

          " +} diff --git a/tools/code-generation/api-descriptions/datasync-2018-11-09.normal.json b/tools/code-generation/api-descriptions/datasync-2018-11-09.normal.json index 2c3e37a55d6..8549334faa5 100644 --- a/tools/code-generation/api-descriptions/datasync-2018-11-09.normal.json +++ b/tools/code-generation/api-descriptions/datasync-2018-11-09.normal.json @@ -523,7 +523,7 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalException"} ], - "documentation":"

          Provides information about an execution of your DataSync task. You can use this operation to help monitor the progress of an ongoing data transfer or check the results of the transfer.

          Some DescribeTaskExecution response elements are only relevant to a specific task mode. For information, see Understanding task mode differences and Understanding data transfer performance metrics.

          " + "documentation":"

          Provides information about an execution of your DataSync task. You can use this operation to help monitor the progress of an ongoing data transfer or check the results of the transfer.

          Some DescribeTaskExecution response elements are only relevant to a specific task mode. For information, see Understanding task mode differences and Understanding data transfer performance counters.

          " }, "GenerateRecommendations":{ "name":"GenerateRecommendations", @@ -1698,7 +1698,7 @@ }, "TaskMode":{ "shape":"TaskMode", - "documentation":"

          Specifies one of the following task modes for your data transfer:

          • ENHANCED - Transfer virtually unlimited numbers of objects with enhanced metrics, more detailed logs, and higher performance than Basic mode. Currently available for transfers between Amazon S3 locations.

            To create an Enhanced mode task, the IAM role that you use to call the CreateTask operation must have the iam:CreateServiceLinkedRole permission.

          • BASIC (default) - Transfer files or objects between Amazon Web Services storage and on-premises, edge, or other cloud storage. DataSync quotas apply.

          For more information, see Understanding task mode differences.

          " + "documentation":"

          Specifies one of the following task modes for your data transfer:

          • ENHANCED - Transfer virtually unlimited numbers of objects with higher performance than Basic mode. Enhanced mode tasks optimize the data transfer process by listing, preparing, transferring, and verifying data in parallel. Enhanced mode is currently available for transfers between Amazon S3 locations.

            To create an Enhanced mode task, the IAM role that you use to call the CreateTask operation must have the iam:CreateServiceLinkedRole permission.

          • BASIC (default) - Transfer files or objects between Amazon Web Services storage and all other supported DataSync locations. Basic mode tasks are subject to quotas on the number of files, objects, and directories in a dataset. Basic mode sequentially prepares, transfers, and verifies data, making it slower than Enhanced mode for most workloads.

          For more information, see Understanding task mode differences.

          " } }, "documentation":"

          CreateTaskRequest

          " @@ -2519,7 +2519,7 @@ }, "EstimatedFilesToTransfer":{ "shape":"long", - "documentation":"

          The number of files, objects, and directories that DataSync expects to transfer over the network. This value is calculated during the task execution's PREPARING step before the TRANSFERRING step.

          How this gets calculated depends primarily on your task’s transfer mode configuration:

          • If TranserMode is set to CHANGED - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:

            • Anything that's added or modified at the source location.

            • Anything that's in both locations and modified at the destination after an initial transfer (unless OverwriteMode is set to NEVER).

            • (Basic task mode only) The number of items that DataSync expects to delete (if PreserveDeletedFiles is set to REMOVE).

          • If TranserMode is set to ALL - The calculation is based only on the items that DataSync finds at the source location.

          " + "documentation":"

          The number of files, objects, and directories that DataSync expects to transfer over the network. This value is calculated while DataSync prepares the transfer.

          How this gets calculated depends primarily on your task’s transfer mode configuration:

          • If TranserMode is set to CHANGED - The calculation is based on comparing the content of the source and destination locations and determining the difference that needs to be transferred. The difference can include:

            • Anything that's added or modified at the source location.

            • Anything that's in both locations and modified at the destination after an initial transfer (unless OverwriteMode is set to NEVER).

            • (Basic task mode only) The number of items that DataSync expects to delete (if PreserveDeletedFiles is set to REMOVE).

          • If TranserMode is set to ALL - The calculation is based only on the items that DataSync finds at the source location.

          " }, "EstimatedBytesToTransfer":{ "shape":"long", @@ -2527,7 +2527,7 @@ }, "FilesTransferred":{ "shape":"long", - "documentation":"

          The number of files, objects, and directories that DataSync actually transfers over the network. This value is updated periodically during the task execution's TRANSFERRING step when something is read from the source and sent over the network.

          If DataSync fails to transfer something, this value can be less than EstimatedFilesToTransfer. In some cases, this value can also be greater than EstimatedFilesToTransfer. This element is implementation-specific for some location types, so don't use it as an exact indication of what's transferring or to monitor your task execution.

          " + "documentation":"

          The number of files, objects, and directories that DataSync actually transfers over the network. This value is updated periodically during your task execution when something is read from the source and sent over the network.

          If DataSync fails to transfer something, this value can be less than EstimatedFilesToTransfer. In some cases, this value can also be greater than EstimatedFilesToTransfer. This element is implementation-specific for some location types, so don't use it as an exact indication of what's transferring or to monitor your task execution.

          " }, "BytesWritten":{ "shape":"long", @@ -2539,7 +2539,7 @@ }, "BytesCompressed":{ "shape":"long", - "documentation":"

          The number of physical bytes that DataSync transfers over the network after compression (if compression is possible). This number is typically less than BytesTransferred unless the data isn't compressible.

          Not currently supported with Enhanced mode tasks.

          " + "documentation":"

          The number of physical bytes that DataSync transfers over the network after compression (if compression is possible). This number is typically less than BytesTransferred unless the data isn't compressible.

          " }, "Result":{ "shape":"TaskExecutionResultDetail", @@ -2551,7 +2551,7 @@ }, "FilesDeleted":{ "shape":"long", - "documentation":"

          The number of files, objects, and directories that DataSync actually deletes in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always 0.

          " + "documentation":"

          The number of files, objects, and directories that DataSync actually deletes in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always 0.

          " }, "FilesSkipped":{ "shape":"long", @@ -2567,7 +2567,7 @@ }, "EstimatedFilesToDelete":{ "shape":"long", - "documentation":"

          The number of files, objects, and directories that DataSync expects to delete in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always 0.

          " + "documentation":"

          The number of files, objects, and directories that DataSync expects to delete in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always 0.

          " }, "TaskMode":{ "shape":"TaskMode", @@ -2575,7 +2575,7 @@ }, "FilesPrepared":{ "shape":"long", - "documentation":"

          The number of objects that DataSync will attempt to transfer after comparing your source and destination locations.

          Applies only to Enhanced mode tasks.

          This metric isn't applicable if you configure your task to transfer all data. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.

          " + "documentation":"

          The number of objects that DataSync will attempt to transfer after comparing your source and destination locations.

          Applies only to Enhanced mode tasks.

          This counter isn't applicable if you configure your task to transfer all data. In that scenario, DataSync copies everything from the source to the destination without comparing differences between the locations.

          " }, "FilesListed":{ "shape":"TaskExecutionFilesListedDetail", @@ -4699,7 +4699,7 @@ }, "AtDestinationForDelete":{ "shape":"long", - "documentation":"

          The number of objects that DataSync finds at your destination location. This metric is only applicable if you configure your task to delete data in the destination that isn't in the source.

          " + "documentation":"

          The number of objects that DataSync finds at your destination location. This counter is only applicable if you configure your task to delete data in the destination that isn't in the source.

          " } }, "documentation":"

          The number of objects that DataSync finds at your locations.

          Applies only to Enhanced mode tasks.

          " diff --git a/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json b/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json index dbfb8e7cea6..0918ac6fb0e 100644 --- a/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json +++ b/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json @@ -30376,11 +30376,7 @@ }, "FleetCapacityReservationUsageStrategy":{ "type":"string", - "enum":[ - "use-capacity-reservations-first", - "use-capacity-reservations-only", - "none" - ] + "enum":["use-capacity-reservations-first"] }, "FleetData":{ "type":"structure", diff --git a/tools/code-generation/api-descriptions/iot-2015-05-28.normal.json b/tools/code-generation/api-descriptions/iot-2015-05-28.normal.json index a764a21728f..86bdbe1e023 100644 --- a/tools/code-generation/api-descriptions/iot-2015-05-28.normal.json +++ b/tools/code-generation/api-descriptions/iot-2015-05-28.normal.json @@ -3082,6 +3082,24 @@ ], "documentation":"

          Lists the things associated with the specified principal. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.

          Requires permission to access the ListPrincipalThings action.

          " }, + "ListPrincipalThingsV2":{ + "name":"ListPrincipalThingsV2", + "http":{ + "method":"GET", + "requestUri":"/principals/things-v2" + }, + "input":{"shape":"ListPrincipalThingsV2Request"}, + "output":{"shape":"ListPrincipalThingsV2Response"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"UnauthorizedException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

          Lists the things associated with the specified principal. A principal can be an X.509 certificate or an Amazon Cognito ID.

          Requires permission to access the ListPrincipalThings action.

          " + }, "ListProvisioningTemplateVersions":{ "name":"ListProvisioningTemplateVersions", "http":{ @@ -3330,6 +3348,24 @@ ], "documentation":"

          Lists the principals associated with the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.

          Requires permission to access the ListThingPrincipals action.

          " }, + "ListThingPrincipalsV2":{ + "name":"ListThingPrincipalsV2", + "http":{ + "method":"GET", + "requestUri":"/things/{thingName}/principals-v2" + }, + "input":{"shape":"ListThingPrincipalsV2Request"}, + "output":{"shape":"ListThingPrincipalsV2Response"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"UnauthorizedException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

          Lists the principals associated with the specified thing. A principal can be an X.509 certificate or an Amazon Cognito ID.

          Requires permission to access the ListThingPrincipals action.

          " + }, "ListThingRegistrationTaskReports":{ "name":"ListThingRegistrationTaskReports", "http":{ @@ -4396,6 +4432,24 @@ ], "documentation":"

          Updates the groups to which the thing belongs.

          Requires permission to access the UpdateThingGroupsForThing action.

          " }, + "UpdateThingType":{ + "name":"UpdateThingType", + "http":{ + "method":"PATCH", + "requestUri":"/thing-types/{thingTypeName}" + }, + "input":{"shape":"UpdateThingTypeRequest"}, + "output":{"shape":"UpdateThingTypeResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"UnauthorizedException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalFailureException"} + ], + "documentation":"

          Updates a thing type.

          " + }, "UpdateTopicRuleDestination":{ "name":"UpdateTopicRuleDestination", "http":{ @@ -5105,6 +5159,12 @@ "documentation":"

          The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.

          ", "location":"header", "locationName":"x-amzn-principal" + }, + "thingPrincipalType":{ + "shape":"ThingPrincipalType", + "documentation":"

          The type of the relation you want to specify when you attach a principal to a thing.

          • EXCLUSIVE_THING - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal.

          • NON_EXCLUSIVE_THING - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.

          ", + "location":"querystring", + "locationName":"thingPrincipalType" } }, "documentation":"

          The input for the AttachThingPrincipal operation.

          " @@ -5138,7 +5198,7 @@ "AttributeValue":{ "type":"string", "max":800, - "pattern":"[a-zA-Z0-9_.,@/:#-]*" + "pattern":"[a-zA-Z0-9_.,@/:#=\\[\\]-]*" }, "Attributes":{ "type":"map", @@ -6793,6 +6853,11 @@ "error":{"httpStatusCode":409}, "exception":true }, + "ConnectionAttributeName":{ + "type":"string", + "max":128, + "pattern":"[a-zA-Z0-9:.]+" + }, "ConnectivityTimestamp":{"type":"long"}, "ConsecutiveDatapointsToAlarm":{ "type":"integer", @@ -10489,7 +10554,7 @@ }, "thingTypeProperties":{ "shape":"ThingTypeProperties", - "documentation":"

          The ThingTypeProperties contains information about the thing type including description, and a list of searchable thing attribute names.

          " + "documentation":"

          The ThingTypeProperties contains information about the thing type including description, a list of searchable thing attribute names, and MQTT5 configuration.

          " }, "thingTypeMetadata":{ "shape":"ThingTypeMetadata", @@ -14596,6 +14661,49 @@ }, "documentation":"

          The output from the ListPrincipalThings operation.

          " }, + "ListPrincipalThingsV2Request":{ + "type":"structure", + "required":["principal"], + "members":{ + "nextToken":{ + "shape":"NextToken", + "documentation":"

          To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

          ", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"RegistryMaxResults", + "documentation":"

          The maximum number of results to return in this operation.

          ", + "location":"querystring", + "locationName":"maxResults" + }, + "principal":{ + "shape":"Principal", + "documentation":"

          The principal. A principal can be an X.509 certificate or an Amazon Cognito ID.

          ", + "location":"header", + "locationName":"x-amzn-principal" + }, + "thingPrincipalType":{ + "shape":"ThingPrincipalType", + "documentation":"

          The type of the relation you want to filter in the response. If no value is provided in this field, the response will list all things, including both the EXCLUSIVE_THING and NON_EXCLUSIVE_THING attachment types.

          • EXCLUSIVE_THING - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal.

          • NON_EXCLUSIVE_THING - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.

          ", + "location":"querystring", + "locationName":"thingPrincipalType" + } + } + }, + "ListPrincipalThingsV2Response":{ + "type":"structure", + "members":{ + "principalThingObjects":{ + "shape":"PrincipalThingObjects", + "documentation":"

          A list of thingPrincipalObject that represents the principal and the type of relation it has with the thing.

          " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

          The token to use to get the next set of results, or null if there are no additional results.

          " + } + } + }, "ListProvisioningTemplateVersionsRequest":{ "type":"structure", "required":["templateName"], @@ -15170,6 +15278,49 @@ }, "documentation":"

          The output from the ListThingPrincipals operation.

          " }, + "ListThingPrincipalsV2Request":{ + "type":"structure", + "required":["thingName"], + "members":{ + "nextToken":{ + "shape":"NextToken", + "documentation":"

          To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

          ", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"RegistryMaxResults", + "documentation":"

          The maximum number of results to return in this operation.

          ", + "location":"querystring", + "locationName":"maxResults" + }, + "thingName":{ + "shape":"ThingName", + "documentation":"

          The name of the thing.

          ", + "location":"uri", + "locationName":"thingName" + }, + "thingPrincipalType":{ + "shape":"ThingPrincipalType", + "documentation":"

          The type of the relation you want to filter in the response. If no value is provided in this field, the response will list all principals, including both the EXCLUSIVE_THING and NON_EXCLUSIVE_THING attachment types.

          • EXCLUSIVE_THING - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal.

          • NON_EXCLUSIVE_THING - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.

          ", + "location":"querystring", + "locationName":"thingPrincipalType" + } + } + }, + "ListThingPrincipalsV2Response":{ + "type":"structure", + "members":{ + "thingPrincipalObjects":{ + "shape":"ThingPrincipalObjects", + "documentation":"

          A list of thingPrincipalObject that represents the principal and the type of relation it has with the thing.

          " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

          The token to use to get the next set of results, or null if there are no additional results.

          " + } + } + }, "ListThingRegistrationTaskReportsRequest":{ "type":"structure", "required":[ @@ -16104,6 +16255,16 @@ "EXPIRED" ] }, + "Mqtt5Configuration":{ + "type":"structure", + "members":{ + "propagatingAttributes":{ + "shape":"PropagatingAttributeList", + "documentation":"

          An object that represents the propagating thing attributes and the connection attributes.

          " + } + }, + "documentation":"

          The configuration to add user-defined properties to enrich MQTT 5 messages.

          " + }, "MqttClientId":{ "type":"string", "max":65535, @@ -16237,6 +16398,10 @@ "type":"integer", "min":1 }, + "OCSPLambdaArn":{ + "type":"string", + "max":140 + }, "OTAUpdateArn":{"type":"string"}, "OTAUpdateDescription":{ "type":"string", @@ -16763,6 +16928,25 @@ "min":1, "pattern":"[a-zA-Z0-9]+" }, + "PrincipalThingObject":{ + "type":"structure", + "required":["thingName"], + "members":{ + "thingName":{ + "shape":"ThingName", + "documentation":"

          The name of the thing.

          " + }, + "thingPrincipalType":{ + "shape":"ThingPrincipalType", + "documentation":"

          The type of the relation you want to specify when you attach a principal to a thing. The value defaults to NON_EXCLUSIVE_THING.

          • EXCLUSIVE_THING - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal.

          • NON_EXCLUSIVE_THING - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.

          " + } + }, + "documentation":"

          An object that represents the thing and the type of relation it has with the principal.

          " + }, + "PrincipalThingObjects":{ + "type":"list", + "member":{"shape":"PrincipalThingObject"} + }, "Principals":{ "type":"list", "member":{"shape":"PrincipalArn"} @@ -16777,6 +16961,28 @@ "type":"list", "member":{"shape":"ProcessingTargetName"} }, + "PropagatingAttribute":{ + "type":"structure", + "members":{ + "userPropertyKey":{ + "shape":"UserPropertyKeyName", + "documentation":"

          The key of the user property key-value pair.

          " + }, + "thingAttribute":{ + "shape":"AttributeName", + "documentation":"

          The user-defined thing attribute that is propagating for MQTT 5 message enrichment.

          " + }, + "connectionAttribute":{ + "shape":"ConnectionAttributeName", + "documentation":"

          The attribute associated with the connection between a device and Amazon Web Services IoT Core.

          " + } + }, + "documentation":"

          An object that represents the connection attribute, thing attribute, and the user property key.

          " + }, + "PropagatingAttributeList":{ + "type":"list", + "member":{"shape":"PropagatingAttribute"} + }, "Protocol":{ "type":"string", "enum":[ @@ -17994,7 +18200,15 @@ "members":{ "enableOCSPCheck":{ "shape":"EnableOCSPCheck", - "documentation":"

          A Boolean value that indicates whether Online Certificate Status Protocol (OCSP) server certificate check is enabled or not.

          For more information, see Configuring OCSP server-certificate stapling in domain configuration from Amazon Web Services IoT Core Developer Guide.

          " + "documentation":"

          A Boolean value that indicates whether Online Certificate Status Protocol (OCSP) server certificate check is enabled or not.

          For more information, see Server certificate configuration for OCSP stapling from Amazon Web Services IoT Core Developer Guide.

          " + }, + "ocspLambdaArn":{ + "shape":"OCSPLambdaArn", + "documentation":"

          The Amazon Resource Name (ARN) for a Lambda function that acts as a Request for Comments (RFC) 6960-compliant Online Certificate Status Protocol (OCSP) responder, supporting basic OCSP responses. The Lambda function accepts a JSON string that's Base64-encoded. Therefore, you must convert your OCSP response, which is typically in the Distinguished Encoding Rules (DER) format, into a JSON string that's Base64-encoded. The Lambda function's response is also a Base64-encoded JSON string and the response payload must not exceed 8 kilobytes (KiB) in size. The Lambda function must be in the same Amazon Web Services region and account as the domain configuration.

          " + }, + "ocspAuthorizedResponderArn":{ + "shape":"AcmCertificateArn", + "documentation":"

          The Amazon Resource Name (ARN) for an X.509 certificate stored in Amazon Web Services Certificate Manager (ACM). If provided, Amazon Web Services IoT Core will use this certificate to validate the signature of the received OCSP response. The OCSP responder must sign responses using either this authorized responder certificate or the issuing certificate, depending on whether the ARN is provided or not. The certificate must be in the same Amazon Web Services region and account as the domain configuration.

          " } }, "documentation":"

          The server certificate configuration.

          " @@ -19279,6 +19493,32 @@ "type":"list", "member":{"shape":"ThingName"} }, + "ThingPrincipalObject":{ + "type":"structure", + "required":["principal"], + "members":{ + "principal":{ + "shape":"Principal", + "documentation":"

          The principal of the thing principal object.

          " + }, + "thingPrincipalType":{ + "shape":"ThingPrincipalType", + "documentation":"

          The type of the relation you want to specify when you attach a principal to a thing. The value defaults to NON_EXCLUSIVE_THING.

          • EXCLUSIVE_THING - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal.

          • NON_EXCLUSIVE_THING - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.

          " + } + }, + "documentation":"

          An object that represents the principal and the type of relation it has with the thing.

          " + }, + "ThingPrincipalObjects":{ + "type":"list", + "member":{"shape":"ThingPrincipalObject"} + }, + "ThingPrincipalType":{ + "type":"string", + "enum":[ + "EXCLUSIVE_THING", + "NON_EXCLUSIVE_THING" + ] + }, "ThingTypeArn":{"type":"string"}, "ThingTypeDefinition":{ "type":"structure", @@ -19346,6 +19586,10 @@ "searchableAttributes":{ "shape":"SearchableAttributes", "documentation":"

          A list of searchable thing attribute names.

          " + }, + "mqtt5Configuration":{ + "shape":"Mqtt5Configuration", + "documentation":"

          The configuration to add user-defined properties to enrich MQTT 5 messages.

          " } }, "documentation":"

          The ThingTypeProperties contains information about the thing type including: a thing type description, and a list of searchable thing attribute names.

          " @@ -20901,6 +21145,24 @@ }, "documentation":"

          The output from the UpdateThing operation.

          " }, + "UpdateThingTypeRequest":{ + "type":"structure", + "required":["thingTypeName"], + "members":{ + "thingTypeName":{ + "shape":"ThingTypeName", + "documentation":"

          The name of a thing type.

          ", + "location":"uri", + "locationName":"thingTypeName" + }, + "thingTypeProperties":{"shape":"ThingTypeProperties"} + } + }, + "UpdateThingTypeResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateTopicRuleDestinationRequest":{ "type":"structure", "required":[ @@ -20957,6 +21219,11 @@ "max":1024, "min":0 }, + "UserPropertyKeyName":{ + "type":"string", + "max":128, + "pattern":"[a-zA-Z0-9:$.]+" + }, "UserPropertyValue":{ "type":"string", "max":1024, diff --git a/tools/code-generation/api-descriptions/monitoring-2010-08-01.normal.json b/tools/code-generation/api-descriptions/monitoring-2010-08-01.normal.json index 443cea71709..71849904551 100644 --- a/tools/code-generation/api-descriptions/monitoring-2010-08-01.normal.json +++ b/tools/code-generation/api-descriptions/monitoring-2010-08-01.normal.json @@ -534,7 +534,7 @@ {"shape":"InvalidParameterCombinationException"}, {"shape":"InternalServiceFault"} ], - "documentation":"

          Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data points with the specified metric. If the specified metric does not exist, CloudWatch creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to ListMetrics.

          You can publish either individual data points in the Value field, or arrays of values and the number of times each value occurred during the period by using the Values and Counts fields in the MetricData structure. Using the Values and Counts method enables you to publish up to 150 values per metric with one PutMetricData request, and supports retrieving percentile statistics on this data.

          Each PutMetricData request is limited to 1 MB in size for HTTP POST requests. You can send a payload compressed by gzip. Each request is also limited to no more than 1000 different metrics.

          Although the Value parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.

          You can use up to 30 dimensions per metric to further clarify what data the metric collects. Each dimension consists of a Name and Value pair. For more information about specifying dimensions, see Publishing Metrics in the Amazon CloudWatch User Guide.

          You specify the time stamp to be associated with each data point. You can specify time stamps that are as much as two weeks before the current date, and as much as 2 hours after the current day and time.

          Data points with time stamps from 24 hours ago or longer can take at least 48 hours to become available for GetMetricData or GetMetricStatistics from the time they are submitted. Data points with time stamps between 3 and 24 hours ago can take as much as 2 hours to become available for for GetMetricData or GetMetricStatistics.

          CloudWatch needs raw data points to calculate percentile statistics. If you publish data using a statistic set instead, you can only retrieve percentile statistics for this data if one of the following conditions is true:

          • The SampleCount value of the statistic set is 1 and Min, Max, and Sum are all equal.

          • The Min and Max are equal, and Sum is equal to Min multiplied by SampleCount.

          ", + "documentation":"

          Publishes metric data to Amazon CloudWatch. CloudWatch associates the data with the specified metric. If the specified metric does not exist, CloudWatch creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to ListMetrics.

          You can publish metrics with associated entity data (so that related telemetry can be found and viewed together), or publish metric data by itself. To send entity data with your metrics, use the EntityMetricData parameter. To send metrics without entity data, use the MetricData parameter. The EntityMetricData structure includes MetricData structures for the metric data.

          You can publish either individual values in the Value field, or arrays of values and the number of times each value occurred during the period by using the Values and Counts fields in the MetricData structure. Using the Values and Counts method enables you to publish up to 150 values per metric with one PutMetricData request, and supports retrieving percentile statistics on this data.

          Each PutMetricData request is limited to 1 MB in size for HTTP POST requests. You can send a payload compressed by gzip. Each request is also limited to no more than 1000 different metrics (across both the MetricData and EntityMetricData properties).

          Although the Value parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.

          You can use up to 30 dimensions per metric to further clarify what data the metric collects. Each dimension consists of a Name and Value pair. For more information about specifying dimensions, see Publishing Metrics in the Amazon CloudWatch User Guide.

          You specify the time stamp to be associated with each data point. You can specify time stamps that are as much as two weeks before the current date, and as much as 2 hours after the current day and time.

          Data points with time stamps from 24 hours ago or longer can take at least 48 hours to become available for GetMetricData or GetMetricStatistics from the time they are submitted. Data points with time stamps between 3 and 24 hours ago can take as much as 2 hours to become available for GetMetricData or GetMetricStatistics.

          CloudWatch needs raw data points to calculate percentile statistics. If you publish data using a statistic set instead, you can only retrieve percentile statistics for this data if one of the following conditions is true:

          • The SampleCount value of the statistic set is 1 and Min, Max, and Sum are all equal.

          • The Min and Max are equal, and Sum is equal to Min multiplied by SampleCount.

          ", "requestcompression":{"encodings":["gzip"]} }, "PutMetricStream":{ @@ -1577,6 +1577,72 @@ } } }, + "Entity":{ + "type":"structure", + "members":{ + "KeyAttributes":{ + "shape":"EntityKeyAttributesMap", + "documentation":"

          The attributes of the entity which identify the specific entity, as a list of key-value pairs. Entities with the same KeyAttributes are considered to be the same entity. For an entity to be valid, the KeyAttributes must exist and be formatted correctly.

          There are five allowed attributes (key names): Type, ResourceType, Identifier, Name, and Environment.

          For details about how to use the key attributes to specify an entity, see How to add related information to telemetry in the CloudWatch User Guide.

          " + }, + "Attributes":{ + "shape":"EntityAttributesMap", + "documentation":"

          Additional attributes of the entity that are not used to specify the identity of the entity. A list of key-value pairs.

          For details about how to use the attributes, see How to add related information to telemetry in the CloudWatch User Guide.

          " + } + }, + "documentation":"

          An entity associated with metrics, to allow for finding related telemetry. An entity is typically a resource or service within your system. For example, metrics from an Amazon EC2 instance could be associated with that instance as the entity. Similarly, metrics from a service that you own could be associated with that service as the entity.

          " + }, + "EntityAttributesMap":{ + "type":"map", + "key":{"shape":"EntityAttributesMapKeyString"}, + "value":{"shape":"EntityAttributesMapValueString"}, + "max":10, + "min":0 + }, + "EntityAttributesMapKeyString":{ + "type":"string", + "max":256, + "min":1 + }, + "EntityAttributesMapValueString":{ + "type":"string", + "max":2048, + "min":1 + }, + "EntityKeyAttributesMap":{ + "type":"map", + "key":{"shape":"EntityKeyAttributesMapKeyString"}, + "value":{"shape":"EntityKeyAttributesMapValueString"}, + "max":4, + "min":2 + }, + "EntityKeyAttributesMapKeyString":{ + "type":"string", + "max":32, + "min":1 + }, + "EntityKeyAttributesMapValueString":{ + "type":"string", + "max":2048, + "min":1 + }, + "EntityMetricData":{ + "type":"structure", + "members":{ + "Entity":{ + "shape":"Entity", + "documentation":"

          The entity associated with the metrics.

          " + }, + "MetricData":{ + "shape":"MetricData", + "documentation":"

          The metric data.

          " + } + }, + "documentation":"

          A set of metrics that are associated with an entity, such as a specific service or resource. Contains the entity and the list of metric data associated with it.

          " + }, + "EntityMetricDataList":{ + "type":"list", + "member":{"shape":"EntityMetricData"} + }, "ErrorMessage":{ "type":"string", "max":255, @@ -1893,7 +1959,7 @@ }, "OutputFormat":{ "shape":"OutputFormat", - "documentation":"

          The format of the resulting image. Only PNG images are supported.

          The default is png. If you specify png, the API returns an HTTP response with the content-type set to text/xml. The image data is in a MetricWidgetImage field. For example:

          <GetMetricWidgetImageResponse xmlns=<URLstring>>

          <GetMetricWidgetImageResult>

          <MetricWidgetImage>

          iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip...

          </MetricWidgetImage>

          </GetMetricWidgetImageResult>

          <ResponseMetadata>

          <RequestId>6f0d4192-4d42-11e8-82c1-f539a07e0e3b</RequestId>

          </ResponseMetadata>

          </GetMetricWidgetImageResponse>

          The image/png setting is intended only for custom HTTP requests. For most use cases, and all actions using an Amazon Web Services SDK, you should use png. If you specify image/png, the HTTP response has a content-type set to image/png, and the body of the response is a PNG image.

          " + "documentation":"

          The format of the resulting image. Only PNG images are supported.

          The default is png. If you specify png, the API returns an HTTP response with the content-type set to text/xml. The image data is in a MetricWidgetImage field. For example:

          <GetMetricWidgetImageResponse xmlns=<URLstring>>

          <GetMetricWidgetImageResult>

          <MetricWidgetImage>

          iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip...

          </MetricWidgetImage>

          </GetMetricWidgetImageResult>

          <ResponseMetadata>

          <RequestId>6f0d4192-4d42-11e8-82c1-f539a07e0e3b</RequestId>

          </ResponseMetadata>

          </GetMetricWidgetImageResponse>

          The image/png setting is intended only for custom HTTP requests. For most use cases, and all actions using an Amazon Web Services SDK, you should use png. If you specify image/png, the HTTP response has a content-type set to image/png, and the body of the response is a PNG image.

          " } } }, @@ -2343,7 +2409,7 @@ }, "RecentlyActive":{ "shape":"RecentlyActive", - "documentation":"

          To filter the results to show only metrics that have had data points published in the past three hours, specify this parameter with a value of PT3H. This is the only valid value for this parameter.

          The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 40 minutes more than the specified time interval.

          " + "documentation":"

          To filter the results to show only metrics that have had data points published in the past three hours, specify this parameter with a value of PT3H. This is the only valid value for this parameter.

          The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 50 minutes more than the specified time interval.

          " }, "IncludeLinkedAccounts":{ "shape":"IncludeLinkedAccounts", @@ -3314,7 +3380,7 @@ }, "Tags":{ "shape":"TagList", - "documentation":"

          A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the cloudwatch:TagResource permission.

          Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

          If you are using this operation to update an existing alarm, any tags you specify in this parameter are ignored. To change the tags of an existing alarm, use TagResource or UntagResource.

          " + "documentation":"

          A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the cloudwatch:TagResource permission.

          Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

          If you are using this operation to update an existing alarm, any tags you specify in this parameter are ignored. To change the tags of an existing alarm, use TagResource or UntagResource.

          To use this field to set tags for an alarm when you create it, you must be signed on with both the cloudwatch:PutMetricAlarm and cloudwatch:TagResource permissions.

          " }, "ThresholdMetricId":{ "shape":"MetricId", @@ -3324,10 +3390,7 @@ }, "PutMetricDataInput":{ "type":"structure", - "required":[ - "Namespace", - "MetricData" - ], + "required":["Namespace"], "members":{ "Namespace":{ "shape":"Namespace", @@ -3335,7 +3398,16 @@ }, "MetricData":{ "shape":"MetricData", - "documentation":"

          The data for the metric. The array can include no more than 1000 metrics per call.

          " + "documentation":"

          The data for the metrics. Use this parameter if your metrics do not contain associated entities. The array can include no more than 1000 metrics per call.

          The limit of metrics allowed, 1000, is the sum of both EntityMetricData and MetricData metrics.

          " + }, + "EntityMetricData":{ + "shape":"EntityMetricDataList", + "documentation":"

          Data for metrics that contain associated entity information. You can include up to two EntityMetricData objects, each of which can contain a single Entity and associated metrics.

          The limit of metrics allowed, 1000, is the sum of both EntityMetricData and MetricData metrics.

          " + }, + "StrictEntityValidation":{ + "shape":"StrictEntityValidation", + "documentation":"

          Whether to accept valid metric data when an invalid entity is sent.

          • When set to true: Any validation error (for entity or metric data) will fail the entire request, and no data will be ingested. The failed operation will return a 400 result with the error.

          • When set to false: Validation errors in the entity will not associate the metric with the entity, but the metric data will still be accepted and ingested. Validation errors in the metric data will fail the entire request, and no data will be ingested.

            In the case of an invalid entity, the operation will return a 200 status, but an additional response header will contain information about the validation errors. The new header, X-Amzn-Failure-Message is an enumeration of the following values:

            • InvalidEntity - The provided entity is invalid.

            • InvalidKeyAttributes - The provided KeyAttributes of an entity is invalid.

            • InvalidAttributes - The provided Attributes of an entity is invalid.

            • InvalidTypeValue - The provided Type in the KeyAttributes of an entity is invalid.

            • EntitySizeTooLarge - The number of EntityMetricData objects allowed is 2.

            • MissingRequiredFields - There are missing required fields in the KeyAttributes for the provided Type.

            For details of the requirements for specifying an entity, see How to add related information to telemetry in the CloudWatch User Guide.

          This parameter is required when EntityMetricData is included.

          ", + "box":true } } }, @@ -3662,6 +3734,7 @@ "type":"integer", "min":1 }, + "StrictEntityValidation":{"type":"boolean"}, "SuppressorPeriod":{"type":"integer"}, "Tag":{ "type":"structure", diff --git a/tools/code-generation/api-descriptions/outposts-2019-12-03.normal.json b/tools/code-generation/api-descriptions/outposts-2019-12-03.normal.json index eae3dbe23a2..644e31e0386 100644 --- a/tools/code-generation/api-descriptions/outposts-2019-12-03.normal.json +++ b/tools/code-generation/api-descriptions/outposts-2019-12-03.normal.json @@ -2474,7 +2474,8 @@ "type":"string", "enum":[ "THREE_YEARS", - "ONE_YEAR" + "ONE_YEAR", + "FIVE_YEARS" ] }, "PostalCode":{ diff --git a/tools/code-generation/api-descriptions/pinpoint-sms-voice-v2-2022-03-31.normal.json b/tools/code-generation/api-descriptions/pinpoint-sms-voice-v2-2022-03-31.normal.json index 40cb33c2aef..351a9b35d26 100644 --- a/tools/code-generation/api-descriptions/pinpoint-sms-voice-v2-2022-03-31.normal.json +++ b/tools/code-generation/api-descriptions/pinpoint-sms-voice-v2-2022-03-31.normal.json @@ -426,6 +426,23 @@ ], "documentation":"

          Permanently delete the protect configuration. The protect configuration must have deletion protection disabled and must not be associated as the account default protect configuration or associated with a configuration set.

          " }, + "DeleteProtectConfigurationRuleSetNumberOverride":{ + "name":"DeleteProtectConfigurationRuleSetNumberOverride", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteProtectConfigurationRuleSetNumberOverrideRequest"}, + "output":{"shape":"DeleteProtectConfigurationRuleSetNumberOverrideResult"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

          Permanently delete the protect configuration rule set number override.

          " + }, "DeleteRegistration":{ "name":"DeleteRegistration", "http":{ @@ -862,7 +879,7 @@ {"shape":"ValidationException"}, {"shape":"InternalServerException"} ], - "documentation":"

          Retrieves the specified verified destiona numbers.

          " + "documentation":"

          Retrieves the specified verified destination numbers.

          " }, "DisassociateOriginationIdentity":{ "name":"DisassociateOriginationIdentity", @@ -969,6 +986,23 @@ ], "documentation":"

          Lists all associated origination identities in your pool.

          If you specify filters, the output includes information for only those origination identities that meet the filter criteria.

          " }, + "ListProtectConfigurationRuleSetNumberOverrides":{ + "name":"ListProtectConfigurationRuleSetNumberOverrides", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListProtectConfigurationRuleSetNumberOverridesRequest"}, + "output":{"shape":"ListProtectConfigurationRuleSetNumberOverridesResult"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

          Retrieve all of the protect configuration rule set number overrides that match the filters.

          " + }, "ListRegistrationAssociations":{ "name":"ListRegistrationAssociations", "http":{ @@ -984,7 +1018,7 @@ {"shape":"ValidationException"}, {"shape":"InternalServerException"} ], - "documentation":"

          Retreive all of the origination identies that are associated with a registration.

          " + "documentation":"

          Retrieve all of the origination identities that are associated with a registration.

          " }, "ListTagsForResource":{ "name":"ListTagsForResource", @@ -1022,6 +1056,23 @@ ], "documentation":"

          Creates or updates a keyword configuration on an origination phone number or pool.

          A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message.

          If you specify a keyword that isn't valid, an error is returned.

          " }, + "PutMessageFeedback":{ + "name":"PutMessageFeedback", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutMessageFeedbackRequest"}, + "output":{"shape":"PutMessageFeedbackResult"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

          Set the MessageFeedbackStatus as RECEIVED or FAILED for the passed in MessageId.

          If you use message feedback then you must update message feedback record. When you receive a signal that a user has received the message you must use PutMessageFeedback to set the message feedback record as RECEIVED; Otherwise, an hour after the message feedback record is set to FAILED.

          " + }, "PutOptedOutNumber":{ "name":"PutOptedOutNumber", "http":{ @@ -1039,6 +1090,24 @@ ], "documentation":"

          Creates an opted out destination phone number in the opt-out list.

          If the destination phone number isn't valid or if the specified opt-out list doesn't exist, an error is returned.

          " }, + "PutProtectConfigurationRuleSetNumberOverride":{ + "name":"PutProtectConfigurationRuleSetNumberOverride", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutProtectConfigurationRuleSetNumberOverrideRequest"}, + "output":{"shape":"PutProtectConfigurationRuleSetNumberOverrideResult"}, + "errors":[ + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

          Create or update a RuleSetNumberOverride and associate it with a protect configuration.

          " + }, "PutRegistrationFieldValue":{ "name":"PutRegistrationFieldValue", "http":{ @@ -1240,6 +1309,23 @@ ], "documentation":"

          Set a protect configuration as your account default. You can only have one account default protect configuration at a time. The current account default protect configuration is replaced with the provided protect configuration.

          " }, + "SetDefaultMessageFeedbackEnabled":{ + "name":"SetDefaultMessageFeedbackEnabled", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SetDefaultMessageFeedbackEnabledRequest"}, + "output":{"shape":"SetDefaultMessageFeedbackEnabledResult"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

          Sets a configuration set's default for message feedback.

          " + }, "SetDefaultMessageType":{ "name":"SetDefaultMessageType", "http":{ @@ -1773,6 +1859,7 @@ "matching-event-types", "default-message-type", "default-sender-id", + "default-message-feedback-enabled", "protect-configuration-id" ] }, @@ -1805,6 +1892,10 @@ "shape":"SenderId", "documentation":"

          The default sender ID used by the ConfigurationSet.

          " }, + "DefaultMessageFeedbackEnabled":{ + "shape":"Boolean", + "documentation":"

          True if message feedback is enabled.

          " + }, "CreatedTimestamp":{ "shape":"Timestamp", "documentation":"

          The time when the ConfigurationSet was created, in UNIX epoch time format.

          " @@ -1895,7 +1986,8 @@ "PROTECT_CONFIGURATION_IS_ACCOUNT_DEFAULT", "PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET", "PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET", - "DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION" + "DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION", + "DESTINATION_PHONE_NUMBER_BLOCKED_BY_PROTECT_NUMBER_OVERRIDE" ] }, "ContextKey":{ @@ -2530,6 +2622,10 @@ "shape":"SenderId", "documentation":"

          The default Sender ID of the configuration set that was deleted.

          " }, + "DefaultMessageFeedbackEnabled":{ + "shape":"Boolean", + "documentation":"

          True if the configuration set has message feedback enabled. By default this is set to false.

          " + }, "CreatedTimestamp":{ "shape":"Timestamp", "documentation":"

          The time that the deleted configuration set was created in UNIX epoch time format.

          " @@ -2850,6 +2946,63 @@ } } }, + "DeleteProtectConfigurationRuleSetNumberOverrideRequest":{ + "type":"structure", + "required":[ + "ProtectConfigurationId", + "DestinationPhoneNumber" + ], + "members":{ + "ProtectConfigurationId":{ + "shape":"ProtectConfigurationIdOrArn", + "documentation":"

          The unique identifier for the protect configuration.

          " + }, + "DestinationPhoneNumber":{ + "shape":"PhoneNumber", + "documentation":"

          The destination phone number in E.164 format.

          " + } + } + }, + "DeleteProtectConfigurationRuleSetNumberOverrideResult":{ + "type":"structure", + "required":[ + "ProtectConfigurationArn", + "ProtectConfigurationId", + "DestinationPhoneNumber", + "CreatedTimestamp", + "Action" + ], + "members":{ + "ProtectConfigurationArn":{ + "shape":"ProtectConfigurationArn", + "documentation":"

          The Amazon Resource Name (ARN) of the protect configuration.

          " + }, + "ProtectConfigurationId":{ + "shape":"ProtectConfigurationId", + "documentation":"

          The unique identifier for the protect configuration.

          " + }, + "DestinationPhoneNumber":{ + "shape":"PhoneNumber", + "documentation":"

          The destination phone number in E.164 format.

          " + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

          The time when the rule was created, in UNIX epoch time format.

          " + }, + "Action":{ + "shape":"ProtectConfigurationRuleOverrideAction", + "documentation":"

          The action associated with the rule.

          " + }, + "IsoCountryCode":{ + "shape":"IsoCountryCode", + "documentation":"

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          " + }, + "ExpirationTimestamp":{ + "shape":"Timestamp", + "documentation":"

          The time when the resource-based policy was created, in UNIX epoch time format.

          " + } + } + }, "DeleteRegistrationAttachmentRequest":{ "type":"structure", "required":["RegistrationAttachmentId"], @@ -3805,7 +3958,7 @@ "members":{ "VerifiedDestinationNumberIds":{ "shape":"VerifiedDestinationNumberIdList", - "documentation":"

          An array of VerifiedDestinationNumberid to retreive.

          " + "documentation":"

          An array of VerifiedDestinationNumberid to retrieve.

          " }, "DestinationPhoneNumbers":{ "shape":"DestinationPhoneNumberList", @@ -4067,6 +4220,7 @@ "TEXT_SPAM", "TEXT_UNKNOWN", "TEXT_TTL_EXPIRED", + "TEXT_PROTECT_BLOCKED", "VOICE_ALL", "VOICE_INITIATED", "VOICE_RINGING", @@ -4133,7 +4287,7 @@ "type":"string", "max":128, "min":1, - "pattern":"[/\\.:A-Za-z0-9_-]+" + "pattern":"[/\\.:A-Za-z0-9+_-]+" }, "FilterValueList":{ "type":"list", @@ -4402,6 +4556,59 @@ } } }, + "ListProtectConfigurationRuleSetNumberOverrideFilter":{ + "type":"list", + "member":{"shape":"ProtectConfigurationRuleSetNumberOverrideFilterItem"}, + "max":100, + "min":0 + }, + "ListProtectConfigurationRuleSetNumberOverridesRequest":{ + "type":"structure", + "required":["ProtectConfigurationId"], + "members":{ + "ProtectConfigurationId":{ + "shape":"ProtectConfigurationIdOrArn", + "documentation":"

          The unique identifier for the protect configuration.

          " + }, + "Filters":{ + "shape":"ListProtectConfigurationRuleSetNumberOverrideFilter", + "documentation":"

          An array of ProtectConfigurationRuleSetNumberOverrideFilterItem objects to filter the results.

          " + }, + "NextToken":{ + "shape":"NextToken", + "documentation":"

          The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

          " + }, + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

          The maximum number of results to return per each request.

          " + } + } + }, + "ListProtectConfigurationRuleSetNumberOverridesResult":{ + "type":"structure", + "required":[ + "ProtectConfigurationArn", + "ProtectConfigurationId" + ], + "members":{ + "ProtectConfigurationArn":{ + "shape":"ProtectConfigurationArn", + "documentation":"

          The Amazon Resource Name (ARN) of the protect configuration.

          " + }, + "ProtectConfigurationId":{ + "shape":"ProtectConfigurationId", + "documentation":"

          The unique identifier for the protect configuration.

          " + }, + "RuleSetNumberOverrides":{ + "shape":"ProtectConfigurationRuleSetNumberOverrideList", + "documentation":"

          An array of RuleSetNumberOverrides objects.

          " + }, + "NextToken":{ + "shape":"NextToken", + "documentation":"

          The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

          " + } + } + }, "ListRegistrationAssociationsRequest":{ "type":"structure", "required":["RegistrationId"], @@ -4514,6 +4721,19 @@ "min":1, "pattern":"s3://([a-z0-9\\.-]{3,63})/(.+)" }, + "MessageFeedbackStatus":{ + "type":"string", + "enum":[ + "RECEIVED", + "FAILED" + ] + }, + "MessageId":{ + "type":"string", + "max":64, + "min":1, + "pattern":"[A-Za-z0-9_:/-]+" + }, "MessageType":{ "type":"string", "enum":[ @@ -5166,6 +5386,80 @@ "max":100, "min":1 }, + "ProtectConfigurationRuleOverrideAction":{ + "type":"string", + "enum":[ + "ALLOW", + "BLOCK" + ] + }, + "ProtectConfigurationRuleSetNumberOverride":{ + "type":"structure", + "required":[ + "DestinationPhoneNumber", + "CreatedTimestamp", + "Action" + ], + "members":{ + "DestinationPhoneNumber":{ + "shape":"PhoneNumber", + "documentation":"

          The destination phone number in E.164 format.

          " + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

          The time when the rule was created, in UNIX epoch time format.

          " + }, + "Action":{ + "shape":"ProtectConfigurationRuleOverrideAction", + "documentation":"

          The action for the rule to perform of either blocking or allowing messages to the destination phone number.

          " + }, + "IsoCountryCode":{ + "shape":"IsoCountryCode", + "documentation":"

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          " + }, + "ExpirationTimestamp":{ + "shape":"Timestamp", + "documentation":"

          The time the rule will expire at. If ExpirationTimestamp is not set then the rule will not expire.

          " + } + }, + "documentation":"

          Provides details on a RuleSetNumberOverride.

          " + }, + "ProtectConfigurationRuleSetNumberOverrideFilterItem":{ + "type":"structure", + "required":[ + "Name", + "Values" + ], + "members":{ + "Name":{ + "shape":"ProtectConfigurationRuleSetNumberOverrideFilterName", + "documentation":"

          The name of the attribute to filter on.

          " + }, + "Values":{ + "shape":"FilterValueList", + "documentation":"

          An array values to filter for.

          " + } + }, + "documentation":"

          The information for a protect configuration rule set number override that meets a specified criteria.

          " + }, + "ProtectConfigurationRuleSetNumberOverrideFilterName":{ + "type":"string", + "enum":[ + "iso-country-code", + "destination-phone-number-begins-with", + "action", + "expires-before", + "expires-after", + "created-before", + "created-after" + ] + }, + "ProtectConfigurationRuleSetNumberOverrideList":{ + "type":"list", + "member":{"shape":"ProtectConfigurationRuleSetNumberOverride"}, + "max":100, + "min":1 + }, "ProtectStatus":{ "type":"string", "enum":[ @@ -5224,6 +5518,40 @@ } } }, + "PutMessageFeedbackRequest":{ + "type":"structure", + "required":[ + "MessageId", + "MessageFeedbackStatus" + ], + "members":{ + "MessageId":{ + "shape":"MessageId", + "documentation":"

          The unique identifier for the message.

          " + }, + "MessageFeedbackStatus":{ + "shape":"MessageFeedbackStatus", + "documentation":"

          Set the message feedback to be either RECEIVED or FAILED.

          " + } + } + }, + "PutMessageFeedbackResult":{ + "type":"structure", + "required":[ + "MessageId", + "MessageFeedbackStatus" + ], + "members":{ + "MessageId":{ + "shape":"MessageId", + "documentation":"

          The unique identifier for the message.

          " + }, + "MessageFeedbackStatus":{ + "shape":"MessageFeedbackStatus", + "documentation":"

          The current status of the message.

          " + } + } + }, "PutOptedOutNumberRequest":{ "type":"structure", "required":[ @@ -5266,6 +5594,77 @@ } } }, + "PutProtectConfigurationRuleSetNumberOverrideRequest":{ + "type":"structure", + "required":[ + "ProtectConfigurationId", + "DestinationPhoneNumber", + "Action" + ], + "members":{ + "ClientToken":{ + "shape":"ClientToken", + "documentation":"

          Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

          ", + "idempotencyToken":true + }, + "ProtectConfigurationId":{ + "shape":"ProtectConfigurationIdOrArn", + "documentation":"

          The unique identifier for the protect configuration.

          " + }, + "DestinationPhoneNumber":{ + "shape":"PhoneNumber", + "documentation":"

          The destination phone number in E.164 format.

          " + }, + "Action":{ + "shape":"ProtectConfigurationRuleOverrideAction", + "documentation":"

          The action for the rule to either block or allow messages to the destination phone number.

          " + }, + "ExpirationTimestamp":{ + "shape":"Timestamp", + "documentation":"

          The time the rule will expire at. If ExpirationTimestamp is not set then the rule does not expire.

          " + } + } + }, + "PutProtectConfigurationRuleSetNumberOverrideResult":{ + "type":"structure", + "required":[ + "ProtectConfigurationArn", + "ProtectConfigurationId", + "DestinationPhoneNumber", + "CreatedTimestamp", + "Action" + ], + "members":{ + "ProtectConfigurationArn":{ + "shape":"ProtectConfigurationArn", + "documentation":"

          The Amazon Resource Name (ARN) of the protect configuration.

          " + }, + "ProtectConfigurationId":{ + "shape":"ProtectConfigurationId", + "documentation":"

          The unique identifier for the protect configuration.

          " + }, + "DestinationPhoneNumber":{ + "shape":"PhoneNumber", + "documentation":"

          The destination phone number in E.164 format.

          " + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

          The time when the rule was created, in UNIX epoch time format.

          " + }, + "Action":{ + "shape":"ProtectConfigurationRuleOverrideAction", + "documentation":"

          The action for the rule to take.

          " + }, + "IsoCountryCode":{ + "shape":"IsoCountryCode", + "documentation":"

          The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

          " + }, + "ExpirationTimestamp":{ + "shape":"Timestamp", + "documentation":"

          The time the rule will expire at.

          " + } + } + }, "PutRegistrationFieldValueRequest":{ "type":"structure", "required":[ @@ -6467,7 +6866,8 @@ "registration-attachment", "verified-destination-number", "protect-configuration", - "policy" + "policy", + "message" ] }, "SectionPath":{ @@ -6619,7 +7019,7 @@ }, "TimeToLive":{ "shape":"TimeToLive", - "documentation":"

          How long the text message is valid for. By default this is 72 hours.

          " + "documentation":"

          How long the media message is valid for. By default this is 72 hours.

          " }, "Context":{ "shape":"ContextMap", @@ -6632,6 +7032,10 @@ "ProtectConfigurationId":{ "shape":"ProtectConfigurationIdOrArn", "documentation":"

          The unique identifier of the protect configuration to use.

          " + }, + "MessageFeedbackEnabled":{ + "shape":"Boolean", + "documentation":"

          Set to true to enable message feedback for the message. When a user receives the message you need to update the message status using PutMessageFeedback.

          " } } }, @@ -6695,6 +7099,10 @@ "ProtectConfigurationId":{ "shape":"ProtectConfigurationIdOrArn", "documentation":"

          The unique identifier for the protect configuration.

          " + }, + "MessageFeedbackEnabled":{ + "shape":"Boolean", + "documentation":"

          Set to true to enable message feedback for the message. When a user receives the message you need to update the message status using PutMessageFeedback.

          " } } }, @@ -6757,6 +7165,10 @@ "ProtectConfigurationId":{ "shape":"ProtectConfigurationIdOrArn", "documentation":"

          The unique identifier for the protect configuration.

          " + }, + "MessageFeedbackEnabled":{ + "shape":"Boolean", + "documentation":"

          Set to true to enable message feedback for the message. When a user receives the message you need to update the message status using PutMessageFeedback.

          " } } }, @@ -6957,6 +7369,40 @@ } } }, + "SetDefaultMessageFeedbackEnabledRequest":{ + "type":"structure", + "required":[ + "ConfigurationSetName", + "MessageFeedbackEnabled" + ], + "members":{ + "ConfigurationSetName":{ + "shape":"ConfigurationSetNameOrArn", + "documentation":"

          The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.

          " + }, + "MessageFeedbackEnabled":{ + "shape":"Boolean", + "documentation":"

          Set to true to enable message feedback.

          " + } + } + }, + "SetDefaultMessageFeedbackEnabledResult":{ + "type":"structure", + "members":{ + "ConfigurationSetArn":{ + "shape":"String", + "documentation":"

          The arn of the configuration set.

          " + }, + "ConfigurationSetName":{ + "shape":"ConfigurationSetName", + "documentation":"

          The name of the configuration.

          " + }, + "MessageFeedbackEnabled":{ + "shape":"Boolean", + "documentation":"

          True if message feedback is enabled.

          " + } + } + }, "SetDefaultMessageTypeRequest":{ "type":"structure", "required":[ diff --git a/tools/code-generation/api-descriptions/route53resolver-2018-04-01.normal.json b/tools/code-generation/api-descriptions/route53resolver-2018-04-01.normal.json index e4d47aba3f4..743d90c7316 100644 --- a/tools/code-generation/api-descriptions/route53resolver-2018-04-01.normal.json +++ b/tools/code-generation/api-descriptions/route53resolver-2018-04-01.normal.json @@ -253,6 +253,7 @@ {"shape":"ResourceNotFoundException"}, {"shape":"AccessDeniedException"}, {"shape":"InternalServiceErrorException"}, + {"shape":"ValidationException"}, {"shape":"ThrottlingException"} ], "documentation":"

          Deletes the specified firewall rule.

          " @@ -1409,6 +1410,14 @@ ] }, "Boolean":{"type":"boolean"}, + "ConfidenceThreshold":{ + "type":"string", + "enum":[ + "LOW", + "MEDIUM", + "HIGH" + ] + }, "ConflictException":{ "type":"structure", "members":{ @@ -1487,7 +1496,6 @@ "required":[ "CreatorRequestId", "FirewallRuleGroupId", - "FirewallDomainListId", "Priority", "Action", "Name" @@ -1504,7 +1512,8 @@ }, "FirewallDomainListId":{ "shape":"ResourceId", - "documentation":"

          The ID of the domain list that you want to use in the rule.

          " + "documentation":"

          The ID of the domain list that you want to use in the rule. Can't be used together with DnsThreatProtecton.

          ", + "box":true }, "Priority":{ "shape":"Priority", @@ -1512,7 +1521,7 @@ }, "Action":{ "shape":"Action", - "documentation":"

          The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list:

          • ALLOW - Permit the request to go through.

          • ALERT - Permit the request and send metrics and logs to Cloud Watch.

          • BLOCK - Disallow the request. This option requires additional details in the rule's BlockResponse.

          " + "documentation":"

          The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule:

          • ALLOW - Permit the request to go through. Not available for DNS Firewall Advanced rules.

          • ALERT - Permit the request and send metrics and logs to Cloud Watch.

          • BLOCK - Disallow the request. This option requires additional details in the rule's BlockResponse.

          " }, "BlockResponse":{ "shape":"BlockResponse", @@ -1540,13 +1549,23 @@ }, "FirewallDomainRedirectionAction":{ "shape":"FirewallDomainRedirectionAction", - "documentation":"

          How you want the the rule to evaluate DNS redirection in the DNS redirection chain, such as CNAME or DNAME.

          Inspect_Redirection_Domain (Default) inspects all domains in the redirection chain. The individual domains in the redirection chain must be added to the domain list.

          Trust_Redirection_Domain inspects only the first domain in the redirection chain. You don't need to add the subsequent domains in the domain in the redirection list to the domain list.

          ", + "documentation":"

          How you want the the rule to evaluate DNS redirection in the DNS redirection chain, such as CNAME or DNAME.

          INSPECT_REDIRECTION_DOMAIN: (Default) inspects all domains in the redirection chain. The individual domains in the redirection chain must be added to the domain list.

          TRUST_REDIRECTION_DOMAIN: Inspects only the first domain in the redirection chain. You don't need to add the subsequent domains in the domain in the redirection list to the domain list.

          ", "box":true }, "Qtype":{ "shape":"Qtype", "documentation":"

          The DNS query type you want the rule to evaluate. Allowed values are;

          • A: Returns an IPv4 address.

          • AAAA: Returns an Ipv6 address.

          • CAA: Restricts CAs that can create SSL/TLS certifications for the domain.

          • CNAME: Returns another domain name.

          • DS: Record that identifies the DNSSEC signing key of a delegated zone.

          • MX: Specifies mail servers.

          • NAPTR: Regular-expression-based rewriting of domain names.

          • NS: Authoritative name servers.

          • PTR: Maps an IP address to a domain name.

          • SOA: Start of authority record for the zone.

          • SPF: Lists the servers authorized to send emails from a domain.

          • SRV: Application specific values that identify servers.

          • TXT: Verifies email senders and application-specific values.

          • A query type you define by using the DNS type ID, for example 28 for AAAA. The values must be defined as TYPENUMBER, where the NUMBER can be 1-65334, for example, TYPE28. For more information, see List of DNS record types.

          ", "box":true + }, + "DnsThreatProtection":{ + "shape":"DnsThreatProtection", + "documentation":"

          Use to create a DNS Firewall Advanced rule.

          ", + "box":true + }, + "ConfidenceThreshold":{ + "shape":"ConfidenceThreshold", + "documentation":"

          The confidence threshold for DNS Firewall Advanced. You must provide this value when you create a DNS Firewall Advanced rule. The confidence level values mean:

          • LOW: Provides the highest detection rate for threats, but also increases false positives.

          • MEDIUM: Provides a balance between detecting threats and false positives.

          • HIGH: Detects only the most well corroborated threats with a low rate of false positives.

          ", + "box":true } } }, @@ -1803,10 +1822,7 @@ }, "DeleteFirewallRuleRequest":{ "type":"structure", - "required":[ - "FirewallRuleGroupId", - "FirewallDomainListId" - ], + "required":["FirewallRuleGroupId"], "members":{ "FirewallRuleGroupId":{ "shape":"ResourceId", @@ -1814,7 +1830,13 @@ }, "FirewallDomainListId":{ "shape":"ResourceId", - "documentation":"

          The ID of the domain list that's used in the rule.

          " + "documentation":"

          The ID of the domain list that's used in the rule.

          ", + "box":true + }, + "FirewallThreatProtectionId":{ + "shape":"ResourceId", + "documentation":"

          The ID that is created for a DNS Firewall Advanced rule.

          ", + "box":true }, "Qtype":{ "shape":"Qtype", @@ -2009,6 +2031,13 @@ } } }, + "DnsThreatProtection":{ + "type":"string", + "enum":[ + "DGA", + "DNS_TUNNELING" + ] + }, "DomainListFileUrl":{ "type":"string", "max":1024, @@ -2205,12 +2234,16 @@ "members":{ "FirewallRuleGroupId":{ "shape":"ResourceId", - "documentation":"

          The unique identifier of the firewall rule group of the rule.

          " + "documentation":"

          The unique identifier of the Firewall rule group of the rule.

          " }, "FirewallDomainListId":{ "shape":"ResourceId", "documentation":"

          The ID of the domain list that's used in the rule.

          " }, + "FirewallThreatProtectionId":{ + "shape":"ResourceId", + "documentation":"

          ID of the DNS Firewall Advanced rule.

          " + }, "Name":{ "shape":"Name", "documentation":"

          The name of the rule.

          " @@ -2221,7 +2254,7 @@ }, "Action":{ "shape":"Action", - "documentation":"

          The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list:

          • ALLOW - Permit the request to go through.

          • ALERT - Permit the request to go through but send an alert to the logs.

          • BLOCK - Disallow the request. If this is specified, additional handling details are provided in the rule's BlockResponse setting.

          " + "documentation":"

          The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule:

          • ALLOW - Permit the request to go through. Not available for DNS Firewall Advanced rules.

          • ALERT - Permit the request to go through but send an alert to the logs.

          • BLOCK - Disallow the request. If this is specified, additional handling details are provided in the rule's BlockResponse setting.

          " }, "BlockResponse":{ "shape":"BlockResponse", @@ -2253,11 +2286,19 @@ }, "FirewallDomainRedirectionAction":{ "shape":"FirewallDomainRedirectionAction", - "documentation":"

          How you want the the rule to evaluate DNS redirection in the DNS redirection chain, such as CNAME or DNAME.

          Inspect_Redirection_Domain (Default) inspects all domains in the redirection chain. The individual domains in the redirection chain must be added to the domain list.

          Trust_Redirection_Domain inspects only the first domain in the redirection chain. You don't need to add the subsequent domains in the domain in the redirection list to the domain list.

          " + "documentation":"

          How you want the the rule to evaluate DNS redirection in the DNS redirection chain, such as CNAME or DNAME.

          INSPECT_REDIRECTION_DOMAIN: (Default) inspects all domains in the redirection chain. The individual domains in the redirection chain must be added to the domain list.

          TRUST_REDIRECTION_DOMAIN: Inspects only the first domain in the redirection chain. You don't need to add the subsequent domains in the domain in the redirection list to the domain list.

          " }, "Qtype":{ "shape":"Qtype", "documentation":"

          The DNS query type you want the rule to evaluate. Allowed values are;

          • A: Returns an IPv4 address.

          • AAAA: Returns an Ipv6 address.

          • CAA: Restricts CAs that can create SSL/TLS certifications for the domain.

          • CNAME: Returns another domain name.

          • DS: Record that identifies the DNSSEC signing key of a delegated zone.

          • MX: Specifies mail servers.

          • NAPTR: Regular-expression-based rewriting of domain names.

          • NS: Authoritative name servers.

          • PTR: Maps an IP address to a domain name.

          • SOA: Start of authority record for the zone.

          • SPF: Lists the servers authorized to send emails from a domain.

          • SRV: Application specific values that identify servers.

          • TXT: Verifies email senders and application-specific values.

          • A query type you define by using the DNS type ID, for example 28 for AAAA. The values must be defined as TYPENUMBER, where the NUMBER can be 1-65334, for example, TYPE28. For more information, see List of DNS record types.

          " + }, + "DnsThreatProtection":{ + "shape":"DnsThreatProtection", + "documentation":"

          The type of the DNS Firewall Advanced rule. Valid values are:

          • DGA: Domain generation algorithms detection. DGAs are used by attackers to generate a large number of domains to to launch malware attacks.

          • DNS_TUNNELING: DNS tunneling detection. DNS tunneling is used by attackers to exfiltrate data from the client by using the DNS tunnel without making a network connection to the client.

          " + }, + "ConfidenceThreshold":{ + "shape":"ConfidenceThreshold", + "documentation":"

          The confidence threshold for DNS Firewall Advanced. You must provide this value when you create a DNS Firewall Advanced rule. The confidence level values mean:

          • LOW: Provides the highest detection rate for threats, but also increases false positives.

          • MEDIUM: Provides a balance between detecting threats and false positives.

          • HIGH: Detects only the most well corroborated threats with a low rate of false positives.

          " } }, "documentation":"

          A single firewall rule in a rule group.

          " @@ -3139,7 +3180,7 @@ }, "Action":{ "shape":"Action", - "documentation":"

          Optional additional filter for the rules to retrieve.

          The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list:

          • ALLOW - Permit the request to go through.

          • ALERT - Permit the request to go through but send an alert to the logs.

          • BLOCK - Disallow the request. If this is specified, additional handling details are provided in the rule's BlockResponse setting.

          ", + "documentation":"

          Optional additional filter for the rules to retrieve.

          The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule:

          • ALLOW - Permit the request to go through. Not availabe for DNS Firewall Advanced rules.

          • ALERT - Permit the request to go through but send an alert to the logs.

          • BLOCK - Disallow the request. If this is specified, additional handling details are provided in the rule's BlockResponse setting.

          ", "box":true }, "MaxResults":{ @@ -3988,7 +4029,7 @@ }, "Status":{ "shape":"ResolverQueryLogConfigAssociationStatus", - "documentation":"

          The status of the specified query logging association. Valid values include the following:

          • CREATING: Resolver is creating an association between an Amazon VPC and a query logging configuration.

          • CREATED: The association between an Amazon VPC and a query logging configuration was successfully created. Resolver is logging queries that originate in the specified VPC.

          • DELETING: Resolver is deleting this query logging association.

          • FAILED: Resolver either couldn't create or couldn't delete the query logging association.

          " + "documentation":"

          The status of the specified query logging association. Valid values include the following:

          • CREATING: Resolver is creating an association between an Amazon VPC and a query logging configuration.

          • ACTIVE: The association between an Amazon VPC and a query logging configuration was successfully created. Resolver is logging queries that originate in the specified VPC.

          • DELETING: Resolver is deleting this query logging association.

          • FAILED: Resolver either couldn't create or couldn't delete the query logging association.

          " }, "Error":{ "shape":"ResolverQueryLogConfigAssociationError", @@ -4391,7 +4432,7 @@ }, "Protocol":{ "shape":"Protocol", - "documentation":"

          The protocols for the Resolver endpoints. DoH-FIPS is applicable for inbound endpoints only.

          For an inbound endpoint you can apply the protocols as follows:

          • Do53 and DoH in combination.

          • Do53 and DoH-FIPS in combination.

          • Do53 alone.

          • DoH alone.

          • DoH-FIPS alone.

          • None, which is treated as Do53.

          For an outbound endpoint you can apply the protocols as follows:

          • Do53 and DoH in combination.

          • Do53 alone.

          • DoH alone.

          • None, which is treated as Do53.

          ", + "documentation":"

          The protocols for the target address. The protocol you choose needs to be supported by the outbound endpoint of the Resolver rule.

          ", "box":true }, "ServerNameIndication":{ @@ -4551,10 +4592,7 @@ }, "UpdateFirewallRuleRequest":{ "type":"structure", - "required":[ - "FirewallRuleGroupId", - "FirewallDomainListId" - ], + "required":["FirewallRuleGroupId"], "members":{ "FirewallRuleGroupId":{ "shape":"ResourceId", @@ -4562,7 +4600,13 @@ }, "FirewallDomainListId":{ "shape":"ResourceId", - "documentation":"

          The ID of the domain list to use in the rule.

          " + "documentation":"

          The ID of the domain list to use in the rule.

          ", + "box":true + }, + "FirewallThreatProtectionId":{ + "shape":"ResourceId", + "documentation":"

          The DNS Firewall Advanced rule ID.

          ", + "box":true }, "Priority":{ "shape":"Priority", @@ -4571,7 +4615,7 @@ }, "Action":{ "shape":"Action", - "documentation":"

          The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list:

          • ALLOW - Permit the request to go through.

          • ALERT - Permit the request to go through but send an alert to the logs.

          • BLOCK - Disallow the request. This option requires additional details in the rule's BlockResponse.

          ", + "documentation":"

          The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule:

          • ALLOW - Permit the request to go through. Not available for DNS Firewall Advanced rules.

          • ALERT - Permit the request to go through but send an alert to the logs.

          • BLOCK - Disallow the request. This option requires additional details in the rule's BlockResponse.

          ", "box":true }, "BlockResponse":{ @@ -4601,12 +4645,22 @@ }, "FirewallDomainRedirectionAction":{ "shape":"FirewallDomainRedirectionAction", - "documentation":"

          How you want the the rule to evaluate DNS redirection in the DNS redirection chain, such as CNAME or DNAME.

          Inspect_Redirection_Domain (Default) inspects all domains in the redirection chain. The individual domains in the redirection chain must be added to the domain list.

          Trust_Redirection_Domain inspects only the first domain in the redirection chain. You don't need to add the subsequent domains in the domain in the redirection list to the domain list.

          ", + "documentation":"

          How you want the the rule to evaluate DNS redirection in the DNS redirection chain, such as CNAME or DNAME.

          INSPECT_REDIRECTION_DOMAIN: (Default) inspects all domains in the redirection chain. The individual domains in the redirection chain must be added to the domain list.

          TRUST_REDIRECTION_DOMAIN: Inspects only the first domain in the redirection chain. You don't need to add the subsequent domains in the domain in the redirection list to the domain list.

          ", "box":true }, "Qtype":{ "shape":"Qtype", "documentation":"

          The DNS query type you want the rule to evaluate. Allowed values are;

          • A: Returns an IPv4 address.

          • AAAA: Returns an Ipv6 address.

          • CAA: Restricts CAs that can create SSL/TLS certifications for the domain.

          • CNAME: Returns another domain name.

          • DS: Record that identifies the DNSSEC signing key of a delegated zone.

          • MX: Specifies mail servers.

          • NAPTR: Regular-expression-based rewriting of domain names.

          • NS: Authoritative name servers.

          • PTR: Maps an IP address to a domain name.

          • SOA: Start of authority record for the zone.

          • SPF: Lists the servers authorized to send emails from a domain.

          • SRV: Application specific values that identify servers.

          • TXT: Verifies email senders and application-specific values.

          • A query type you define by using the DNS type ID, for example 28 for AAAA. The values must be defined as TYPENUMBER, where the NUMBER can be 1-65334, for example, TYPE28. For more information, see List of DNS record types.

            If you set up a firewall BLOCK rule with action NXDOMAIN on query type equals AAAA, this action will not be applied to synthetic IPv6 addresses generated when DNS64 is enabled.

          " + }, + "DnsThreatProtection":{ + "shape":"DnsThreatProtection", + "documentation":"

          The type of the DNS Firewall Advanced rule. Valid values are:

          • DGA: Domain generation algorithms detection. DGAs are used by attackers to generate a large number of domains to to launch malware attacks.

          • DNS_TUNNELING: DNS tunneling detection. DNS tunneling is used by attackers to exfiltrate data from the client by using the DNS tunnel without making a network connection to the client.

          ", + "box":true + }, + "ConfidenceThreshold":{ + "shape":"ConfidenceThreshold", + "documentation":"

          The confidence threshold for DNS Firewall Advanced. You must provide this value when you create a DNS Firewall Advanced rule. The confidence level values mean:

          • LOW: Provides the highest detection rate for threats, but also increases false positives.

          • MEDIUM: Provides a balance between detecting threats and false positives.

          • HIGH: Detects only the most well corroborated threats with a low rate of false positives.

          ", + "box":true } } }, diff --git a/tools/code-generation/endpoints/connectcampaignsv2-2024-04-23.endpoint-rule-set.json b/tools/code-generation/endpoints/connectcampaignsv2-2024-04-23.endpoint-rule-set.json new file mode 100644 index 00000000000..60ecce64be4 --- /dev/null +++ b/tools/code-generation/endpoints/connectcampaignsv2-2024-04-23.endpoint-rule-set.json @@ -0,0 +1,350 @@ +{ + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://connect-campaigns-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + }, + true + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://connect-campaigns-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://connect-campaigns.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://connect-campaigns.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ], + "type": "tree" + } + ] +} \ No newline at end of file diff --git a/tools/code-generation/endpoints/connectcampaignsv2-2024-04-23.endpoint-tests.json b/tools/code-generation/endpoints/connectcampaignsv2-2024-04-23.endpoint-tests.json new file mode 100644 index 00000000000..236e16235af --- /dev/null +++ b/tools/code-generation/endpoints/connectcampaignsv2-2024-04-23.endpoint-tests.json @@ -0,0 +1,314 @@ +{ + "testCases": [ + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns-fips.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://connect-campaigns.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" +} \ No newline at end of file